Documentation ¶
Index ¶
- func CVCKey(cvc *apis.CStorVolumeClaim) string
- type Builder
- func (b *Builder) Build() (*apis.CStorVolumeClaim, error)
- func (b *Builder) WithAnnotations(annotations map[string]string) *Builder
- func (b *Builder) WithAnnotationsNew(annotations map[string]string) *Builder
- func (b *Builder) WithCapacity(capacity string) *Builder
- func (b *Builder) WithCapacityQty(resCapacity resource.Quantity) *Builder
- func (b *Builder) WithFinalizers(finalizers []string) *Builder
- func (b *Builder) WithFinalizersNew(finalizers []string) *Builder
- func (b *Builder) WithGenerateName(name string) *Builder
- func (b *Builder) WithLabels(labels map[string]string) *Builder
- func (b *Builder) WithLabelsNew(labels map[string]string) *Builder
- func (b *Builder) WithName(name string) *Builder
- func (b *Builder) WithNamespace(namespace string) *Builder
- func (b *Builder) WithNodeID(nodeID string) *Builder
- func (b *Builder) WithReplicaCount(count string) *Builder
- func (b *Builder) WithStatusConditions(conditions []apis.CStorVolumeClaimCondition) *Builder
- func (b *Builder) WithStatusConditionsNew(conditions []apis.CStorVolumeClaimCondition) *Builder
- func (b *Builder) WithStatusPhase(phase apis.CStorVolumeClaimPhase) *Builder
- type CStorVolumeClaim
- type CStorVolumeClaimList
- type Kubeclient
- func (k *Kubeclient) Create(cvc *apis.CStorVolumeClaim) (*apis.CStorVolumeClaim, error)
- func (k *Kubeclient) Delete(name string) error
- func (k *Kubeclient) Get(name string, opts metav1.GetOptions) (*apis.CStorVolumeClaim, error)
- func (k *Kubeclient) GetRaw(name string, opts metav1.GetOptions) ([]byte, error)
- func (k *Kubeclient) List(opts metav1.ListOptions) (*apis.CStorVolumeClaimList, error)
- func (k *Kubeclient) Patch(oldCVC, newCVC *apis.CStorVolumeClaim, subresources ...string) (*apis.CStorVolumeClaim, error)
- func (k *Kubeclient) Update(cvc *apis.CStorVolumeClaim) (*apis.CStorVolumeClaim, error)
- func (k *Kubeclient) WithNamespace(namespace string) *Kubeclient
- type KubeclientBuildOption
- type ListBuilder
- type Predicate
- type PredicateList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CVCKey ¶
func CVCKey(cvc *apis.CStorVolumeClaim) string
CVCKey returns an unique key of a CVC object,
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is the builder object for CStorVolumeClaim
func BuildFrom ¶
func BuildFrom(cvc *apis.CStorVolumeClaim) *Builder
BuildFrom returns new instance of Builder from the provided api instance
func (*Builder) Build ¶
func (b *Builder) Build() (*apis.CStorVolumeClaim, error)
Build returns the CStorVolumeClaim API instance
func (*Builder) WithAnnotations ¶
WithAnnotations merges existing annotations of CStorVolumeClaim if any with the ones that are provided here
func (*Builder) WithAnnotationsNew ¶
WithAnnotationsNew resets existing annotations of CStorVolumeiClaim if any with ones that are provided here
func (*Builder) WithCapacity ¶
WithCapacity sets the Capacity of CstorVOlumeClaim by converting string capacity into Quantity
func (*Builder) WithCapacityQty ¶
WithCapacityQty sets Capacity of CStorVOlumeClaim
func (*Builder) WithFinalizers ¶
WithFinalizers merges existing finalizers of CStorVolumeClaim if any with the ones that are provided here
func (*Builder) WithFinalizersNew ¶
WithFinalizersNew resets existing finalizers of CStorVolumeClaim if any with ones that are provided here
func (*Builder) WithGenerateName ¶
WithGenerateName sets the GenerateName of CStorVolumeClaim
func (*Builder) WithLabels ¶
WithLabels merges existing labels of CStorVolumeClaim if any with the ones that are provided here
func (*Builder) WithLabelsNew ¶
WithLabelsNew resets existing labels of CStorVolumeClaim if any with ones that are provided here
func (*Builder) WithNamespace ¶
WithNamespace resets the Namespace of CStorVolumeClaim with provided arguments
func (*Builder) WithNodeID ¶
WithNodeID sets NodeID details of CStorVolumeClaim
func (*Builder) WithReplicaCount ¶
WithReplicaCount sets replica count of CStorVolumeClaim
func (*Builder) WithStatusConditions ¶
func (b *Builder) WithStatusConditions( conditions []apis.CStorVolumeClaimCondition) *Builder
WithStatusConditions updates the status of CStorVolumeClaim
func (*Builder) WithStatusConditionsNew ¶
func (b *Builder) WithStatusConditionsNew( conditions []apis.CStorVolumeClaimCondition) *Builder
WithStatusConditionsNew resets the status of CStorVolumeClaim
func (*Builder) WithStatusPhase ¶
func (b *Builder) WithStatusPhase( phase apis.CStorVolumeClaimPhase) *Builder
WithStatusPhase updates the phase of CStorVolumeClaim
type CStorVolumeClaim ¶
type CStorVolumeClaim struct {
// contains filtered or unexported fields
}
CStorVolumeClaim a wrapper for ume object
func NewForAPIObject ¶
func NewForAPIObject(obj *apis.CStorVolumeClaim) *CStorVolumeClaim
NewForAPIObject returns a new instance of cstorvolume
type CStorVolumeClaimList ¶
type CStorVolumeClaimList struct {
// contains filtered or unexported fields
}
CStorVolumeClaimList is a list of cstorvolumeclaim objects
func (*CStorVolumeClaimList) Len ¶
func (l *CStorVolumeClaimList) Len() int
Len returns the number of items present in the CStorVolumeClaimList
type Kubeclient ¶
type Kubeclient struct {
// contains filtered or unexported fields
}
Kubeclient enables kubernetes API operations on csi volume instance
func NewKubeclient ¶
func NewKubeclient(opts ...KubeclientBuildOption) *Kubeclient
NewKubeclient returns a new instance of kubeclient meant for csi volume operations
func (*Kubeclient) Create ¶
func (k *Kubeclient) Create( cvc *apis.CStorVolumeClaim) (*apis.CStorVolumeClaim, error)
Create creates a cstorvolumeclaim instance in kubernetes cluster
func (*Kubeclient) Delete ¶
func (k *Kubeclient) Delete(name string) error
Delete deletes the cstorvolumeclaim from kubernetes
func (*Kubeclient) Get ¶
func (k *Kubeclient) Get( name string, opts metav1.GetOptions, ) (*apis.CStorVolumeClaim, error)
Get returns cstorvolumeclaim object for given name
func (*Kubeclient) GetRaw ¶
func (k *Kubeclient) GetRaw( name string, opts metav1.GetOptions, ) ([]byte, error)
GetRaw returns cstorvolumeclaim instance in bytes
func (*Kubeclient) List ¶
func (k *Kubeclient) List( opts metav1.ListOptions, ) (*apis.CStorVolumeClaimList, error)
List returns a list of cstorvolumeclaim instances present in kubernetes cluster
func (*Kubeclient) Patch ¶
func (k *Kubeclient) Patch( oldCVC, newCVC *apis.CStorVolumeClaim, subresources ...string, ) (*apis.CStorVolumeClaim, error)
Patch patches this cstorvolumeclaim instance against kubernetes cluster
func (*Kubeclient) Update ¶
func (k *Kubeclient) Update( cvc *apis.CStorVolumeClaim, ) (*apis.CStorVolumeClaim, error)
Update updates this cstorvolumeclaim instance against 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
type ListBuilder ¶
type ListBuilder struct {
// contains filtered or unexported fields
}
ListBuilder enables building an instance of umeCStorVolumeClaimList
func NewListBuilder ¶
func NewListBuilder() *ListBuilder
NewListBuilder returns a new instance of listBuilder
func (*ListBuilder) List ¶
func (b *ListBuilder) List() *CStorVolumeClaimList
List returns the list of CStorVolumeClaims (cvcs) instances that was built by this builder
func (*ListBuilder) WithAPIList ¶
func (b *ListBuilder) WithAPIList( list *apis.CStorVolumeClaimList) *ListBuilder
WithAPIList builds the list of cstorvolume claim instances based on the provided CStorVolumeClaim api instances
func (*ListBuilder) WithFilter ¶
func (b *ListBuilder) WithFilter(pred ...Predicate) *ListBuilder
WithFilter adds filters on which the cstorvolumeclaim has to be filtered
type Predicate ¶
type Predicate func(*CStorVolumeClaim) bool
Predicate defines an abstraction to determine conditional checks against the provided cstorvolume claim instance
type PredicateList ¶
type PredicateList []Predicate
PredicateList holds a list of cstor volume claims based predicates