Class RepositoryDigestMirrors
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1alpha1.RepositoryDigestMirrors
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<RepositoryDigestMirrorsBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RepositoryDigestMirrors extends Object implements io.fabric8.kubernetes.api.builder.Editable<RepositoryDigestMirrorsBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
RepositoryDigestMirrors holds cluster-wide information about how to handle mirros in the registries config. Note: the mirrors only work when pulling the images that are referenced by their digests.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RepositoryDigestMirrors()No args constructor for use in serializationRepositoryDigestMirrors(List<String> mirrors, String source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositoryDigestMirrorsBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getMirrors()mirrors is one or more repositories that may also contain the same images.StringgetSource()source is the repository that users refer to, e.g. in image pull specifications.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetMirrors(List<String> mirrors)mirrors is one or more repositories that may also contain the same images.voidsetSource(String source)source is the repository that users refer to, e.g. in image pull specifications.RepositoryDigestMirrorsBuildertoBuilder()
-
-
-
Method Detail
-
getMirrors
public List<String> getMirrors()
mirrors is one or more repositories that may also contain the same images. The order of mirrors in this list is treated as the user's desired priority, while source is by default considered lower priority than all mirrors. Other cluster configuration, including (but not limited to) other repositoryDigestMirrors objects, may impact the exact order mirrors are contacted in, or some mirrors may be contacted in parallel, so this should be considered a preference rather than a guarantee of ordering.
-
setMirrors
public void setMirrors(List<String> mirrors)
mirrors is one or more repositories that may also contain the same images. The order of mirrors in this list is treated as the user's desired priority, while source is by default considered lower priority than all mirrors. Other cluster configuration, including (but not limited to) other repositoryDigestMirrors objects, may impact the exact order mirrors are contacted in, or some mirrors may be contacted in parallel, so this should be considered a preference rather than a guarantee of ordering.
-
getSource
public String getSource()
source is the repository that users refer to, e.g. in image pull specifications.
-
setSource
public void setSource(String source)
source is the repository that users refer to, e.g. in image pull specifications.
-
edit
public RepositoryDigestMirrorsBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<RepositoryDigestMirrorsBuilder>
-
toBuilder
public RepositoryDigestMirrorsBuilder toBuilder()
-
-