Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrImageStreamGetterCode = "ImageStreamGetter:" ErrImageStreamGetterUnknownCode = ErrImageStreamGetterCode + "Unknown" ErrImageStreamGetterNotFoundCode = ErrImageStreamGetterCode + "NotFound" ErrImageStreamGetterForbiddenCode = ErrImageStreamGetterCode + "Forbidden" )
View Source
const ( ErrImageGetterCode = "ImageGetter:" ErrImageGetterUnknownCode = ErrImageGetterCode + "Unknown" ErrImageGetterNotFoundCode = ErrImageGetterCode + "NotFound" ErrImageGetterForbiddenCode = ErrImageGetterCode + "Forbidden" )
View Source
const ( ErrImageStreamCode = "ImageStream:" ErrImageStreamUnknownErrorCode = ErrImageStreamCode + "Unknown" ErrImageStreamNotFoundCode = ErrImageStreamCode + "NotFound" ErrImageStreamImageNotFoundCode = ErrImageStreamCode + "ImageNotFound" ErrImageStreamForbiddenCode = ErrImageStreamCode + "Forbidden" )
Variables ¶
This section is empty.
Functions ¶
func IsImageManaged ¶
func IsImageManaged(image *imageapiv1.Image) bool
Types ¶
type ImagePullthroughSpec ¶
type ImagePullthroughSpec struct { DockerImageReference *imageapi.DockerImageReference Insecure bool }
ImagePullthroughSpec contains a reference of remote image to pull associated with an insecure flag for the corresponding registry.
type ImageStream ¶
type ImageStream interface { Reference() string Exists(ctx context.Context) (bool, *rerrors.Error) GetImageOfImageStream(ctx context.Context, dgst digest.Digest) (*imageapiv1.Image, *rerrors.Error) CreateImageStreamMapping(ctx context.Context, userClient client.Interface, tag string, image *imageapiv1.Image) *rerrors.Error ResolveImageID(ctx context.Context, dgst digest.Digest) (*imageapiv1.TagEvent, *rerrors.Error) HasBlob(ctx context.Context, dgst digest.Digest) (bool, *imageapiv1.ImageStreamLayers, *imageapiv1.Image) IdentifyCandidateRepositories(ctx context.Context, primary bool) ([]string, map[string]ImagePullthroughSpec, *rerrors.Error) GetLimitRangeList(ctx context.Context, cache ProjectObjectListStore) (*corev1.LimitRangeList, *rerrors.Error) GetSecrets() ([]corev1.Secret, *rerrors.Error) TagIsInsecure(ctx context.Context, tag string, dgst digest.Digest) (bool, *rerrors.Error) Tags(ctx context.Context) (map[string]digest.Digest, *rerrors.Error) }
type ProjectObjectListStore ¶
type ProjectObjectListStore interface { Add(namespace string, obj runtime.Object) error Get(namespace string) (obj runtime.Object, exists bool, err error) }
ProjectObjectListStore represents a cache of objects indexed by a project name. Used to store a list of items per namespace.
Click to show internal directories.
Click to hide internal directories.