Documentation ¶
Index ¶
- Constants
- func FillDefaults(registry *api.Registry)
- func ListTypeMeta() api.TypeMeta
- func TypeMeta() api.TypeMeta
- 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 ¶
View Source
const DefaultRegistryImageRef = "docker.io/library/registry:2" // The registry everyone uses.
Variables ¶
This section is empty.
Functions ¶
func FillDefaults ¶
func ListTypeMeta ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func DefaultController ¶
func DefaultController(iostreams genericclioptions.IOStreams) (*Controller, error)
func NewController ¶
func NewController(iostreams genericclioptions.IOStreams, dockerCLI dctr.CLI) *Controller
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.