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 ¶
Types ¶
type AccessMode ¶
type AccessMode string
type VolumeType ¶
type VolumeType string
Click to show internal directories.
Click to hide internal directories.