Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Create(ctx context.Context, sc *v1.StorageClass) error
- func (c *Client) Delete(ctx context.Context, name string) error
- func (c *Client) DuplicateStorageClass(name string, sourceSc *v1.StorageClass) *v1.StorageClass
- func (c *Client) Get(ctx context.Context, name string) *StorageClass
- func (c *Client) MakeStorageClass(name string, provisioner string) *v1.StorageClass
- type StorageClass
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) 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
Click to show internal directories.
Click to hide internal directories.