datasource

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 added in v1.8.1

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.

Jump to

Keyboard shortcuts

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