Skip to content

Commit

Permalink
feat: add vault config
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahanmmi committed Apr 8, 2024
1 parent 9dc5ef5 commit e5ca2c8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pkg/vault/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ const (
)

type Config struct {
Provider Provider `yaml:"provider" json:"provider"`
Provider Provider `yaml:"provider" json:"provider" koanf:"provider"`
Aws struct {
Region string `yaml:"region" json:"region"`
RoleArn string `yaml:"role_arn" json:"role_arn"`
AccessKey string `yaml:"access_key" json:"access_key"`
SecretKey string `yaml:"secret_key" json:"secret_key"`
} `yaml:"aws"`
Region string `yaml:"region" json:"region" koanf:"region"`
RoleArn string `yaml:"role_arn" json:"role_arn" koanf:"role_arn"`
AccessKey string `yaml:"access_key" json:"access_key" koanf:"access_key"`
SecretKey string `yaml:"secret_key" json:"secret_key" koanf:"secret_key"`
} `yaml:"aws" json:"aws" koanf:"aws"`
Azure struct {
BaseUrl string `yaml:"base_url" json:"base_url"`
ClientId string `yaml:"client_id" json:"client_id"`
ClientSecret string `yaml:"client_secret" json:"client_secret"`
} `yaml:"azure"`
KeyId string `yaml:"key_id" json:"key_id"`
BaseUrl string `yaml:"base_url" json:"base_url" koanf:"base_url"`
ClientId string `yaml:"client_id" json:"client_id" koanf:"client_id"`
ClientSecret string `yaml:"client_secret" json:"client_secret" koanf:"client_secret"`
} `yaml:"azure" json:"azure" koanf:"azure"`
KeyId string `yaml:"key_id" json:"key_id" koanf:"key_id"`
}

type VaultSourceConfig interface {
Expand Down

0 comments on commit e5ca2c8

Please sign in to comment.