Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitwardenConfig ¶
type BitwardenConfig struct {
ApiURL string `name:"api-url" help:"API URL" env:"API_URL" default:"https://vault.bitwarden.com/api"`
IdentityURL string `name:"identity-url" help:"Identity URL" env:"IDENTITY_URL" default:"https://vault.bitwarden.com/identity"`
AccessToken string `name:"access-token" help:"Access token" env:"ACCESS_TOKEN"`
OrgId string `name:"organization-id" help:"Organization ID" env:"ORGANIZATION_ID"`
ProjectId string `name:"project-id" help:"Project ID" env:"PROJECT_ID"`
}
type Client ¶
type Client interface {
Get(id string) (string, error)
FetchAll() (*SecretsCollection, error)
Close()
}
func NewBitwardenClient ¶
func NewBitwardenClient(cfg BitwardenConfig) (Client, error)
func NewInfisicalClient ¶
func NewInfisicalClient(ctx context.Context, cfg InfisicalConfig) (Client, error)
type Config ¶
type Config struct {
BitwardenConfig `prefix:"bitwarden-" envprefix:"BITWARDEN_" embed:""`
InfisicalConfig `prefix:"infisical-" envprefix:"INFISICAL_" embed:""`
}
type InfisicalConfig ¶
type InfisicalConfig struct {
SiteUrl string `name:"site-url" help:"Site URL" env:"SITE_URL" default:"https://app.infisical.com"`
ClientID string `name:"client-id" help:"Client ID (Universal Auth)" env:"CLIENT_ID"`
ClientSecret string `name:"client-secret" help:"Client Secret (Universal Auth)" env:"CLIENT_SECRET"`
Environment string `name:"environment" help:"Environment slug" env:"ENVIRONMENT"`
ProjectId string `name:"project-id" help:"Project ID" env:"PROJECT_ID"`
SecretPath string `name:"secret-path" help:"Project ID" env:"SECRET_PATH" default:"/"`
}
type SecretsCollection ¶
type SecretsCollection struct {
Secrets []Secret
}
Click to show internal directories.
Click to hide internal directories.