config

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CloudRu *cloudru.Config `envPrefix:"CLOUDRU_"`
	Vault   *vault.Config   `envPrefix:"VAULT_"`

	CloudSecrets struct {
		Provider        ProviderName  `env:"PROVIDER" envDefault:"cloudru"`
		RefreshInterval time.Duration `env:"REFRESH_INTERVAL" envDefault:"5m"`
		GRPCAddr        string        `env:"GRPC_ADDR"`

		CleanupOrphanedSecrets bool `env:"CLEANUP_ORPHANED"`

		SecretNameFolderDelimiter secretname.FolderDelimiter `env:"SECRET_NAME_FOLDER_DELIMITER" envDefault:"-"`

		Log struct {
			Level slog.Level `env:"LEVEL"`
		} `envPrefix:"LOG_"`
	} `envPrefix:"CS_"`
}

func Load added in v0.2.0

func Load() (*Config, error)

type ProviderName added in v0.4.0

type ProviderName string

ProviderName defines available external secrets backends.

const (
	// ProviderNameCloudRU selects Cloud.ru Secret Manager backend.
	ProviderNameCloudRU ProviderName = "cloudru"
	// ProviderNameVault selects HashiCorp Vault backend.
	ProviderNameVault ProviderName = "vault"
)

func (*ProviderName) UnmarshalText added in v0.4.0

func (t *ProviderName) UnmarshalText(text []byte) error

func (ProviderName) Validate added in v0.4.0

func (t ProviderName) Validate() error

Jump to

Keyboard shortcuts

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