Documentation
¶
Index ¶
- Constants
- func GetVolumeSnapshotClassYAML(name string) string
- type ANF
- func (a *ANF) Create() ([]string, error)
- func (a *ANF) CreateSnapshotClass() error
- func (a *ANF) CreateStorageClass() error
- func (a *ANF) DeleteBackend(map[string]interface{}) error
- func (a *ANF) DeleteSnapshotClass() error
- func (a *ANF) DeleteStorageClass(map[string]interface{}) error
- func (a *ANF) GetCloudProvider() string
- func (a *ANF) Validate() error
- type ANFConfig
- type ANFStorageClass
- type ANFStorageClassMap
- type ANFVPool
- type ANFVPoolMap
- type AWS
- func (aws *AWS) Create() ([]string, error)
- func (aws *AWS) CreateSnapshotClass() error
- func (aws *AWS) CreateStorageClass() error
- func (aws *AWS) DeleteBackend(request map[string]interface{}) error
- func (aws *AWS) DeleteSnapshotClass() error
- func (aws *AWS) DeleteStorageClass(request map[string]interface{}) error
- func (aws *AWS) GetCloudProvider() string
- func (aws *AWS) Validate() error
- type AwsConfig
- type Backend
- type SVM
Constants ¶
const ( ANFStorageClassHardwareStandard = "netapp-anf-perf-standard" ANFStorageClassHardwarePremium = "netapp-anf-perf-premium" ANFStorageClassHardwareUltra = "netapp-anf-perf-ultra" ANFStorageClassHardwareStandardSMB = "netapp-anf-perf-standard-smb" ANFStorageClassHardwarePremiumSMB = "netapp-anf-perf-premium-smb" ANFStorageClassHardwareUltraSMB = "netapp-anf-perf-ultra-smb" NetAppSnapshotClassName = "netapp-snapshot-class" MaxNumberOfANFServiceLevels = 3 MaxNumberOfANFStorageClasses = 6 )
const ( SvmStateCreated = "CREATED" AWSRegion = "AWS_REGION" TridentSecretPattern = "trident-%s" SvmNamePattern = "trident-%s" StorageClassNamePattern = "trident-%s-%s" BackendNamePattern = "trident-%s-%s" VsAdmin = "vsadmin" Description = "Trident secret for FsxN for ONTAP" // Tags for the secret FileSystemId = "file-system-id" )
const ANFTBCYaml = `` /* 583-byte string literal not displayed */
const ANFVPoolYAML = `` /* 147-byte string literal not displayed */
const FsxnTBCYaml = `` /* 322-byte string literal not displayed */
FsxnTBCYaml is a template for the FsxN san driver Trident backend config YAML
Variables ¶
This section is empty.
Functions ¶
func GetVolumeSnapshotClassYAML ¶
GetVolumeSnapshotClassYAML returns the VolumeSnapshotClass YAML
Types ¶
type ANF ¶
type ANF struct { ANFConfig AZClient api.Azure ConfClient confClients.ConfiguratorClientInterface FilteredCapacityPoolMap map[string]*api.CapacityPool FilteredSubnetMap map[string]*api.Subnet AvailabilityZones []string AMIEnabled bool WorkloadIdentityEnabled bool TBCNamePrefix string TridentNamespace string }
func NewANFInstance ¶
func NewANFInstance( torcCR *operatorV1.TridentOrchestrator, configuratorCR *operatorV1.TridentConfigurator, client confClients.ConfiguratorClientInterface, ) (*ANF, error)
func (*ANF) CreateSnapshotClass ¶
func (*ANF) CreateStorageClass ¶
func (*ANF) DeleteBackend ¶
func (*ANF) DeleteSnapshotClass ¶
func (*ANF) DeleteStorageClass ¶
func (*ANF) GetCloudProvider ¶
type ANFConfig ¶
type ANFConfig struct { // Access related SubscriptionID string `json:"subscriptionID"` TenantID string `json:"tenantID"` Location string `json:"location"` ClientID string `json:"clientID"` ClientSecret string `json:"clientSecret"` ClientCredentials string `json:"clientCredentials"` // Client credential secret name. // Filters CapacityPools []string `json:"capacityPools"` NetappAccounts []string `json:"netappAccounts"` ResourceGroups []string `json:"resourceGroups"` VirtualNetwork string `json:"virtualNetwork"` Subnet string `json:"subnet"` // Encryption: Map of NetApp accounts and customer keys. CustomerEncryptionKeys map[string]string `json:"customerEncryptionKeys"` }
type ANFStorageClass ¶
type ANFStorageClassMap ¶
type ANFStorageClassMap struct {
SCMap map[string]ANFStorageClass
}
func NewANFStorageClassMap ¶
func NewANFStorageClassMap() *ANFStorageClassMap
func (*ANFStorageClassMap) Add ¶
func (asm *ANFStorageClassMap) Add(name, serviceLevel, nasType string)
type ANFVPool ¶
func NewANFVPool ¶
type ANFVPoolMap ¶
func NewANFVPoolMap ¶
func NewANFVPoolMap(addPools bool) *ANFVPoolMap
func (*ANFVPoolMap) Add ¶
func (avm *ANFVPoolMap) Add(serviceLevel string) *ANFVPool
func (*ANFVPoolMap) GetYAMLs ¶
func (avm *ANFVPoolMap) GetYAMLs(nasType string) string
type AWS ¶
type AWS struct { AwsConfig ConfClient confClients.ConfiguratorClientInterface AwsClient *awsapi.Client ManagementLif string TBCNamePrefix string TridentNamespace string }
func NewFSxNInstance ¶
func NewFSxNInstance( torcCR *operatorV1.TridentOrchestrator, configuratorCR *operatorV1.TridentConfigurator, client confClients.ConfiguratorClientInterface, ) (*AWS, error)
NewFSxNInstance creates a new instance of the AWS struct and populates it with the provided CRs and client
func (*AWS) CreateSnapshotClass ¶
CreateSnapshotClass creates a snapshot class for the storage driver
func (*AWS) CreateStorageClass ¶
CreateStorageClass creates a storage class for the storage driver
func (*AWS) DeleteBackend ¶
DeleteBackend deletes the backend if the FSxN instance is deleted
func (*AWS) DeleteSnapshotClass ¶
DeleteSnapshotClass deletes the snapshot class if the FSxN instance is deleted
func (*AWS) DeleteStorageClass ¶
DeleteStorageClass deletes the storage class if the FSxN instance is deleted
func (*AWS) GetCloudProvider ¶
GetCloudProvider returns the cloud provider for the storage driver