images

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRegistry = "NO_DEFAULT"
)

Variables

This section is empty.

Functions

func NewImageDetails

func NewImageDetails(c client.WithWatch, transport http.RoundTripper) rest.Storage

func NewImageSign

func NewImageSign(c client.WithWatch, transport http.RoundTripper) rest.Storage

func NewImageVerify

func NewImageVerify(c client.WithWatch, transport http.RoundTripper) rest.Storage

func NewStorage

func NewStorage(c kclient.WithWatch, transport http.RoundTripper) rest.Storage

func NewTagStorage

func NewTagStorage(c client.WithWatch) rest.Storage

Types

type ImageDetailStrategy

type ImageDetailStrategy struct {
	// contains filtered or unexported fields
}

func (*ImageDetailStrategy) Create

func (*ImageDetailStrategy) Get

func (s *ImageDetailStrategy) Get(ctx context.Context, namespace, name string) (types.Object, error)

func (*ImageDetailStrategy) New

func (s *ImageDetailStrategy) New() types.Object

type ImagePull

type ImagePull struct {
	*strategy.DestroyAdapter
	// contains filtered or unexported fields
}

func NewImagePull

func NewImagePull(c kclient.WithWatch, clientFactory *client.Factory, transport http.RoundTripper) *ImagePull

func (*ImagePull) Connect

func (i *ImagePull) Connect(ctx context.Context, id string, options runtime.Object, r rest.Responder) (http.Handler, error)

func (*ImagePull) ConnectMethods

func (i *ImagePull) ConnectMethods() []string

func (*ImagePull) ImagePull

func (i *ImagePull) ImagePull(ctx context.Context, namespace, imageName string, auth *apiv1.RegistryAuth) (<-chan images.ImageProgress, error)

func (*ImagePull) NamespaceScoped

func (i *ImagePull) NamespaceScoped() bool

func (*ImagePull) New

func (i *ImagePull) New() runtime.Object

func (*ImagePull) NewConnectOptions

func (i *ImagePull) NewConnectOptions() (runtime.Object, bool, string)

type ImagePush

type ImagePush struct {
	*strategy.DestroyAdapter
	// contains filtered or unexported fields
}

func NewImagePush

func NewImagePush(c client.WithWatch, transport http.RoundTripper) *ImagePush

func (*ImagePush) Connect

func (i *ImagePush) Connect(ctx context.Context, id string, options runtime.Object, r rest.Responder) (http.Handler, error)

func (*ImagePush) ConnectMethods

func (i *ImagePush) ConnectMethods() []string

func (*ImagePush) ImagePush

func (i *ImagePush) ImagePush(ctx context.Context, image *apiv1.Image, tagName string, auth *apiv1.RegistryAuth) (*apiv1.Image, <-chan images.ImageProgress, error)

func (*ImagePush) NamespaceScoped

func (i *ImagePush) NamespaceScoped() bool

func (*ImagePush) New

func (i *ImagePush) New() runtime.Object

func (*ImagePush) NewConnectOptions

func (i *ImagePush) NewConnectOptions() (runtime.Object, bool, string)

type ImageSignStrategy

type ImageSignStrategy struct {
	// contains filtered or unexported fields
}

func (*ImageSignStrategy) Create

func (t *ImageSignStrategy) Create(ctx context.Context, obj types.Object) (types.Object, error)

func (*ImageSignStrategy) ImageSign

func (t *ImageSignStrategy) ImageSign(ctx context.Context, namespace string, signature apiv1.ImageSignature) (string, error)

func (*ImageSignStrategy) New

func (t *ImageSignStrategy) New() types.Object

type ImageVerifyStrategy

type ImageVerifyStrategy struct {
	// contains filtered or unexported fields
}

func (*ImageVerifyStrategy) Create

func (*ImageVerifyStrategy) ImageVerify

func (t *ImageVerifyStrategy) ImageVerify(ctx context.Context, namespace string, signature apiv1.ImageSignature) error

func (*ImageVerifyStrategy) New

func (t *ImageVerifyStrategy) New() types.Object

type Strategy

type Strategy struct {
	// contains filtered or unexported fields
}

func NewStrategy

func NewStrategy(getter strategy.Getter, c kclient.WithWatch, transport http.RoundTripper) *Strategy

func (*Strategy) ConvertToTable

func (s *Strategy) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

func (*Strategy) Delete

func (s *Strategy) Delete(ctx context.Context, obj types.Object) (types.Object, error)

func (*Strategy) Get

func (s *Strategy) Get(ctx context.Context, namespace, name string) (types.Object, error)

func (*Strategy) ImageGet

func (s *Strategy) ImageGet(ctx context.Context, namespace, name string) (*apiv1.Image, error)

func (*Strategy) Update

func (s *Strategy) Update(ctx context.Context, obj types.Object) (types.Object, error)

func (*Strategy) ValidateUpdate

func (s *Strategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) (result field.ErrorList)

type TagStrategy

type TagStrategy struct {
	// contains filtered or unexported fields
}

func (*TagStrategy) Create

func (t *TagStrategy) Create(ctx context.Context, obj types.Object) (types.Object, error)

func (*TagStrategy) ImageTag

func (t *TagStrategy) ImageTag(ctx context.Context, namespace, imageName string, tagToAdd string) (*v1.ImageInstance, error)

func (*TagStrategy) New

func (t *TagStrategy) New() types.Object

type Translator

type Translator struct {
}

func (*Translator) FromPublic

func (s *Translator) FromPublic(obj mtypes.Object) mtypes.Object

func (*Translator) ToPublic

func (s *Translator) ToPublic(obj mtypes.Object) mtypes.Object

Jump to

Keyboard shortcuts

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