replicationgroup

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Timeout is a timeout interval for RG actions
	Timeout = 1800 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Interface runtimeclient.Client
	ClientSet kubernetes.Interface
	Timeout   int
}

Client is a client for managing RGs

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, rg *replv1.DellCSIReplicationGroup) *RG

Delete deletes replication group

func (*Client) Get

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

Get returns a replication group object

type RG

type RG struct {
	Client  *Client
	Object  *replv1.DellCSIReplicationGroup
	Deleted bool
	// contains filtered or unexported fields
}

RG represents replication group

func (*RG) ExecuteAction

func (rg *RG) ExecuteAction(ctx context.Context, rgAction string) error

ExecuteAction executes replication group specific action

func (*RG) GetError

func (rg *RG) GetError() error

GetError retrieves the error on the RG.

func (*RG) HasError

func (rg *RG) HasError() bool

HasError checks to see if the given RG contains an error.

func (*RG) Name

func (rg *RG) Name() string

Name returns replication group name

Jump to

Keyboard shortcuts

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