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"`
}
type ImageReference ¶
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 ¶
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 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)
Click to show internal directories.
Click to hide internal directories.