Documentation ¶
Index ¶
- func AddFinalizer(obj kubeApiMetav1.Object, finalizer string)
- func CreateDirectory(namespace string, instance string) (string, error)
- func GetPrettyJSON(byteJson []byte) ([]byte, error)
- func HasFinalizer(obj kubeApiMetav1.Object, finalizer string) bool
- func HouseCleaning(dirPath string) error
- func IsBeingDeleted(obj kubeApiMetav1.Object) bool
- func IsValidPasswordFormat(password string) bool
- func RemoveFinalizer(obj kubeApiMetav1.Object, finalizer string)
- func ToJson(content interface{}) ([]byte, error)
- func UpdateOutput(instanceOutput *sqlv1alpha1.PostgreSql, output string) (error, *sqlv1alpha1.PostgreSql)
- func WriteToFile(b []byte, path string, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFinalizer ¶
func AddFinalizer(obj kubeApiMetav1.Object, finalizer string)
AddFinalizer adds the passed finalizer this object
func CreateDirectory ¶
CreateDirectory create a directory to host generated tf based on namespace and instance name
func GetPrettyJSON ¶
GetPrettyJSON return a pretty json format
func HasFinalizer ¶
func HasFinalizer(obj kubeApiMetav1.Object, finalizer string) bool
HasFinalizer returns whether this object has the passed finalizer
func HouseCleaning ¶
HouseCleaning clean what have been created
func IsBeingDeleted ¶
func IsBeingDeleted(obj kubeApiMetav1.Object) bool
IsBeingDeleted returns whether this object has been requested to be deleted
func IsValidPasswordFormat ¶
IsValidPasswordFormat Validate password format
func RemoveFinalizer ¶
func RemoveFinalizer(obj kubeApiMetav1.Object, finalizer string)
RemoveFinalizer removes the passed finalizer from object
func UpdateOutput ¶
func UpdateOutput(instanceOutput *sqlv1alpha1.PostgreSql, output string) (error, *sqlv1alpha1.PostgreSql)
UpdateOutput Unmarshal the returned output and update the output status
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.