image

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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

func NewDeleteCmd() *cobra.Command

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

func NewGetCmd() *cobra.Command

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

func NewImageCmd() *cobra.Command

NewImageCmd builds the `kuke image` parent command and registers its subcommands. Persistent flags on the root kuke command are inherited automatically.

func NewLoadCmd

func NewLoadCmd() *cobra.Command

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.

Jump to

Keyboard shortcuts

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