Documentation
¶
Index ¶
- Constants
- func ConvertHost(kubeconfigPath string) (newPath string, err error)
- func DoDev(ctx context.Context, devOption *Options, conf *util.SshConfig, ...) error
- func GetDNS(ctx context.Context, f util.Factory, ns, pod string) (*miekgdns.ClientConfig, error)
- func GetVolume(ctx context.Context, f util.Factory, ns, pod string, d *Options) (map[string][]mount.Mount, error)
- type ConfigList
- type ConnectMode
- type ContainerOptions
- type Options
- type RunConfig
- type RunOptions
Constants ¶
View Source
const ( PullImageAlways = "always" PullImageMissing = "missing" // Default (matches previous behavior) PullImageNever = "never" )
Pull constants
Variables ¶
This section is empty.
Functions ¶
func ConvertHost ¶
Types ¶
type ConfigList ¶
type ConfigList []*RunConfig
func ConvertKubeResourceToContainer ¶
func ConvertKubeResourceToContainer(namespace string, temp v1.PodTemplateSpec, envMap map[string][]string, mountVolume map[string][]mount.Mount, dnsConfig *miekgdns.ClientConfig) (runConfigList ConfigList)
type ConnectMode ¶
type ConnectMode string
const ( ConnectModeContainer ConnectMode = "container" ConnectModeHost ConnectMode = "host" )
type ContainerOptions ¶
type ContainerOptions struct { Image string Args []string // contains filtered or unexported fields }
ContainerOptions is a data object with all the options for creating a container
func AddFlags ¶
func AddFlags(flags *pflag.FlagSet) *ContainerOptions
AddFlags adds all command line flags that will be used by parse to the FlagSet
type Options ¶
type Options struct { Headers map[string]string Namespace string Workload string Factory cmdutil.Factory ContainerName string NoProxy bool ExtraCIDR []string ExtraDomain []string ConnectMode ConnectMode Engine config.Engine // docker options DockerImage string Options RunOptions Copts *ContainerOptions // inner Cli *client.Client DockerCli *command.DockerCli // contains filtered or unexported fields }
func (*Options) AddRollbackFunc ¶
func (*Options) GetRollbackFuncList ¶
type RunConfig ¶
type RunConfig struct { Options RunOptions Copts *ContainerOptions // contains filtered or unexported fields }
type RunOptions ¶
type RunOptions struct { Detach bool // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.