Documentation ¶
Index ¶
- func CreateFormatter(logFormat string) log.Formatter
- func DoTransaction(logCtx *log.Entry, taskList ...Task) error
- func GetConfigMapData(configMap *v1.ConfigMap, configMapKey string, destination any) error
- func GetKubeConfig() (*rest.Config, error)
- func GetOrCreateConfigMap(name string, options CreateConfigMapOptions) (*v1.ConfigMap, error)
- func RemoveIndex[T any](original []T, index int) []T
- func SetLogLevel(logLevel string)
- func UpdateConfigMapData(configMap *v1.ConfigMap, configMapData any, options UpdateConfigMapOptions) error
- type CreateConfigMapOptions
- type Task
- type UpdateConfigMapOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFormatter ¶
func GetConfigMapData ¶
func GetKubeConfig ¶
func GetOrCreateConfigMap ¶ added in v0.1.1
func GetOrCreateConfigMap(name string, options CreateConfigMapOptions) (*v1.ConfigMap, error)
func RemoveIndex ¶
func SetLogLevel ¶
func SetLogLevel(logLevel string)
func UpdateConfigMapData ¶
func UpdateConfigMapData(configMap *v1.ConfigMap, configMapData any, options UpdateConfigMapOptions) error
Types ¶
type CreateConfigMapOptions ¶
type CreateConfigMapOptions struct { Clientset v1.ConfigMapInterface Ctx context.Context }
type UpdateConfigMapOptions ¶
type UpdateConfigMapOptions struct { Clientset v1.ConfigMapInterface ConfigMapKey string Ctx context.Context }
Click to show internal directories.
Click to hide internal directories.