ref

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 (*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

func NewRefContainer

func NewRefContainer() *RefContainer

NewRefContainer return a new container

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL