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) 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.
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.
Click to show internal directories.
Click to hide internal directories.