datasource

package
v0.0.0-...-2c3524d Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 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

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