Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsImageManaged ¶
func IsImageManaged(image *imageapiv1.Image) bool
Types ¶
type ByGeneration ¶
type ByGeneration []*imageapiv1.TagEvent
ByGeneration allows for sorting tag events from latest to oldest.
func (ByGeneration) Len ¶
func (b ByGeneration) Len() int
func (ByGeneration) Less ¶
func (b ByGeneration) Less(i, j int) bool
func (ByGeneration) Swap ¶
func (b ByGeneration) Swap(i, j int)
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() (bool, error)
GetImageOfImageStream(ctx context.Context, dgst digest.Digest) (*imageapiv1.Image, error)
CreateImageStreamMapping(ctx context.Context, userClient client.Interface, tag string, image *imageapiv1.Image) error
ImageManifestBlobStored(ctx context.Context, image *imageapiv1.Image) error
ResolveImageID(ctx context.Context, dgst digest.Digest) (*imageapiv1.TagEvent, error)
HasBlob(ctx context.Context, dgst digest.Digest, requireManaged bool) *imageapiv1.Image
IdentifyCandidateRepositories(primary bool) ([]string, map[string]ImagePullthroughSpec, error)
GetLimitRangeList(ctx context.Context, cache ProjectObjectListStore) (*corev1.LimitRangeList, error)
GetSecrets() ([]corev1.Secret, error)
TagIsInsecure(tag string, dgst digest.Digest) (bool, error)
Tags(ctx context.Context) (map[string]digest.Digest, error)
Tag(ctx context.Context, tag string, dgst digest.Digest, pullthroughEnabled bool) error
Untag(ctx context.Context, tag string, pullthroughEnabled bool) 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.