secrets

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyDefault

func ApplyDefault(secretConfig Secret) features.Func

Types

type Secret added in v0.10.0

type Secret struct {
	TenantUid string `yaml:"tenantUid"`
	ApiUrl    string `yaml:"apiUrl"`
	ApiToken  string `yaml:"apiToken"`
}

func DefaultMultiTenant added in v0.10.0

func DefaultMultiTenant(fs afero.Fs) ([]Secret, error)

func DefaultSingleTenant added in v0.10.0

func DefaultSingleTenant(fs afero.Fs) (Secret, error)

func ManyFromConfig added in v0.10.0

func ManyFromConfig(fs afero.Fs, path string) ([]Secret, error)

func NewFromConfig

func NewFromConfig(fs afero.Fs, path string) (Secret, error)

type Secrets

type Secrets struct {
	Tenants []Secret `yaml:"tenants"`
}

Jump to

Keyboard shortcuts

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