package options
import "github.com/containerd/cri/cmd/cri-containerd/options"
Index ¶
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.
Source Files ¶
- Version
- v0.1.0-alpha.1
- Published
- Jun 22, 2017
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 4 hours ago –
Tools for package owners.