config

package
v17.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: Apache-2.0 Imports: 3 Imported by: 392

Documentation

Index

Constants

View Source
const (
	/* Misc. orchestrator constants */
	OrchestratorName = "trident"

	OrchestratorAPIVersion = "1"
	PersistentStoreTimeout = 60 * time.Second
	MaxBootstrapAttempts   = 10

	/* Protocol constants */
	File                Protocol = "file"
	Block               Protocol = "block"
	ProtocolAny         Protocol = ""
	ProtocolUnsupported Protocol = "unsupported"

	/* Access mode constants */
	ReadWriteOnce AccessMode = "ReadWriteOnce"
	ReadOnlyMany  AccessMode = "ReadOnlyMany"
	ReadWriteMany AccessMode = "ReadWriteMany"
	ModeAny       AccessMode = ""

	/* Volume type constants */
	ONTAP_NFS         VolumeType = "ONTAP_NFS"
	ONTAP_iSCSI       VolumeType = "ONTAP_iSCSI"
	SolidFire_iSCSI   VolumeType = "SolidFire_iSCSI"
	Eseries_iSCSI     VolumeType = "Eseries_iSCSI"
	UnknownVolumeType VolumeType = ""

	/* Driver-related constants */
	DefaultOntapIgroup      = OrchestratorName
	DefaultSolidFireVAG     = OrchestratorName
	DefaultEseriesHostGroup = OrchestratorName
	UnknownDriver           = "UnknownDriver"

	/* REST frontend constants */
	MaxRESTRequestSize = 10240

	/* Kubernetes deployment constants */
	ContainerTrident = "trident-main"
	ContainerEtcd    = "etcd"
)

Variables

View Source
var (

	// BuildHash is the git hash the binary was built from
	BuildHash = "unknown"

	// BuildType is the type of build: custom, beta or stable
	BuildType = "custom"

	// BuildTypeRev is the revision of the build
	BuildTypeRev = "0"

	// BuildTime is the time the binary was built
	BuildTime = "unknown"

	OrchestratorVersion = utils.MustParseDate(version())

	/* API Server and persistent store variables */
	BaseURL         = "/" + OrchestratorName + "/v" + OrchestratorAPIVersion
	VersionURL      = "/" + OrchestratorName + "/v" + OrchestratorAPIVersion + "/version"
	BackendURL      = "/" + OrchestratorName + "/v" + OrchestratorAPIVersion + "/backend"
	VolumeURL       = "/" + OrchestratorName + "/v" + OrchestratorAPIVersion + "/volume"
	TransactionURL  = "/" + OrchestratorName + "/v" + OrchestratorAPIVersion + "/txn"
	StorageClassURL = "/" + OrchestratorName + "/v" + OrchestratorAPIVersion + "/storageclass"
)

Functions

func GetValidProtocolNames

func GetValidProtocolNames() []string

func IsValidProtocol

func IsValidProtocol(p Protocol) bool

Types

type AccessMode

type AccessMode string

type Protocol

type Protocol string

type VolumeType

type VolumeType string

Jump to

Keyboard shortcuts

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