options

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitFlags

func InitFlags()

InitFlags must be called after adding all cli options flags are defined and before flags are accessed by the program. Ths fuction adds flag.CommandLine (the default set of command-line flags, parsed from os.Args) and then calls pflag.Parse().

Types

type CRIContainerdOptions

type CRIContainerdOptions struct {
	// SocketPath is the path to the socket which cri-containerd serves on.
	SocketPath string
	// RootDir is the root directory path for managing cri-containerd files
	// (metadata checkpoint etc.)
	RootDir string
	// PrintVersion indicates to print version information of cri-containerd.
	PrintVersion bool
	// ContainerdEndpoint is the containerd endpoint path.
	ContainerdEndpoint string
	// ContainerdConnectionTimeout is the connection timeout for containerd client.
	ContainerdConnectionTimeout time.Duration
	// NetworkPluginBinDir is the directory in which the binaries for the plugin is kept.
	NetworkPluginBinDir string
	// NetworkPluginConfDir is the directory in which the admin places a CNI conf.
	NetworkPluginConfDir string
}

CRIContainerdOptions contains cri-containerd command line options.

func NewCRIContainerdOptions

func NewCRIContainerdOptions() *CRIContainerdOptions

NewCRIContainerdOptions returns a reference to CRIContainerdOptions

func (*CRIContainerdOptions) AddFlags

func (c *CRIContainerdOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds cri-containerd command line options to pflag.

Jump to

Keyboard shortcuts

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