Documentation ¶
Index ¶
Constants ¶
View Source
const ( /* Misc. orchestrator constants */ OrchestratorName = "trident" OrchestratorClientName = OrchestratorName + "ctl" OrchestratorAPIVersion = "1" PersistentStoreBootstrapAttempts = 30 PersistentStoreBootstrapTimeout = PersistentStoreBootstrapAttempts * time.Second PersistentStoreTimeout = 10 * time.Second /* Protocol constants */ File Protocol = "file" Block Protocol = "block" ProtocolAny Protocol = "" /* Access mode constants */ ReadWriteOnce AccessMode = "ReadWriteOnce" ReadOnlyMany AccessMode = "ReadOnlyMany" ReadWriteMany AccessMode = "ReadWriteMany" ModeAny AccessMode = "" /* Volume type constants */ OntapNFS VolumeType = "ONTAP_NFS" OntapISCSI VolumeType = "ONTAP_iSCSI" SolidFireISCSI VolumeType = "SolidFire_iSCSI" ESeriesISCSI VolumeType = "Eseries_iSCSI" UnknownVolumeType VolumeType = "" /* Driver-related constants */ DefaultSolidFireVAG = OrchestratorName UnknownDriver = "UnknownDriver" StorageAPITimeoutSeconds = 90 SANResizeDelta = 50000000 // 50mb /* REST frontend constants */ MaxRESTRequestSize = 10240 /* Kubernetes deployment constants */ ContainerTrident = "trident-main" ContainerEtcd = "etcd" ContextDocker DriverContext = "docker" ContextKubernetes DriverContext = "kubernetes" ContextCSI DriverContext = "csi" // Minimum and maximum supported Kubernetes versions KubernetesVersionMin = "v1.8.0" KubernetesVersionMax = "v1.12.0" KubernetesCSIVersionMin = "v1.10.0" TridentNamespaceFile = "/var/run/secrets/kubernetes.io/serviceaccount/namespace" )
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" // BuildImage is the Trident image that was built BuildImage = "netapp/trident:" + orchestratorVersion + "-custom.0" // BuildEtcdVersion is the etcd version that Trident should be deployed with BuildEtcdVersion = "v3.3.9" // BuildEtcdImage is the etcd image that Trident should be deployed with BuildEtcdImage = "quay.io/coreos/etcd:" + BuildEtcdVersion 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" StoreURL = "/" + OrchestratorName + "/store" UsingPassthroughStore bool CurrentDriverContext DriverContext OrchestratorTelemetry = Telemetry{} )
Functions ¶
func GetValidProtocolNames ¶
func GetValidProtocolNames() []string
func IsValidProtocol ¶
func PlatformAtLeast ¶
Types ¶
type AccessMode ¶
type AccessMode string
type DriverContext ¶
type DriverContext string
type VolumeType ¶
type VolumeType string
Click to show internal directories.
Click to hide internal directories.