Documentation ¶
Index ¶
- Constants
- func DoDev(devOptions *Options, flags *pflag.FlagSet, f cmdutil.Factory) error
- func GetClient() (*client.Client, *command.DockerCli, 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) (map[string][]mount.Mount, error)
- func PullImage(ctx context.Context, platform *v12.Platform, cli *client.Client, ...) error
- func TransferImage(ctx context.Context, conf *util.SshConfig) 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 GetVolume ¶
func GetVolume(ctx context.Context, f util.Factory, ns, pod string) (map[string][]mount.Mount, error)
GetVolume key format: [container name]-[volume mount name]
Types ¶
type ConfigList ¶ added in v1.1.32
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 ¶ added in v1.1.29
type ConnectMode string
const ( ConnectModeContainer ConnectMode = "container" ConnectModeHost ConnectMode = "host" )
type ContainerOptions ¶ added in v1.1.32
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 ¶ added in v1.1.32
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 }
type RunConfig ¶
type RunConfig struct { Options RunOptions Copts *ContainerOptions // contains filtered or unexported fields }
type RunOptions ¶ added in v1.1.32
type RunOptions struct { Detach bool // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.