driver

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdentityServiceRole   = "identity"   // Enable identity service role.
	NodeServiceRole       = "node"       // Enable node service role.
	ControllerServiceRole = "controller" // Enable controller service role.
)
View Source
const (
	// EOSxd-CSI driver name.
	DefaultName = "eosxd.csi.cern.ch"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	*Opts
}

Driver holds EOSxd-CSI driver runtime state.

func New

func New(opts *Opts) (*Driver, error)

New creates a new instance of Driver.

func (*Driver) Run

func (d *Driver) Run() error

Run starts CSI services and blocks.

type Opts

type Opts struct {
	// DriverName is the name of this CSI driver that's then
	// advertised via NodeGetPluginInfo RPC.
	DriverName string

	// CSIEndpoint is URL path to the UNIX socket where the driver
	// will serve requests.
	CSIEndpoint string

	// NodeID is unique identifier of the node on which this
	// EOSxd CSI node plugin pod is running.
	NodeID string

	// Role under which will the driver operate.
	Roles map[ServiceRole]bool

	// How many seconds to wait for automount daemon to start up.
	// Zero means no timeout.
	AutomountDaemonStartupTimeoutSeconds int
}

Opts holds init-time driver configuration.

type ServiceRole

type ServiceRole string

Service role name.

Jump to

Keyboard shortcuts

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