Help us shape the future of Go! Take the 2026 Go Developer Survey

mirror

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	ToDir   string `optional:"" help:"Specify the path to the local directory where images will be exported as .tgz files." short:"t"`
	To      string `optional:"" help:"Specify the destination registry." short:"d"`
	Version string `required:"" help:"Specify the specific Spaces version for which you want to mirror the images." short:"v"`
}

func (*Cmd) Run

func (c *Cmd) Run(ctx context.Context, printer upterm.ObjectPrinter) (rErr error)

Run executes the mirror command.

type ImageReference

type ImageReference struct {
	Image                  string `yaml:"image"`
	CompatibleChartVersion string `yaml:"compatibleChartVersion,omitempty"`
}

type KubeVersionPath added in v0.33.0

type KubeVersionPath struct {
	ControlPlanes struct {
		K8sVersion StringOrArray `json:"k8sVersion"`
	} `json:"controlPlanes"`
}

func (*KubeVersionPath) GetSupportedVersions added in v0.33.0

func (k *KubeVersionPath) GetSupportedVersions() ([]string, error)

type Printer

type Printer interface {
	Success(msg ...interface{})
	Fail(msg ...interface{})
	UpdateText(text string)
}

Printer is an interface for printing through a spinner.

type Repository

type Repository struct {
	Chart        string           `yaml:"chart"`
	Images       []ImageReference `yaml:"images"`
	SubResources []SubResource    `yaml:"subResources"`
}

type Spinner

type Spinner interface {
	Start(text ...interface{}) (Printer, error)
}

Spinner is an interface for creating Printers.

var DefaultSpinner Spinner = noopSpinner{}

DefaultSpinner is the default spinner used by all the other subpackages, by default it's just a no-op.

type StringOrArray added in v0.33.0

type StringOrArray []string

func (*StringOrArray) UnmarshalJSON added in v0.33.0

func (s *StringOrArray) UnmarshalJSON(data []byte) error

type SubResource added in v0.33.0

type SubResource struct {
	PathNavigator     oci.PathNavigator `yaml:"pathNavigator,omitempty"`
	PathNavigatorType string            `yaml:"pathNavigatorType"`
	Chart             string            `yaml:"chart,omitempty"`
	Image             string            `yaml:"image,omitempty"`
}

type UXPVersionsPath

type UXPVersionsPath struct {
	Controller struct {
		Crossplane struct {
			SupportedVersions []string `json:"supportedVersions"`
		} `json:"crossplane"`
	} `json:"controller"`
}

func (*UXPVersionsPath) GetSupportedVersions

func (j *UXPVersionsPath) GetSupportedVersions() ([]string, error)

Jump to

Keyboard shortcuts

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