{"modulePath":"github.1git.de/openshift/origin","version":"v1.5.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\nPackage api is the internal version of the API.\n\n## Constants\n\n```go\nconst (\n\t// DockerDefaultNamespace is the value for namespace when a single segment name is provided.\n\tDockerDefaultNamespace = \"library\"\n\t// DockerDefaultRegistry is the value for the registry when none was provided.\n\tDockerDefaultRegistry = \"docker.io\"\n\t// DockerDefaultV1Registry is the host name of the default v1 registry\n\tDockerDefaultV1Registry = \"index.\" + DockerDefaultRegistry\n\t// DockerDefaultV2Registry is the host name of the default v2 registry\n\tDockerDefaultV2Registry = \"registry-1.\" + DockerDefaultRegistry\n\n\t// TagReferenceAnnotationTagHidden indicates that a given TagReference is hidden from search results\n\tTagReferenceAnnotationTagHidden = \"hidden\"\n)\n```\n\n```go\nconst (\n\t// ManagedByOpenShiftAnnotation indicates that an image is managed by OpenShift's registry.\n\tManagedByOpenShiftAnnotation = \"openshift.io/image.managed\"\n\n\t// DockerImageRepositoryCheckAnnotation indicates that OpenShift has\n\t// attempted to import tag and image information from an external Docker\n\t// image repository.\n\tDockerImageRepositoryCheckAnnotation = \"openshift.io/image.dockerRepositoryCheck\"\n\n\t// InsecureRepositoryAnnotation may be set true on an image stream to allow insecure access to pull content.\n\tInsecureRepositoryAnnotation = \"openshift.io/image.insecureRepository\"\n\n\t// ExcludeImageSecretAnnotation indicates that a secret should not be returned by imagestream/secrets.\n\tExcludeImageSecretAnnotation = \"openshift.io/image.excludeSecret\"\n\n\t// DefaultImageTag is used when an image tag is needed and the configuration does not specify a tag to use.\n\tDefaultImageTag = \"latest\"\n\n\t// ResourceImageStreams represents a number of image streams in a project.\n\tResourceImageStreams kapi.ResourceName = \"openshift.io/imagestreams\"\n\n\t// ResourceImageStreamImages represents a number of unique references to images in all image stream\n\t// statuses of a project.\n\tResourceImageStreamImages kapi.ResourceName = \"openshift.io/images\"\n\n\t// ResourceImageStreamTags represents a number of unique references to images in all image stream specs\n\t// of a project.\n\tResourceImageStreamTags kapi.ResourceName = \"openshift.io/image-tags\"\n\n\t// Limit that applies to images. Used with a max[\"storage\"] LimitRangeItem to set\n\t// the maximum size of an image.\n\tLimitTypeImage kapi.LimitType = \"openshift.io/Image\"\n\n\t// Limit that applies to image streams. Used with a max[resource] LimitRangeItem to set the maximum number\n\t// of resource. Where the resource is one of \"openshift.io/images\" and \"openshift.io/image-tags\".\n\tLimitTypeImageStream kapi.LimitType = \"openshift.io/ImageStream\"\n)\n```\n\n```go\nconst (\n\t// SignatureTrusted means the signing key or certificate was valid and the signature matched the image at\n\t// the probe time.\n\tSignatureTrusted = \"Trusted\"\n\t// SignatureForImage means the signature matches image object containing it.\n\tSignatureForImage = \"ForImage\"\n\t// SignatureExpired means the signature or its signing key or certificate had been expired at the probe\n\t// time.\n\tSignatureExpired = \"Expired\"\n\t// SignatureRevoked means the signature or its signing key or certificate has been revoked.\n\tSignatureRevoked = \"Revoked\"\n)\n```\nThese are valid conditions of an image signature.\n\n```go\nconst FutureGroupName = \"image.openshift.io\"\n```\n\n```go\nconst GroupName = \"\"\n```\n\n```go\nconst (\n\t// The supported type of image signature.\n\tImageSignatureTypeAtomicImageV1 string = \"AtomicImageV1\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tSchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)\n\tAddToScheme   = SchemeBuilder.AddToScheme\n)\n```\n\n```go\nvar SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}\n```\nSchemeGroupVersion is group version used to register these objects\n\n## Functions\n\n```go\nfunc AddTagEventToImageStream(stream *ImageStream, tag string, next TagEvent) bool\n```\nAddTagEventToImageStream attempts to update the given image stream with a tag event. It will collapse duplicate entries - returning true if a change was made or false if no change occurred. Any successful tag resets the status field.\n\n```go\nfunc DeepCopy_api_Descriptor(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_DockerConfig(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_DockerConfigHistory(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_DockerConfigRootFS(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_DockerFSLayer(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_DockerHistory(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_DockerImage(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_DockerImageConfig(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_DockerImageManifest(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_DockerImageReference(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_DockerV1CompatibilityImage(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_DockerV1CompatibilityImageSize(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_Image(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageImportSpec(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageImportStatus(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageLayer(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageList(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageSignature(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageStream(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageStreamImage(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageStreamImport(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageStreamImportSpec(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageStreamImportStatus(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageStreamList(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageStreamMapping(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageStreamSpec(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageStreamStatus(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageStreamTag(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ImageStreamTagList(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_RepositoryImportSpec(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_RepositoryImportStatus(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_SignatureCondition(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_SignatureGenericEntity(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_SignatureIssuer(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_SignatureSubject(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_TagEvent(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_TagEventCondition(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_TagEventList(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_TagImportPolicy(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_TagReference(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_TagReferencePolicy(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DifferentTagEvent(stream *ImageStream, tag string, next TagEvent) bool\n```\nDifferentTagEvent returns true if the supplied tag event matches the current stream tag event. Generation is not compared.\n\n```go\nfunc DifferentTagGeneration(stream *ImageStream, tag string) bool\n```\nDifferentTagEvent compares the generation on tag's spec vs its status. Returns if spec generation is newer than status one.\n\n```go\nfunc DockerImageReferenceForImage(stream *ImageStream, imageID string) (string, bool)\n```\nDockerImageReferenceForImage returns the docker reference for specified image. Assuming the image stream contains the image and the image has corresponding tag, this function will try to find this tag and take the reference policy into the account. If the image stream does not reference the image or the image does not have corresponding tag event, this function will return false.\n\n```go\nfunc HasTagCondition(stream *ImageStream, tag string, condition TagEventCondition) bool\n```\nHasTagCondition returns true if the specified image stream tag has a condition with the same type, status, and reason (does not check generation, date, or message).\n\n```go\nfunc ImageConfigMatchesImage(image *Image, imageConfig []byte) (bool, error)\n```\nImageConfigMatchesImage returns true if the provided image config matches a digest stored in the manifest of the image.\n\n```go\nfunc ImageStreamToSelectableFields(ir *ImageStream) fields.Set\n```\nImageStreamToSelectableFields returns a label set that represents the object.\n\n```go\nfunc ImageToSelectableFields(image *Image) fields.Set\n```\nImageToSelectableFields returns a label set that represents the object.\n\n```go\nfunc ImageWithMetadata(image *Image) error\n```\nImageWithMetadata mutates the given image. It parses raw DockerImageManifest data stored in the image and fills its DockerImageMetadata and other fields.\n\n```go\nfunc IndexOfImageSignature(signatures []ImageSignature, sType string, sContent []byte) int\n```\nIndexOfImageSignature returns index of signature identified by type and blob in the image if present. It returns -1 otherwise.\n\n```go\nfunc IndexOfImageSignatureByName(signatures []ImageSignature, name string) int\n```\nIndexOfImageSignatureByName returns an index of signature identified by name in the image if present. It returns -1 otherwise.\n\n```go\nfunc IsRegistryDockerHub(registry string) bool\n```\nIsRegistryDockerHub returns true if the given registry name belongs to Docker hub.\n\n```go\nfunc JoinImageSignatureName(imageName, signatureName string) (string, error)\n```\nJoinImageSignatureName joins image name and custom signature name into one string with @ separator.\n\n```go\nfunc JoinImageStreamTag(name, tag string) string\n```\nJoinImageStreamTag turns a name and tag into the name of an ImageStreamTag\n\n```go\nfunc Kind(kind string) unversioned.GroupKind\n```\nKind takes an unqualified kind and returns back a Group qualified GroupKind\n\n```go\nfunc LabelForStream(stream *ImageStream) string\n```\n\n```go\nfunc LatestObservedTagGeneration(stream *ImageStream, tag string) int64\n```\nLatestObservedTagGeneration returns the generation value for the given tag that has been observed by the controller monitoring the image stream. If the tag has not been observed, the generation is zero.\n\n```go\nfunc MakeImageStreamImageName(name, id string) string\n```\nMakeImageStreamImageName creates a name for image stream image object from an image stream name and an id.\n\n```go\nfunc ManifestMatchesImage(image *Image, newManifest []byte) (bool, error)\n```\nManifestMatchesImage returns true if the provided manifest matches the name of the image.\n\n```go\nfunc MostAccuratePullSpec(pullSpec string, id, tag string) (string, bool)\n```\nMostAccuratePullSpec returns a docker image reference that uses the current ID if possible, the current tag otherwise, and returns false if the reference if the spec could not be parsed. The returned spec has all client defaults applied.\n\n```go\nfunc NormalizeImageStreamTag(name string) string\n```\nNormalizeImageStreamTag normalizes an image stream tag by defaulting to 'latest' if no tag has been specified.\n\n```go\nfunc ParseImageStreamImageName(input string) (name string, id string, err error)\n```\nParseImageStreamImageName splits a string into its name component and ID component, and returns an error if the string is not in the right form.\n\n```go\nfunc ParseImageStreamTagName(istag string) (name string, tag string, err error)\n```\nParseImageStreamTagName splits a string into its name component and tag component, and returns an error if the string is not in the right form.\n\n```go\nfunc PrioritizeTags(tags []string)\n```\nPrioritizeTags orders a set of image tags with a few conventions:\n\n1\\. the \"latest\" tag, if present, should be first 2. any tags that represent a semantic minor version (\"5.1\", \"v5.1\", \"v5.1-rc1\") should be next, in descending order 3. any tags that represent a full semantic version (\"5.1.3-other\", \"v5.1.3-other\") should be next, in descending order 4. any remaining tags should be sorted in lexicographic order\n\nThe method updates the tags in place.\n\n```go\nfunc RegisterDeepCopies(scheme *runtime.Scheme) error\n```\nRegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.\n\n```go\nfunc ResolveLatestTaggedImage(stream *ImageStream, tag string) (string, bool)\n```\nResolveLatestTaggedImage returns the appropriate pull spec for a given tag in the image stream, handling the tag's reference policy if necessary to return a resolved image. Callers that transform an ImageStreamTag into a pull spec should use this method instead of LatestTaggedImage.\n\n```go\nfunc Resource(resource string) unversioned.GroupResource\n```\nResource takes an unqualified resource and returns back a Group qualified GroupResource\n\n```go\nfunc SetTagConditions(stream *ImageStream, tag string, conditions ...TagEventCondition)\n```\nSetTagConditions applies the specified conditions to the status of the given tag.\n\n```go\nfunc ShortDockerImageID(image *DockerImage, length int) string\n```\nShortDockerImageID returns a short form of the provided DockerImage ID for display\n\n```go\nfunc SortStatusTags(tags map[string]TagEventList) []string\n```\nSortStatusTags sorts the status tags of an image stream based on the latest created\n\n```go\nfunc SplitImageSignatureName(imageSignatureName string) (imageName, signatureName string, err error)\n```\nSplitImageSignatureName splits given signature name into image name and signature name.\n\n```go\nfunc SplitImageStreamImage(nameAndID string) (name string, id string, ok bool)\n```\nSplitImageStreamImage turns the name of an ImageStreamImage into Name and ID. It returns false if the ID was not properly specified in the name.\n\n```go\nfunc SplitImageStreamTag(nameAndTag string) (name string, tag string, ok bool)\n```\nSplitImageStreamTag turns the name of an ImageStreamTag into Name and Tag. It returns false if the tag was not properly specified in the name.\n\n```go\nfunc UpdateChangedTrackingTags(new, old *ImageStream) int\n```\nUpdateChangedTrackingTags identifies any tags in the status that have changed and ensures any referenced tracking tags are also updated. It returns the number of updates applied.\n\n```go\nfunc UpdateTrackingTags(stream *ImageStream, updatedTag string, updatedImage TagEvent) int\n```\nUpdateTrackingTags sets updatedImage as the most recent TagEvent for all tags in stream.spec.tags that have from.kind = \"ImageStreamTag\" and the tag in from.name = updatedTag. from.name may be either \\\u003ctag\u003e or \\\u003cstream name\u003e:\\\u003ctag\u003e. For now, only references to tags in the current stream are supported.\n\nFor example, if stream.spec.tags\\[latest].from.name = 2.0, whenever an image is pushed to this stream with the tag 2.0, status.tags\\[latest].items\\[0] will also be updated to point at the same image that was just pushed for 2.0.\n\nReturns the number of tags changed.\n\n## Types\n\n```go\ntype DefaultRegistry interface {\n\tDefaultRegistry() (string, bool)\n}\n```\nDefaultRegistry returns the default Docker registry (host or host:port), or false if it is not available.\n\n```go\ntype DefaultRegistryFunc func() (string, bool)\n```\nDefaultRegistryFunc implements DefaultRegistry for a simple function.\n\n```go\nfunc (fn DefaultRegistryFunc) DefaultRegistry() (string, bool)\n```\nDefaultRegistry implements the DefaultRegistry interface for a function.\n\n```go\ntype Descriptor struct {\n\t// MediaType describe the type of the content. All text based formats are\n\t// encoded as utf-8.\n\tMediaType string `json:\"mediaType,omitempty\"`\n\n\t// Size in bytes of content.\n\tSize int64 `json:\"size,omitempty\"`\n\n\t// Digest uniquely identifies the content. A byte stream can be verified\n\t// against against this digest.\n\tDigest string `json:\"digest,omitempty\"`\n}\n```\nDescriptor describes targeted content. Used in conjunction with a blob store, a descriptor can be used to fetch, store and target any kind of blob. The struct also describes the wire protocol format. Fields should only be added but never changed.\n\n```go\ntype DockerConfig struct {\n\tHostname        string              `json:\"Hostname,omitempty\"`\n\tDomainname      string              `json:\"Domainname,omitempty\"`\n\tUser            string              `json:\"User,omitempty\"`\n\tMemory          int64               `json:\"Memory,omitempty\"`\n\tMemorySwap      int64               `json:\"MemorySwap,omitempty\"`\n\tCPUShares       int64               `json:\"CpuShares,omitempty\"`\n\tCPUSet          string              `json:\"Cpuset,omitempty\"`\n\tAttachStdin     bool                `json:\"AttachStdin,omitempty\"`\n\tAttachStdout    bool                `json:\"AttachStdout,omitempty\"`\n\tAttachStderr    bool                `json:\"AttachStderr,omitempty\"`\n\tPortSpecs       []string            `json:\"PortSpecs,omitempty\"`\n\tExposedPorts    map[string]struct{} `json:\"ExposedPorts,omitempty\"`\n\tTty             bool                `json:\"Tty,omitempty\"`\n\tOpenStdin       bool                `json:\"OpenStdin,omitempty\"`\n\tStdinOnce       bool                `json:\"StdinOnce,omitempty\"`\n\tEnv             []string            `json:\"Env,omitempty\"`\n\tCmd             []string            `json:\"Cmd,omitempty\"`\n\tDNS             []string            `json:\"Dns,omitempty\"` // For Docker API v1.9 and below only\n\tImage           string              `json:\"Image,omitempty\"`\n\tVolumes         map[string]struct{} `json:\"Volumes,omitempty\"`\n\tVolumesFrom     string              `json:\"VolumesFrom,omitempty\"`\n\tWorkingDir      string              `json:\"WorkingDir,omitempty\"`\n\tEntrypoint      []string            `json:\"Entrypoint,omitempty\"`\n\tNetworkDisabled bool                `json:\"NetworkDisabled,omitempty\"`\n\tSecurityOpts    []string            `json:\"SecurityOpts,omitempty\"`\n\tOnBuild         []string            `json:\"OnBuild,omitempty\"`\n\tLabels          map[string]string   `json:\"Labels,omitempty\"`\n}\n```\nDockerConfig is the list of configuration options used when creating a container.\n\n```go\ntype DockerConfigHistory struct {\n\tCreated    unversioned.Time `json:\"created\"`\n\tAuthor     string           `json:\"author,omitempty\"`\n\tCreatedBy  string           `json:\"created_by,omitempty\"`\n\tComment    string           `json:\"comment,omitempty\"`\n\tEmptyLayer bool             `json:\"empty_layer,omitempty\"`\n}\n```\nDockerConfigHistory stores build commands that were used to create an image\n\n```go\ntype DockerConfigRootFS struct {\n\tType    string   `json:\"type\"`\n\tDiffIDs []string `json:\"diff_ids,omitempty\"`\n}\n```\nDockerConfigRootFS describes images root filesystem\n\n```go\ntype DockerFSLayer struct {\n\t// DockerBlobSum is the tarsum of the referenced filesystem image layer\n\t// TODO make this digest.Digest once docker/distribution is in Godeps\n\tDockerBlobSum string `json:\"blobSum\"`\n}\n```\nDockerFSLayer is a container struct for BlobSums defined in an image manifest\n\n```go\ntype DockerHistory struct {\n\t// DockerV1Compatibility is the raw v1 compatibility information\n\tDockerV1Compatibility string `json:\"v1Compatibility\"`\n}\n```\nDockerHistory stores unstructured v1 compatibility information\n\n```go\ntype DockerImage struct {\n\tunversioned.TypeMeta `json:\",inline\"`\n\n\tID              string           `json:\"Id\"`\n\tParent          string           `json:\"Parent,omitempty\"`\n\tComment         string           `json:\"Comment,omitempty\"`\n\tCreated         unversioned.Time `json:\"Created,omitempty\"`\n\tContainer       string           `json:\"Container,omitempty\"`\n\tContainerConfig DockerConfig     `json:\"ContainerConfig,omitempty\"`\n\tDockerVersion   string           `json:\"DockerVersion,omitempty\"`\n\tAuthor          string           `json:\"Author,omitempty\"`\n\tConfig          *DockerConfig    `json:\"Config,omitempty\"`\n\tArchitecture    string           `json:\"Architecture,omitempty\"`\n\tSize            int64            `json:\"Size,omitempty\"`\n}\n```\nDockerImage is the type representing a docker image and its various properties when retrieved from the Docker client API.\n\n```go\nfunc (obj *DockerImage) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype DockerImageConfig struct {\n\tID              string                `json:\"id\"`\n\tParent          string                `json:\"parent,omitempty\"`\n\tComment         string                `json:\"comment,omitempty\"`\n\tCreated         unversioned.Time      `json:\"created\"`\n\tContainer       string                `json:\"container,omitempty\"`\n\tContainerConfig DockerConfig          `json:\"container_config,omitempty\"`\n\tDockerVersion   string                `json:\"docker_version,omitempty\"`\n\tAuthor          string                `json:\"author,omitempty\"`\n\tConfig          *DockerConfig         `json:\"config,omitempty\"`\n\tArchitecture    string                `json:\"architecture,omitempty\"`\n\tSize            int64                 `json:\"size,omitempty\"`\n\tRootFS          *DockerConfigRootFS   `json:\"rootfs,omitempty\"`\n\tHistory         []DockerConfigHistory `json:\"history,omitempty\"`\n\tOSVersion       string                `json:\"os.version,omitempty\"`\n\tOSFeatures      []string              `json:\"os.features,omitempty\"`\n}\n```\nDockerImageConfig stores the image configuration\n\n```go\ntype DockerImageManifest struct {\n\tSchemaVersion int    `json:\"schemaVersion\"`\n\tMediaType     string `json:\"mediaType,omitempty\"`\n\n\t// schema1\n\tName         string          `json:\"name\"`\n\tTag          string          `json:\"tag\"`\n\tArchitecture string          `json:\"architecture\"`\n\tFSLayers     []DockerFSLayer `json:\"fsLayers\"`\n\tHistory      []DockerHistory `json:\"history\"`\n\n\t// schema2\n\tLayers []Descriptor `json:\"layers\"`\n\tConfig Descriptor   `json:\"config\"`\n}\n```\nDockerImageManifest represents the Docker v2 image format.\n\n```go\ntype DockerImageReference struct {\n\tRegistry  string\n\tNamespace string\n\tName      string\n\tTag       string\n\tID        string\n}\n```\nDockerImageReference points to a Docker image.\n\n```go\nfunc DockerImageReferenceForStream(stream *ImageStream) (DockerImageReference, error)\n```\nDockerImageReferenceForStream returns a DockerImageReference that represents the ImageStream or false, if no valid reference exists.\n\n```go\nfunc ParseDockerImageReference(spec string) (DockerImageReference, error)\n```\nParseDockerImageReference parses a Docker pull spec string into a DockerImageReference.\n\n```go\nfunc (r DockerImageReference) AsRepository() DockerImageReference\n```\nAsRepository returns the reference without tags or IDs.\n\n```go\nfunc (r DockerImageReference) AsV2() DockerImageReference\n```\n\n```go\nfunc (r DockerImageReference) DaemonMinimal() DockerImageReference\n```\nDaemonMinimal clears defaults that Docker assumes.\n\n```go\nfunc (r DockerImageReference) DockerClientDefaults() DockerImageReference\n```\nDockerClientDefaults sets the default values used by the Docker client.\n\n```go\nfunc (r DockerImageReference) Equal(other DockerImageReference) bool\n```\nEqual returns true if the other DockerImageReference is equivalent to the reference r. The comparison applies defaults to the Docker image reference, so that e.g., \"foobar\" equals \"docker.io/library/foobar:latest\".\n\n```go\nfunc (r DockerImageReference) Exact() string\n```\nExact returns a string representation of the set fields on the DockerImageReference\n\n```go\nfunc (r DockerImageReference) Minimal() DockerImageReference\n```\nMinimal reduces a DockerImageReference to its minimalist form.\n\n```go\nfunc (r DockerImageReference) MostSpecific() DockerImageReference\n```\nMostSpecific returns the most specific image reference that can be constructed from the current ref, preferring an ID over a Tag. Allows client code dealing with both tags and IDs to get the most specific reference easily.\n\n```go\nfunc (r DockerImageReference) NameString() string\n```\nNameString returns the name of the reference with its tag or ID.\n\n```go\nfunc (r DockerImageReference) RegistryURL() *url.URL\n```\nRepositoryName returns the registry relative name\n\n```go\nfunc (r DockerImageReference) RepositoryName() string\n```\nRepositoryName returns the registry relative name\n\n```go\nfunc (r DockerImageReference) String() string\n```\nString converts a DockerImageReference to a Docker pull spec (which implies a default namespace according to V1 Docker registry rules). Use Exact() if you want no defaulting.\n\n```go\ntype DockerV1CompatibilityImage struct {\n\tID              string           `json:\"id\"`\n\tParent          string           `json:\"parent,omitempty\"`\n\tComment         string           `json:\"comment,omitempty\"`\n\tCreated         unversioned.Time `json:\"created\"`\n\tContainer       string           `json:\"container,omitempty\"`\n\tContainerConfig DockerConfig     `json:\"container_config,omitempty\"`\n\tDockerVersion   string           `json:\"docker_version,omitempty\"`\n\tAuthor          string           `json:\"author,omitempty\"`\n\tConfig          *DockerConfig    `json:\"config,omitempty\"`\n\tArchitecture    string           `json:\"architecture,omitempty\"`\n\tSize            int64            `json:\"size,omitempty\"`\n}\n```\nDockerV1CompatibilityImage represents the structured v1 compatibility information.\n\n```go\ntype DockerV1CompatibilityImageSize struct {\n\tSize int64 `json:\"size,omitempty\"`\n}\n```\nDockerV1CompatibilityImageSize represents the structured v1 compatibility information for size\n\n```go\ntype Image struct {\n\tunversioned.TypeMeta\n\tkapi.ObjectMeta\n\n\t// The string that can be used to pull this image.\n\tDockerImageReference string\n\t// Metadata about this image\n\tDockerImageMetadata DockerImage\n\t// This attribute conveys the version of docker metadata the JSON should be stored in, which if empty defaults to \"1.0\"\n\tDockerImageMetadataVersion string\n\t// The raw JSON of the manifest\n\tDockerImageManifest string\n\t// DockerImageLayers represents the layers in the image. May not be set if the image does not define that data.\n\tDockerImageLayers []ImageLayer\n\t// Signatures holds all signatures of the image.\n\tSignatures []ImageSignature\n\t// DockerImageSignatures provides the signatures as opaque blobs. This is a part of manifest schema v1.\n\tDockerImageSignatures [][]byte\n\t// DockerImageManifestMediaType specifies the mediaType of manifest. This is a part of manifest schema v2.\n\tDockerImageManifestMediaType string\n\t// DockerImageConfig is a JSON blob that the runtime uses to set up the container. This is a part of manifest schema v2.\n\tDockerImageConfig string\n}\n```\nImage is an immutable representation of a Docker image and metadata at a point in time.\n\n```go\nfunc (obj *Image) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype ImageImportSpec struct {\n\tFrom kapi.ObjectReference\n\tTo   *kapi.LocalObjectReference\n\n\tImportPolicy    TagImportPolicy\n\tIncludeManifest bool\n}\n```\nImageImportSpec defines how an image is imported.\n\n```go\ntype ImageImportStatus struct {\n\tTag    string\n\tStatus unversioned.Status\n\tImage  *Image\n}\n```\nImageImportStatus describes the result of an image import.\n\n```go\ntype ImageLayer struct {\n\t// Name of the layer as defined by the underlying store.\n\tName string\n\t// LayerSize of the layer as defined by the underlying store.\n\tLayerSize int64\n\t// MediaType of the referenced object.\n\tMediaType string\n}\n```\nImageLayer represents a single layer of the image. Some images may have multiple layers. Some may have none.\n\n```go\ntype ImageList struct {\n\tunversioned.TypeMeta\n\tunversioned.ListMeta\n\n\tItems []Image\n}\n```\nImageList is a list of Image objects.\n\n```go\nfunc (obj *ImageList) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype ImageSignature struct {\n\tunversioned.TypeMeta\n\tkapi.ObjectMeta\n\n\t// Required: Describes a type of stored blob.\n\tType string\n\t// Required: An opaque binary string which is an image's signature.\n\tContent []byte\n\t// Conditions represent the latest available observations of a signature's current state.\n\tConditions []SignatureCondition\n\n\t// A human readable string representing image's identity. It could be a product name and version, or an\n\t// image pull spec (e.g. \"registry.access.redhat.com/rhel7/rhel:7.2\").\n\tImageIdentity string\n\t// Contains claims from the signature.\n\tSignedClaims map[string]string\n\t// If specified, it is the time of signature's creation.\n\tCreated *unversioned.Time\n\t// If specified, it holds information about an issuer of signing certificate or key (a person or entity\n\t// who signed the signing certificate or key).\n\tIssuedBy *SignatureIssuer\n\t// If specified, it holds information about a subject of signing certificate or key (a person or entity\n\t// who signed the image).\n\tIssuedTo *SignatureSubject\n}\n```\nImageSignature holds a signature of an image. It allows to verify image identity and possibly other claims as long as the signature is trusted. Based on this information it is possible to restrict runnable images to those matching cluster-wide policy. Mandatory fields should be parsed by clients doing image verification. The others are parsed from signature's content by the server. They serve just an informative purpose.\n\n```go\nfunc (obj *ImageSignature) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype ImageStream struct {\n\tunversioned.TypeMeta\n\tkapi.ObjectMeta\n\n\t// Spec describes the desired state of this stream\n\tSpec ImageStreamSpec\n\t// Status describes the current state of this stream\n\tStatus ImageStreamStatus\n}\n```\nImageStream stores a mapping of tags to images, metadata overrides that are applied when images are tagged in a stream, and an optional reference to a Docker image repository on a registry.\n\n```go\nfunc (obj *ImageStream) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype ImageStreamImage struct {\n\tunversioned.TypeMeta\n\tkapi.ObjectMeta\n\n\t// The Image associated with the ImageStream and image name.\n\tImage Image\n}\n```\nImageStreamImage represents an Image that is retrieved by image name from an ImageStream.\n\n```go\nfunc (obj *ImageStreamImage) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype ImageStreamImport struct {\n\tunversioned.TypeMeta\n\t// ObjectMeta must identify the name of the image stream to create or update. If resourceVersion\n\t// or UID are set, they must match the image stream that will be loaded from the server.\n\tkapi.ObjectMeta\n\n\t// Spec is the set of items desired to be imported\n\tSpec ImageStreamImportSpec\n\t// Status is the result of the import\n\tStatus ImageStreamImportStatus\n}\n```\nImageStreamImport allows a caller to request information about a set of images for possible import into an image stream, or actually tag the images into the image stream.\n\n```go\nfunc (obj *ImageStreamImport) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype ImageStreamImportSpec struct {\n\t// Import indicates whether to perform an import - if so, the specified tags are set on the spec\n\t// and status of the image stream defined by the type meta.\n\tImport bool\n\t// Repository is an optional import of an entire Docker image repository. A maximum limit on the\n\t// number of tags imported this way is imposed by the server.\n\tRepository *RepositoryImportSpec\n\t// Images are a list of individual images to import.\n\tImages []ImageImportSpec\n}\n```\nImageStreamImportSpec defines what images should be imported.\n\n```go\ntype ImageStreamImportStatus struct {\n\t// Import is the image stream that was successfully updated or created when 'to' was set.\n\tImport *ImageStream\n\t// Repository is set if spec.repository was set to the outcome of the import\n\tRepository *RepositoryImportStatus\n\t// Images is set with the result of importing spec.images\n\tImages []ImageImportStatus\n}\n```\nImageStreamImportStatus contains information about the status of an image stream import.\n\n```go\ntype ImageStreamList struct {\n\tunversioned.TypeMeta\n\tunversioned.ListMeta\n\n\tItems []ImageStream\n}\n```\nImageStreamList is a list of ImageStream objects.\n\n```go\nfunc (obj *ImageStreamList) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype ImageStreamMapping struct {\n\tunversioned.TypeMeta\n\tkapi.ObjectMeta\n\n\t// The Docker image repository the specified image is located in\n\t// DEPRECATED: remove once v1beta1 support is dropped\n\t// +k8s:conversion-gen=false\n\tDockerImageRepository string\n\t// A Docker image.\n\tImage Image\n\t// A string value this image can be located with inside the repository.\n\tTag string\n}\n```\nImageStreamMapping represents a mapping from a single tag to a Docker image as well as the reference to the Docker image repository the image came from.\n\n```go\nfunc (obj *ImageStreamMapping) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype ImageStreamSpec struct {\n\t// Optional, if specified this stream is backed by a Docker repository on this server\n\tDockerImageRepository string\n\t// Tags map arbitrary string values to specific image locators\n\tTags map[string]TagReference\n}\n```\nImageStreamSpec represents options for ImageStreams.\n\n```go\ntype ImageStreamStatus struct {\n\t// DockerImageRepository represents the effective location this stream may be accessed at. May be empty until the server\n\t// determines where the repository is located\n\tDockerImageRepository string\n\t// A historical record of images associated with each tag. The first entry in the TagEvent array is\n\t// the currently tagged image.\n\tTags map[string]TagEventList\n}\n```\nImageStreamStatus contains information about the state of this image stream.\n\n```go\ntype ImageStreamTag struct {\n\tunversioned.TypeMeta\n\tkapi.ObjectMeta\n\n\t// Tag is the spec tag associated with this image stream tag, and it may be null\n\t// if only pushes have occurred to this image stream.\n\tTag *TagReference\n\n\t// Generation is the current generation of the tagged image - if tag is provided\n\t// and this value is not equal to the tag generation, a user has requested an\n\t// import that has not completed, or Conditions will be filled out indicating any\n\t// error.\n\tGeneration int64\n\n\t// Conditions is an array of conditions that apply to the image stream tag.\n\tConditions []TagEventCondition\n\n\t// The Image associated with the ImageStream and tag.\n\tImage Image\n}\n```\nImageStreamTag has a .Name in the format \\\u003cstream name\u003e:\\\u003ctag\u003e.\n\n```go\nfunc (obj *ImageStreamTag) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype ImageStreamTagList struct {\n\tunversioned.TypeMeta\n\tunversioned.ListMeta\n\n\tItems []ImageStreamTag\n}\n```\nImageStreamTagList is a list of ImageStreamTag objects.\n\n```go\nfunc (obj *ImageStreamTagList) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype RepositoryImportSpec struct {\n\t// The source of the import, only kind DockerImage is supported\n\tFrom kapi.ObjectReference\n\n\tImportPolicy    TagImportPolicy\n\tIncludeManifest bool\n}\n```\nRepositoryImport indicates to load a set of tags from a given Docker image repository\n\n```go\ntype RepositoryImportStatus struct {\n\t// Status reflects whether any failure occurred during import\n\tStatus unversioned.Status\n\t// Images is the list of imported images\n\tImages []ImageImportStatus\n\t// AdditionalTags are tags that exist in the repository but were not imported because\n\t// a maximum limit of automatic imports was applied.\n\tAdditionalTags []string\n}\n```\nRepositoryImportStatus describes the outcome of the repository import\n\n```go\ntype SignatureCondition struct {\n\t// Type of signature condition, Complete or Failed.\n\tType SignatureConditionType\n\t// Status of the condition, one of True, False, Unknown.\n\tStatus kapi.ConditionStatus\n\t// Last time the condition was checked.\n\tLastProbeTime unversioned.Time\n\t// Last time the condition transit from one status to another.\n\tLastTransitionTime unversioned.Time\n\t// (brief) reason for the condition's last transition.\n\tReason string\n\t// Human readable message indicating details about last transition.\n\tMessage string\n}\n```\nSignatureCondition describes an image signature condition of particular kind at particular probe time.\n\n```go\ntype SignatureConditionType string\n```\n/ SignatureConditionType is a type of image signature condition.\n\n```go\ntype SignatureGenericEntity struct {\n\t// Organization name.\n\tOrganization string\n\t// Common name (e.g. openshift-signing-service).\n\tCommonName string\n}\n```\nSignatureGenericEntity holds a generic information about a person or entity who is an issuer or a subject of signing certificate or key.\n\n```go\ntype SignatureIssuer struct {\n\tSignatureGenericEntity\n}\n```\nSignatureIssuer holds information about an issuer of signing certificate or key.\n\n```go\ntype SignatureSubject struct {\n\tSignatureGenericEntity\n\t// If present, it is a human readable key id of public key belonging to the subject used to verify image\n\t// signature. It should contain at least 64 lowest bits of public key's fingerprint (e.g.\n\t// 0x685ebe62bf278440).\n\tPublicKeyID string\n}\n```\nSignatureSubject holds information about a person or entity who created the signature.\n\n```go\ntype TagEvent struct {\n\t// When the TagEvent was created\n\tCreated unversioned.Time\n\t// The string that can be used to pull this image\n\tDockerImageReference string\n\t// The image\n\tImage string\n\t// Generation is the spec tag generation that resulted in this tag being updated\n\tGeneration int64\n}\n```\nTagEvent is used by ImageRepositoryStatus to keep a historical record of images associated with a tag.\n\n```go\nfunc LatestImageTagEvent(stream *ImageStream, imageID string) (string, *TagEvent)\n```\nLatestImageTagEvent returns the most recent TagEvent and the tag for the specified image.\n\n```go\nfunc LatestTaggedImage(stream *ImageStream, tag string) *TagEvent\n```\nLatestTaggedImage returns the most recent TagEvent for the specified image repository and tag. Will resolve lookups for the empty tag. Returns nil if tag isn't present in stream.status.tags.\n\n```go\nfunc ResolveImageID(stream *ImageStream, imageID string) (*TagEvent, error)\n```\nResolveImageID returns latest TagEvent for specified imageID and an error if there's more than one image matching the ID or when one does not exist.\n\n```go\ntype TagEventCondition struct {\n\t// Type of tag event condition, currently only ImportSuccess\n\tType TagEventConditionType\n\t// Status of the condition, one of True, False, Unknown.\n\tStatus kapi.ConditionStatus\n\t// LastTransitionTIme is the time the condition transitioned from one status to another.\n\tLastTransitionTime unversioned.Time\n\t// Reason is a brief machine readable explanation for the condition's last transition.\n\tReason string\n\t// Message is a human readable description of the details about last transition, complementing reason.\n\tMessage string\n\t// Generation is the spec tag generation that this status corresponds to. If this value is\n\t// older than the spec tag generation, the user has requested this status tag be updated.\n\t// This value is set to zero for older versions of streams, which means that no generation\n\t// was recorded.\n\tGeneration int64\n}\n```\nTagEventCondition contains condition information for a tag event.\n\n```go\ntype TagEventConditionType string\n```\n\n```go\nconst (\n\t// ImportSuccess with status False means the import of the specific tag failed\n\tImportSuccess TagEventConditionType = \"ImportSuccess\"\n)\n```\nThese are valid conditions of TagEvents.\n\n```go\ntype TagEventList struct {\n\tItems []TagEvent\n\t// Conditions is an array of conditions that apply to the tag event list.\n\tConditions []TagEventCondition\n}\n```\nTagEventList contains a historical record of images associated with a tag.\n\n```go\ntype TagImportPolicy struct {\n\t// Insecure is true if the server may bypass certificate verification or connect directly over HTTP during image import.\n\tInsecure bool\n\t// Scheduled indicates to the server that this tag should be periodically checked to ensure it is up to date, and imported\n\tScheduled bool\n}\n```\n\n```go\ntype TagReference struct {\n\t// Name of the tag\n\tName string\n\t// Optional; if specified, annotations that are applied to images retrieved via ImageStreamTags.\n\tAnnotations map[string]string\n\t// Optional; if specified, a reference to another image that this tag should point to. Valid values\n\t// are ImageStreamTag, ImageStreamImage, and DockerImage.\n\tFrom *kapi.ObjectReference\n\t// Reference states if the tag will be imported. Default value is false, which means the tag will\n\t// be imported.\n\tReference bool\n\t// Generation is a counter that tracks mutations to the spec tag (user intent). When a tag reference\n\t// is changed the generation is set to match the current stream generation (which is incremented every\n\t// time spec is changed). Other processes in the system like the image importer observe that the\n\t// generation of spec tag is newer than the generation recorded in the status and use that as a trigger\n\t// to import the newest remote tag. To trigger a new import, clients may set this value to zero which\n\t// will reset the generation to the latest stream generation. Legacy clients will send this value as\n\t// nil which will be merged with the current tag generation.\n\tGeneration *int64\n\t// ImportPolicy is information that controls how images may be imported by the server.\n\tImportPolicy TagImportPolicy\n\t// ReferencePolicy defines how other components should consume the image\n\tReferencePolicy TagReferencePolicy\n}\n```\nTagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.\n\n```go\nfunc FollowTagReference(stream *ImageStream, tag string) (finalTag string, ref *TagReference, ok bool, multiple bool)\n```\nFollowTagReference walks through the defined tags on a stream, following any referential tags in the stream. Will return ok if the tag is valid, multiple if the tag had at least reference, and ref and finalTag will be the last tag seen. If a circular loop is found ok will be false.\n\n```go\nfunc (tagref TagReference) HasAnnotationTag(searchTag string) bool\n```\n\n```go\ntype TagReferencePolicy struct {\n\t// Type determines how the image pull spec should be transformed when the image stream tag is used in\n\t// deployment config triggers or new builds. The default value is `Source`, indicating the original\n\t// location of the image should be used (if imported). The user may also specify `Local`, indicating\n\t// that the pull spec should point to the integrated Docker registry and leverage the registry's\n\t// ability to proxy the pull to an upstream registry. `Local` allows the credentials used to pull this\n\t// image to be managed from the image stream's namespace, so others on the platform can access a remote\n\t// image but have no access to the remote secret. It also allows the image layers to be mirrored into\n\t// the local registry which the images can still be pulled even if the upstream registry is unavailable.\n\tType TagReferencePolicyType\n}\n```\nTagReferencePolicy describes how pull-specs for images in this image stream tag are generated when image change triggers in deployment configs or builds are resolved. This allows the image stream author to control how images are accessed.\n\n```go\ntype TagReferencePolicyType string\n```\nTagReferencePolicyType describes how pull-specs for images in an image stream tag are generated when image change triggers are fired.\n\n```go\nconst (\n\t// SourceTagReferencePolicy indicates the image's original location should be used when the image stream tag\n\t// is resolved into other resources (builds and deployment configurations).\n\tSourceTagReferencePolicy TagReferencePolicyType = \"Source\"\n\t// LocalTagReferencePolicy indicates the image should prefer to pull via the local integrated registry,\n\t// falling back to the remote location if the integrated registry has not been configured. The reference will\n\t// use the internal DNS name or registry service IP.\n\tLocalTagReferencePolicy TagReferencePolicyType = \"Local\"\n)\n```\n\n","path":"github.1git.de/openshift/origin/pkg/image/api","name":"api","synopsis":"Package api is the internal version of the API.","isRedistributable":true}
