internal

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CrusoeAPIEndpointFlag = "crusoe-api-endpoint"
	CrusoeAccessKeyFlag   = "crusoe-csi-access-key"
	CrusoeSecretKeyFlag   = "crusoe-csi-secret-key" //nolint:gosec // false positive, this is a flag name
	CrusoeProjectIDFlag   = "crusoe-project-id"
	CSIDriverTypeFlag     = "crusoe-csi-driver-type"
	ServicesFlag          = "services"
	NodeNameFlag          = "node-name"
	SocketAddressFlag     = "socket-address"
)
View Source
const (
	CrusoeAPIEndpointDefault = "https://api.crusoecloud.com/v1alpha5"
	SocketAddressDefault     = "unix:/tmp/csi.sock"
)

Variables

View Source
var CSIDriverTypeNames = map[CSIDriverType][]string{
	CSIDriverTypeSSD: {"ssd"},
	CSIDriverTypeFS:  {"fs"},
}
View Source
var SelectedCSIDriverType = CSIDriverTypeSSD //nolint:gochecknoglobals // flag variable
View Source
var ServiceTypeNames = map[ServiceType][]string{
	ServiceTypeIdentity:   {"identity"},
	ServiceTypeController: {"controller"},
	ServiceTypeNode:       {"node"},
}
View Source
var Services = []ServiceType{ServiceTypeIdentity} //nolint:gochecknoglobals // flag variable

Functions

func RunMain added in v0.1.0

func RunMain(_ *cobra.Command, _ []string) error

Types

type CSIDriverType added in v0.1.0

type CSIDriverType enumflag.Flag
const (
	CSIDriverTypeSSD CSIDriverType = iota
	CSIDriverTypeFS
)

type ServiceType added in v0.1.0

type ServiceType enumflag.Flag
const (
	ServiceTypeIdentity ServiceType = iota
	ServiceTypeController
	ServiceTypeNode
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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