imagestream

package
v3.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

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

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