Documentation ¶
Index ¶
- Constants
- type CRDDriver
- func (d *CRDDriver) DeleteConfig(ctx context.Context, keys []string) error
- func (d *CRDDriver) GetConfig(ctx context.Context, key string) (string, bool, error)
- func (d *CRDDriver) ListConfig(ctx context.Context, keys []string) (map[string]string, error)
- func (d *CRDDriver) SetConfig(ctx context.Context, data map[string]string) error
- type Config
- type Driver
Constants ¶
View Source
const (
CRDDriverType = "crd"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRDDriver ¶
type CRDDriver struct { Ctx context.Context *Config ConfigMapLister listers.ConfigMapLister }
func (*CRDDriver) DeleteConfig ¶
func (*CRDDriver) ListConfig ¶
type Config ¶
type Config struct { Driver string DomainID string ConfigName string // enable cache means getting data in local cache with k8s configmap lister // otherwise will use kubeClient to get configmap // for kuscia config command, will disable cache DisableCache bool KubeClient kubernetes.Interface DomainKey *rsa.PrivateKey }
Click to show internal directories.
Click to hide internal directories.