options

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDriver                   = "nvidia"
	DefaultQueryPort                = 5678
	DefaultSamplePeriod             = 1
	DefaultVirtualManagerPath       = "/etc/gpu-manager/vm"
	DefaultAllocationCheckPeriod    = 30
	DefaultCheckpointPath           = "/etc/gpu-manager/checkpoint"
	DefaultContainerRuntimeEndpoint = "/var/run/dockershim.sock"
	DefaultCgroupDriver             = "cgroupfs"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Driver                   string
	ExtraPath                string
	VolumeConfigPath         string
	QueryPort                int
	QueryAddr                string
	KubeConfigFile           string
	SamplePeriod             int
	NodeLabels               string
	HostnameOverride         string
	VirtualManagerPath       string
	DevicePluginPath         string
	EnableShare              bool
	AllocationCheckPeriod    int
	CheckpointPath           string
	ContainerRuntimeEndpoint string
	CgroupDriver             string
	RequestTimeout           time.Duration
}

Options contains plugin information

func NewOptions

func NewOptions() *Options

NewOptions gives a default options template.

func (*Options) AddFlags

func (opt *Options) AddFlags(fs *pflag.FlagSet)

AddFlags add some commandline flags.

Jump to

Keyboard shortcuts

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