providers

package
v0.0.0-...-32b3b89 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNfsServerExistence

func CheckNfsServerExistence(name, namespace string) bool

CheckNfsServerExistence checks if the NFS deployment and all companion service exists

func CheckPersistentVolumeClaimExistence

func CheckPersistentVolumeClaimExistence(name, namespace string) bool

CheckPersistentVolumeClaimExistence checks if the PVC already exists

func CheckStorageClassExistence

func CheckStorageClassExistence(name string) bool

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

type Metadata

type Metadata struct {
	// contains filtered or unexported fields
}

Metadata holds info about Azure

Jump to

Keyboard shortcuts

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