options

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerOption

type DockerOption struct {
	Endpoint string   `json:"endpoint" mapstructure:"endpoint"`
	Registry Registry `json:"registry" mapstructure:"registry"`
}

DockerOption defines options for docker cluster.

func NewDockerOption

func NewDockerOption() *DockerOption

NewDockerOption create a `zero` value instance.

func (*DockerOption) AddFlags

func (o *DockerOption) AddFlags(fs *pflag.FlagSet)

AddFlags bind command flag.

func (*DockerOption) String

func (o *DockerOption) String() string

String to json string.

func (*DockerOption) Validate

func (o *DockerOption) Validate() []error

Validate validate option value.

type K8sOption

type K8sOption struct {
	Kubeconfig string   `json:"kubeconfig" mapstructure:"kubeconfig"`
	Namespace  string   `json:"namespace"  mapstructure:"namespace"`
	DNS        []string `json:"dns"        mapstructure:"dns"`
}

K8sOption defines options for kubernates cluster.

func NewK8sOption

func NewK8sOption() *K8sOption

NewK8sOption create a `zero` value instance.

func (*K8sOption) AddFlags

func (o *K8sOption) AddFlags(fs *pflag.FlagSet)

AddFlags bind command flag.

func (*K8sOption) String

func (o *K8sOption) String() string

String to json string.

func (*K8sOption) Validate

func (o *K8sOption) Validate() []error

Validate validate option value.

type Registry

type Registry struct {
	Username      string `json:"username"       mapstructure:"username"`
	Password      string `json:"password"       mapstructure:"password"`
	Email         string `json:"email"          mapstructure:"email"`
	Serveraddress string `json:"server-address" mapstructure:"server-address"`
	Project       string `json:"project"        mapstructure:"project"`
}

Registry defines options for docker registry.

Jump to

Keyboard shortcuts

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