Documentation ¶
Index ¶
- type Kubeclient
- func (k *Kubeclient) Create(obj *apis.StoragePool) (*apis.StoragePool, error)
- func (k *Kubeclient) Delete(name string, opts *metav1.DeleteOptions) error
- func (k *Kubeclient) Get(name string, opts metav1.GetOptions) (*apis.StoragePool, error)
- func (k *Kubeclient) List(opts metav1.ListOptions) (*apis.StoragePoolList, error)
- func (k *Kubeclient) Patch(name string, pt types.PatchType, patchObj []byte) (*apis.StoragePool, error)
- type KubeclientBuildOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kubeclient ¶
type Kubeclient struct {
// contains filtered or unexported fields
}
Kubeclient enables kubernetes API operations on StoragePool instance
func NewKubeClient ¶
func NewKubeClient(opts ...KubeclientBuildOption) *Kubeclient
NewKubeClient returns a new instance of kubeclient meant for StoragePool related operations
func (*Kubeclient) Create ¶
func (k *Kubeclient) Create(obj *apis.StoragePool) (*apis.StoragePool, error)
Create creates an StoragePool instance in kubernetes cluster
func (*Kubeclient) Delete ¶
func (k *Kubeclient) Delete(name string, opts *metav1.DeleteOptions) error
Delete deletes StoragePool instance
func (*Kubeclient) Get ¶
func (k *Kubeclient) Get(name string, opts metav1.GetOptions) (*apis.StoragePool, error)
Get returns an StoragePool instance from kubernetes cluster
func (*Kubeclient) List ¶
func (k *Kubeclient) List(opts metav1.ListOptions) (*apis.StoragePoolList, error)
List returns a list of StoragePool instances present in kubernetes cluster
func (*Kubeclient) Patch ¶
func (k *Kubeclient) Patch(name string, pt types.PatchType, patchObj []byte) (*apis.StoragePool, error)
Patch returns the patched StoragePool instance
type KubeclientBuildOption ¶
type KubeclientBuildOption func(*Kubeclient)
KubeclientBuildOption defines the abstraction to build a Kubeclient instance
func WithClientset ¶
func WithClientset(c *clientset.Clientset) KubeclientBuildOption
WithClientset sets the kubernetes clientset against the kubeclient instance
Click to show internal directories.
Click to hide internal directories.