registry

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillDefaults

func FillDefaults(registry *api.Registry)

func ListTypeMeta

func ListTypeMeta() api.TypeMeta

func TypeMeta

func TypeMeta() api.TypeMeta

Types

type ContainerClient

type ContainerClient interface {
	ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
	ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
	ContainerRemove(ctx context.Context, id string, options types.ContainerRemoveOptions) error
}

type Controller

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

func DefaultController

func DefaultController(ctx context.Context, iostreams genericclioptions.IOStreams) (*Controller, error)

func NewController

func NewController(iostreams genericclioptions.IOStreams, dockerClient ContainerClient) (*Controller, error)

func (*Controller) Apply

func (c *Controller) Apply(ctx context.Context, desired *api.Registry) (*api.Registry, error)

Compare the desired registry against the existing registry, and reconcile the two to match.

func (*Controller) Delete

func (c *Controller) Delete(ctx context.Context, name string) error

Delete the given registry.

func (*Controller) Get

func (c *Controller) Get(ctx context.Context, name string) (*api.Registry, error)

func (*Controller) List

func (c *Controller) List(ctx context.Context, options ListOptions) (*api.RegistryList, error)

type ListOptions

type ListOptions struct {
	FieldSelector string
}

Jump to

Keyboard shortcuts

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