imagestream

package
v4.2.26+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

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)
}

func New

func New(ctx context.Context, namespace, name string, client client.Interface) ImageStream

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL