Documentation ¶
Index ¶
- func EnsureDirectoryExist(dirName string) error
- func IsDirExist(path string) bool
- func IsFileExist(file string) bool
- func NewCRCli(kubeconfig string) (versioned.Interface, error)
- func NewEventRecorder(kubeCli kubernetes.Interface, source string) record.EventRecorder
- func NewKubeAndCRCli(kubeconfig string) (kubernetes.Interface, versioned.Interface, error)
- func NewKubeCli(kubeconfig string) (kubernetes.Interface, error)
- func NormalizeBucketURI(bucket string) string
- func OpenDB(dsn string) (*sql.DB, error)
- func ValidCmdFlags(cmdPath string, flagSet *pflag.FlagSet)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDirectoryExist ¶
EnsureDirectoryExist create directory if does not exist
func IsDirExist ¶
IsDirExist return true if path exist and is a dir, other cases return false
func IsFileExist ¶
IsFileExist return true if file exist and is a regular file, other cases return false
func NewEventRecorder ¶
func NewEventRecorder(kubeCli kubernetes.Interface, source string) record.EventRecorder
NewEventRecorder return the specify source's recoder
func NewKubeAndCRCli ¶
NewKubeAndCRCli create both kube cli and CR cli
func NewKubeCli ¶
func NewKubeCli(kubeconfig string) (kubernetes.Interface, error)
NewKubeCli create a kubeCli Interface
func NormalizeBucketURI ¶
NormalizeBucketURI normal bucket URL for rclone, e.g. s3://bucket -> s3:bucket
func ValidCmdFlags ¶
ValidCmdFlags verify that all flags are set
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.