Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build() (*apis.LVMNode, error)
- func (b *Builder) WithName(name string) *Builder
- func (b *Builder) WithNamespace(namespace string) *Builder
- func (b *Builder) WithOwnerReferences(ownerRefs ...metav1.OwnerReference) *Builder
- func (b *Builder) WithVolumeGroups(vgs []apis.VolumeGroup) *Builder
- type Kubeclient
- func (k *Kubeclient) Create(node *apis.LVMNode) (*apis.LVMNode, error)
- func (k *Kubeclient) Delete(name string) error
- func (k *Kubeclient) Get(name string, opts metav1.GetOptions) (*apis.LVMNode, error)
- func (k *Kubeclient) GetRaw(name string, opts metav1.GetOptions) ([]byte, error)
- func (k *Kubeclient) List(opts metav1.ListOptions) (*apis.LVMNodeList, error)
- func (k *Kubeclient) Update(node *apis.LVMNode) (*apis.LVMNode, error)
- func (k *Kubeclient) WithNamespace(namespace string) *Kubeclient
- type KubeclientBuildOption
- type LVMNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is the builder object for LVMNode
func (*Builder) WithNamespace ¶
WithNamespace sets the namespace of LVMNode
func (*Builder) WithOwnerReferences ¶
func (b *Builder) WithOwnerReferences(ownerRefs ...metav1.OwnerReference) *Builder
WithOwnerReferences sets the owner references of LVMNode
func (*Builder) WithVolumeGroups ¶
func (b *Builder) WithVolumeGroups(vgs []apis.VolumeGroup) *Builder
WithVolumeGroups sets the volume groups of LVMNode
type Kubeclient ¶
type Kubeclient struct {
// contains filtered or unexported fields
}
Kubeclient enables kubernetes API operations on lvm node instance
func NewKubeclient ¶
func NewKubeclient(opts ...KubeclientBuildOption) *Kubeclient
NewKubeclient returns a new instance of kubeclient meant for lvm node operations
func (*Kubeclient) Delete ¶
func (k *Kubeclient) Delete(name string) error
Delete deletes the lvm node from kubernetes
func (*Kubeclient) Get ¶
func (k *Kubeclient) Get( name string, opts metav1.GetOptions, ) (*apis.LVMNode, error)
Get returns lvm node object for given name
func (*Kubeclient) GetRaw ¶
func (k *Kubeclient) GetRaw( name string, opts metav1.GetOptions, ) ([]byte, error)
GetRaw returns lvm node instance in bytes
func (*Kubeclient) List ¶
func (k *Kubeclient) List(opts metav1.ListOptions) (*apis.LVMNodeList, error)
List returns a list of lvm node instances present in kubernetes cluster
func (*Kubeclient) WithNamespace ¶
func (k *Kubeclient) WithNamespace(namespace string) *Kubeclient
WithNamespace sets the provided namespace against this Kubeclient 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 client against the kubeclient instance
func WithKubeConfigPath ¶
func WithKubeConfigPath(path string) KubeclientBuildOption
WithKubeConfigPath sets the kubernetes client against the provided path
func WithNamespace ¶
func WithNamespace(namespace string) KubeclientBuildOption
WithNamespace sets the kubernetes client against the provided namespace