Documentation ¶
Index ¶
- type Client
- func (cl *Client) CreateJivaVolume(req *csi.CreateVolumeRequest) error
- func (cl *Client) DeleteJivaVolume(volumeID string) error
- func (cl *Client) GetJivaVolume(name string) (*jv.JivaVolume, error)
- func (cl *Client) ListJivaVolume(volumeID string) (*jv.JivaVolumeList, error)
- func (cl *Client) ListJivaVolumeWithOpts(opts map[string]string) (*jv.JivaVolumeList, error)
- func (cl *Client) RegisterAPI(opts manager.Options) error
- func (cl *Client) Set() error
- func (cl *Client) UpdateJivaVolume(cr *jv.JivaVolume) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the wrapper over the k8s client that will be used by jiva-csi to interface with etcd
func (*Client) CreateJivaVolume ¶
func (cl *Client) CreateJivaVolume(req *csi.CreateVolumeRequest) error
CreateJivaVolume check whether JivaVolume CR already exists and creates one if it doesn't exist.
func (*Client) DeleteJivaVolume ¶
DeleteJivaVolume delete the JivaVolume CR
func (*Client) GetJivaVolume ¶
func (cl *Client) GetJivaVolume(name string) (*jv.JivaVolume, error)
GetJivaVolume get the instance of JivaVolume CR.
func (*Client) ListJivaVolume ¶
func (cl *Client) ListJivaVolume(volumeID string) (*jv.JivaVolumeList, error)
ListJivaVolume returns the list of JivaVolume resources
func (*Client) ListJivaVolumeWithOpts ¶
ListJivaVolumeWithOpts returns the list of JivaVolume resources
func (*Client) RegisterAPI ¶
RegisterAPI registers the API scheme in the client using the manager. This function needs to be called only once a client object
func (*Client) UpdateJivaVolume ¶
func (cl *Client) UpdateJivaVolume(cr *jv.JivaVolume) error
UpdateJivaVolume update the JivaVolume CR
Click to show internal directories.
Click to hide internal directories.