Documentation ¶
Index ¶
- func BuildInClusterClientset() *kubernetes.Clientset
- func BuildInClusterDataStoreClientset() *datastoreclientsetv1alpha1.DatastoreV1alpha1Client
- func CapacityRoundUp(originSize int64) int64
- func Checksum(fpath string) (string, error)
- func ConvertBytesToIEC(bytes uint64) string
- func ConvertBytesToStr(size int64) string
- func IsStringInSet(str string, strArray []string) bool
- func Mkdir(dirpath string) error
- func ParseBytes(sizeStr string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildInClusterClientset ¶
func BuildInClusterClientset() *kubernetes.Clientset
BuildInClusterClientset builds a kubernetes in-cluster clientset
func BuildInClusterDataStoreClientset ¶
func BuildInClusterDataStoreClientset() *datastoreclientsetv1alpha1.DatastoreV1alpha1Client
func CapacityRoundUp ¶
func ConvertBytesToIEC ¶
ConvertBytesToIEC converts bytes to IEC units (Ki, Mi, Gi, etc.) and rounds up
func ConvertBytesToStr ¶
ConvertBytesToStr convert size into string
func IsStringInSet ¶
func ParseBytes ¶
ParseBytes parse size from string into bytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.