Documentation
¶
Index ¶
- Constants
- func CreateNfsPvc(k8sClient client.Client, nfsPvc *nfspvcv1alpha1.NfsPvc) *nfspvcv1alpha1.NfsPvc
- func CreateResource(k8sClient client.Client, obj client.Object) bool
- func DeleteNfsPvc(k8sClient client.Client, nfsPvc *nfspvcv1alpha1.NfsPvc)
- func DoesResourceExist(k8sClient client.Client, obj client.Object) bool
- func GetNfsPvc(k8sClient client.Client, name string, namespace string) *nfspvcv1alpha1.NfsPvc
- func GetResourceUid(k8sClient client.Client, obj client.Object) string
- func UpdateResource(k8sClient client.Client, obj client.Object) error
Constants ¶
View Source
const RandStrLength = 10
Variables ¶
This section is empty.
Functions ¶
func CreateNfsPvc ¶ added in v0.2.1
func CreateNfsPvc(k8sClient client.Client, nfsPvc *nfspvcv1alpha1.NfsPvc) *nfspvcv1alpha1.NfsPvc
CreateNfsPvc creates a new NfsPvc instance with a unique name and returns it.
func CreateResource ¶ added in v0.2.0
func DeleteNfsPvc ¶
func DeleteNfsPvc(k8sClient client.Client, nfsPvc *nfspvcv1alpha1.NfsPvc)
DeleteNfsPvc deletes an existing NfsPvc instance.
func DoesResourceExist ¶
DoesResourceExist checks if a given Kubernetes object exists in the cluster.
func GetResourceUid ¶
GetResourceUid returns a given Kubernetes object UID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.