Documentation
¶
Index ¶
- func FillDefaults(registry *api.Registry)
- func ListTypeMeta() api.TypeMeta
- func TypeMeta() api.TypeMeta
- type ContainerClient
- type Controller
- func (c *Controller) Apply(ctx context.Context, desired *api.Registry) (*api.Registry, error)
- func (c *Controller) Delete(ctx context.Context, name string) error
- func (c *Controller) Get(ctx context.Context, name string) (*api.Registry, error)
- func (c *Controller) List(ctx context.Context, options ListOptions) (*api.RegistryList, error)
- type ListOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillDefaults ¶
func ListTypeMeta ¶
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 ¶
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) List ¶
func (c *Controller) List(ctx context.Context, options ListOptions) (*api.RegistryList, error)
type ListOptions ¶
type ListOptions struct {
FieldSelector string
}
Click to show internal directories.
Click to hide internal directories.