Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(source *system_proto.DataSource) validators.ValidationError
Types ¶
type Loader ¶
type Loader interface {
Load(ctx context.Context, mesh string, source *system_proto.DataSource) ([]byte, error)
}
func NewDataSourceLoader ¶
func NewDataSourceLoader(secretManager manager.ReadOnlyResourceManager) Loader
func NewStaticLoader ¶
func NewStaticLoader(secrets []*system.SecretResource) Loader
NewStaticLoader returns a loader that supports predefined list of secrets This implementation is more performant if than dynamic if we already have the list of all secrets because we can avoid I/O operations.
Click to show internal directories.
Click to hide internal directories.