images

package
v0.8.0-alpha4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 41 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 NewStorage

func NewStorage(c kclient.WithWatch) 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 ImageProgress

type ImageProgress struct {
	Total    int64  `json:"total,omitempty"`
	Complete int64  `json:"complete,omitempty"`
	Error    string `json:"error,omitempty"`
}

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 ggcrv1.Update, 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 ggcrv1.Update, 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 Strategy

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

func NewStrategy

func NewStrategy(getter strategy.Getter, c kclient.WithWatch) *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