sc

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IsReplicationEnabled represents if replication is enabled
	IsReplicationEnabled = "replication.storage.dell.com/isReplicationEnabled"
	// RemoteClusterID represents remote cluster ID
	RemoteClusterID = "replication.storage.dell.com/remoteClusterID"
	// RemoteStorageClassName represents remote sc name
	RemoteStorageClassName = "replication.storage.dell.com/remoteStorageClassName"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// KubeClient *core.KubeClient
	Interface tcorev1.StorageClassInterface
	ClientSet kubernetes.Interface
	Timeout   int
}

Client conatins sc interface and kubeclient

func (*Client) Create

func (c *Client) Create(ctx context.Context, sc *v1.StorageClass) error

Create creates a new storage class

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, name string) error

Delete deletes a storage class

func (*Client) DuplicateStorageClass

func (c *Client) DuplicateStorageClass(name string, sourceSc *v1.StorageClass) *v1.StorageClass

DuplicateStorageClass creates a copy of storage class

func (*Client) Get

func (c *Client) Get(ctx context.Context, name string) *StorageClass

Get uses client interface to make API call for getting provided StorageClass

func (*Client) MakeStorageClass

func (c *Client) MakeStorageClass(name string, provisioner string) *v1.StorageClass

MakeStorageClass returns a storage class

type StorageClass

type StorageClass struct {
	Client  *Client
	Object  *v1.StorageClass
	Deleted bool
	// contains filtered or unexported fields
}

StorageClass conatins pvc client and claim

func (*StorageClass) GetError

func (sc *StorageClass) GetError() error

GetError returns storage class error

func (*StorageClass) HasError

func (sc *StorageClass) HasError() bool

HasError checks whether storage class has error

Jump to

Keyboard shortcuts

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