Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CStorPool ¶
func New ¶
func New(opts ...buildPredicate) *CStorPool
New is a constructor returns a new instance of cstorpool
type CStorPoolList ¶
type CStorPoolList struct { CStorPoolList *apis.CStorPoolList FilteredCStorPoolList *apis.CStorPoolList // contains filtered or unexported fields }
type CstorpoolInterface ¶
type CstorpoolInterface interface { Get(name string) (*CStorPool, error) List(opts v1.ListOptions) (*CStorPoolList, error) Create(*apis.CStorPool) (*CStorPool, error) }
cstorpoolInterface abstracts operations on cstorpool entity. Different orchestrators may need to implement this interface.
type KubernetesClient ¶
type KubernetesClient struct { // kubeclientset is a standard kubernetes clientset Kubeclientset kubernetes.Interface // clientset is a openebs custom resource package generated for custom API group. Clientset clientset.Interface }
KubernetesClient is the kubernetes client which will implement cstorpool actions/behaviours.
func (*KubernetesClient) Create ¶
func (k *KubernetesClient) Create(diskObj *apis.CStorPool) (*CStorPool, error)
Create is kubernetes client implementation to create disk.
func (*KubernetesClient) Get ¶
func (k *KubernetesClient) Get(name string) (*CStorPool, error)
Get is Kubernetes client implementation to get disk.
func (*KubernetesClient) List ¶
func (k *KubernetesClient) List(opts v1.ListOptions) (*CStorPoolList, error)
List is kubernetes client implementation to list disk.
Click to show internal directories.
Click to hide internal directories.