Documentation
¶
Overview ¶
Package image hosts the `kuke image` parent command and its subcommands: `load` (#200), `get` (#211), and `delete` (#212).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeleteCmd ¶
NewDeleteCmd builds the `kuke image delete` subcommand. The positional ref is required; not-found is surfaced with a friendly message that still unwraps to errdefs.ErrImageNotFound for callers using errors.Is.
func NewGetCmd ¶
NewGetCmd builds the `kuke image get` subcommand. With no positional, it lists every image in the realm; with a positional ref, it describes that one image. The output format follows the rest of `kuke get …`: yaml/json for single resources, table/yaml/json for lists.
func NewImageCmd ¶
NewImageCmd builds the `kuke image` parent command and registers its subcommands. Persistent flags on the root kuke command are inherited automatically.
func NewLoadCmd ¶
NewLoadCmd builds the `kuke image load` subcommand. Either a positional tarball path or `--from-docker <ref>` is required; passing both is a usage error.
Types ¶
type MockControllerKey ¶
type MockControllerKey struct{}
MockControllerKey is used to inject a mock kukeonv1.Client via context in tests.