Documentation ¶
Index ¶
- type DefaultInjector
- func (i *DefaultInjector) GetConfigStore(cf *ref.ComponentRefConfig) (configstores.Store, error)
- func (i *DefaultInjector) GetSecretStore(cf *ref.ComponentRefConfig) (secretstores.SecretStore, error)
- func (i *DefaultInjector) InjectSecretRef(items []*ref.SecretRefConfig, metaData map[string]string) (map[string]string, error)
- type RefContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultInjector ¶
type DefaultInjector struct {
Container RefContainer
}
func NewDefaultInjector ¶
func NewDefaultInjector(secretStores map[string]secretstores.SecretStore, configStores map[string]configstores.Store) *DefaultInjector
NewDefaultInjector return a single Inject
func (*DefaultInjector) GetConfigStore ¶
func (i *DefaultInjector) GetConfigStore(cf *ref.ComponentRefConfig) (configstores.Store, error)
func (*DefaultInjector) GetSecretStore ¶
func (i *DefaultInjector) GetSecretStore(cf *ref.ComponentRefConfig) (secretstores.SecretStore, error)
func (*DefaultInjector) InjectSecretRef ¶
func (i *DefaultInjector) InjectSecretRef(items []*ref.SecretRefConfig, metaData map[string]string) (map[string]string, error)
InjectSecretRef inject secret to metaData TODO: permission control
type RefContainer ¶
type RefContainer struct { SecretRef map[string]secretstores.SecretStore ConfigRef map[string]configstores.Store }
RefContainer hold all secret&config store
Click to show internal directories.
Click to hide internal directories.