Documentation ¶
Index ¶
- func CheckNfsServerExistence(name, namespace string) bool
- func CheckPersistentVolumeClaimExistence(name, namespace string) bool
- func CheckStorageClassExistence(name string) bool
- func SetUpNfsProvisioner(pv *v1.PersistentVolumeClaim) error
- type AwsProvider
- type AzureProvider
- type CommonProvider
- type GoogleProvider
- func (gke *GoogleProvider) CheckBucketExistence(app *v1alpha1.ObjectStore) (bool, error)
- func (gke *GoogleProvider) CreateObjectStoreBucket(app *v1alpha1.ObjectStore) error
- func (gke *GoogleProvider) CreateStorageClass(pvc *v1.PersistentVolumeClaim) error
- func (gke *GoogleProvider) GenerateMetadata() error
- type Metadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNfsServerExistence ¶
CheckNfsServerExistence checks if the NFS deployment and all companion service exists
func CheckPersistentVolumeClaimExistence ¶
CheckPersistentVolumeClaimExistence checks if the PVC already exists
func CheckStorageClassExistence ¶
CheckStorageClassExistence checks if the storage class already exists
func SetUpNfsProvisioner ¶
func SetUpNfsProvisioner(pv *v1.PersistentVolumeClaim) error
SetUpNfsProvisioner sets up a deployment a pvc and a service to handle nfs workload
Types ¶
type AwsProvider ¶
type AwsProvider struct { }
AwsProvider holds info about Aws provider and allows us to implement the common interface
func (*AwsProvider) CheckBucketExistence ¶
func (aws *AwsProvider) CheckBucketExistence(store *v1alpha1.ObjectStore) (bool, error)
CheckBucketExistence checks if the bucket already exists
func (*AwsProvider) CreateObjectStoreBucket ¶
func (aws *AwsProvider) CreateObjectStoreBucket(store *v1alpha1.ObjectStore) error
CreateObjectStoreBucket creates a bucket in a cloud specific object store
func (*AwsProvider) CreateStorageClass ¶
func (aws *AwsProvider) CreateStorageClass(pvc *v1.PersistentVolumeClaim) error
CreateStorageClass creates a StorageClass based on specs described on PVC
func (*AwsProvider) GenerateMetadata ¶
func (aws *AwsProvider) GenerateMetadata() error
GenerateMetadata generates metadata which are needed to create a StorageClass
type AzureProvider ¶
type AzureProvider struct {
// contains filtered or unexported fields
}
AzureProvider holds info about Azure provider and allows us to implement the common interface
func (*AzureProvider) CheckBucketExistence ¶
func (az *AzureProvider) CheckBucketExistence(bucket *v1alpha1.ObjectStore) (bool, error)
CheckBucketExistence checks if the bucket already exists
func (*AzureProvider) CreateObjectStoreBucket ¶
func (az *AzureProvider) CreateObjectStoreBucket(*v1alpha1.ObjectStore) error
CreateObjectStoreBucket creates a bucket in a cloud specific object store
func (*AzureProvider) CreateStorageClass ¶
func (az *AzureProvider) CreateStorageClass(pvc *v1.PersistentVolumeClaim) error
CreateStorageClass creates a StorageClass based on specs described on PVC
func (*AzureProvider) GenerateMetadata ¶
func (az *AzureProvider) GenerateMetadata() error
GenerateMetadata generates metadata which are needed to create a StorageClass
type CommonProvider ¶
type CommonProvider interface { CreateStorageClass(*v1.PersistentVolumeClaim) error GenerateMetadata() error CreateObjectStoreBucket(*v1alpha1.ObjectStore) error CheckBucketExistence(*v1alpha1.ObjectStore) (bool, error) // contains filtered or unexported methods }
CommonProvider bonds together the required methods
func DetermineProvider ¶
func DetermineProvider() (CommonProvider, error)
DetermineProvider determines the cloud provider type based on metadata server
type GoogleProvider ¶
type GoogleProvider struct {
// contains filtered or unexported fields
}
GoogleProvider holds info about Google provider and allows us to implement the common interface
func (*GoogleProvider) CheckBucketExistence ¶
func (gke *GoogleProvider) CheckBucketExistence(app *v1alpha1.ObjectStore) (bool, error)
CheckBucketExistence checks if the bucket already exists
func (*GoogleProvider) CreateObjectStoreBucket ¶
func (gke *GoogleProvider) CreateObjectStoreBucket(app *v1alpha1.ObjectStore) error
CreateObjectStoreBucket creates a bucket in a cloud specific object store
func (*GoogleProvider) CreateStorageClass ¶
func (gke *GoogleProvider) CreateStorageClass(pvc *v1.PersistentVolumeClaim) error
CreateStorageClass creates a StorageClass based on specs described on PVC
func (*GoogleProvider) GenerateMetadata ¶
func (gke *GoogleProvider) GenerateMetadata() error
GenerateMetadata generates metadata which are needed to create a StorageClass