registry

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdRegistry

func NewCmdRegistry(streams options.IOStreams) *cobra.Command

func NewCmdRegistryClean

func NewCmdRegistryClean(o *RegistryOptions) *cobra.Command

func NewCmdRegistryDelete

func NewCmdRegistryDelete(o *RegistryOptions) *cobra.Command

func NewCmdRegistryDeploy

func NewCmdRegistryDeploy(o *RegistryOptions) *cobra.Command

func NewCmdRegistryList

func NewCmdRegistryList(o *RegistryOptions) *cobra.Command

func NewCmdRegistryPush

func NewCmdRegistryPush(o *RegistryOptions) *cobra.Command

Types

type Configuration added in v1.4.0

type Configuration struct {
	// Version is the version which defines the format of the rest of the configuration
	Version string `yaml:"version"`

	// Storage is the configuration for the registry's storage driver
	Storage struct {
		Filesystem struct {
			Rootdirectory string `yaml:"rootdirectory"`
		} `yaml:"filesystem"`
	} `yaml:"storage"`
}

type Image

type Image struct {
	Name string   `json:"name" yaml:"name"`
	Tags []string `json:"tags" yaml:"tags"`
}

func (*Image) JSONPrint

func (i *Image) JSONPrint() ([]byte, error)

func (*Image) TablePrint

func (i *Image) TablePrint() ([]string, [][]string)

func (*Image) YAMLPrint

func (i *Image) YAMLPrint() ([]byte, error)

type RegistryOptions

type RegistryOptions struct {
	options.IOStreams
	PrintFlags *printer.PrintFlags
	SSHConfig  *sshutils.SSH

	Node string
	Pkg  string

	DataRoot     string
	RegistryPort int

	Type   string
	Name   string
	Tag    string
	Number int
}

func NewRegistryOptions

func NewRegistryOptions(streams options.IOStreams) *RegistryOptions

func (*RegistryOptions) Delete

func (o *RegistryOptions) Delete() error

func (*RegistryOptions) GetKcRegistryConfigTemplateContent added in v1.4.0

func (o *RegistryOptions) GetKcRegistryConfigTemplateContent() (string, error)

func (*RegistryOptions) Install

func (o *RegistryOptions) Install() error

func (*RegistryOptions) List

func (o *RegistryOptions) List() error

func (*RegistryOptions) Push

func (o *RegistryOptions) Push() error

func (*RegistryOptions) Uninstall

func (o *RegistryOptions) Uninstall() error

func (*RegistryOptions) ValidateArgs

func (o *RegistryOptions) ValidateArgs() error

func (*RegistryOptions) ValidateArgsDelete

func (o *RegistryOptions) ValidateArgsDelete(cmd *cobra.Command) error

func (*RegistryOptions) ValidateArgsDeploy

func (o *RegistryOptions) ValidateArgsDeploy() error

func (*RegistryOptions) ValidateArgsList

func (o *RegistryOptions) ValidateArgsList() error

func (*RegistryOptions) ValidateArgsPush

func (o *RegistryOptions) ValidateArgsPush() error

type Repositories

type Repositories struct {
	Repositories []string `json:"repositories" yaml:"repositories"`
}

func (*Repositories) JSONPrint

func (i *Repositories) JSONPrint() ([]byte, error)

func (*Repositories) TablePrint

func (i *Repositories) TablePrint() ([]string, [][]string)

func (*Repositories) YAMLPrint

func (i *Repositories) YAMLPrint() ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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