Versions in this module Expand all Collapse all v1 v1.5.7 May 29, 2024 Changes in this version + const AzureVaultDomain + const CloudflareWorkersSecretName + const ConjurName + const DopplerName + const EtcdName + const FileSystemName + const GithubName + const GoPassName + const GoogleSecretManagerName + const HashicorpVaultName + const HerokuName + const KeyPassName + const LastPassName + const OnePasswordName + const ProjectEndPoint + const VercelAPIBase + const VercelName + var ErrCloudFlareSourceFieldIsMissing = errors.New("`source` field is missing") + func GenerateProvidersMetaJSON(version string, providersMetaList []core.MetaInfo) (string, error) + func GetAllProvidersMeta() []core.MetaInfo + func NewAWSSSM(logger logging.Logger) (core.Provider, error) + func NewAWSSecretsManager(logger logging.Logger) (core.Provider, error) + func NewAnsibleVault(logger logging.Logger) (core.Provider, error) + func NewAzureKeyVault(logger logging.Logger) (core.Provider, error) + func NewCloudflareClient(logger logging.Logger) (core.Provider, error) + func NewCloudflareSecretsClient(logger logging.Logger) (core.Provider, error) + func NewConjurClient(logger logging.Logger) (core.Provider, error) + func NewConsul(logger logging.Logger) (core.Provider, error) + func NewDoppler(logger logging.Logger) (core.Provider, error) + func NewDotenv(logger logging.Logger) (core.Provider, error) + func NewEtcd(logger logging.Logger) (core.Provider, error) + func NewFileSystem(logger logging.Logger) (core.Provider, error) + func NewGitHub(logger logging.Logger) (core.Provider, error) + func NewGoogleSecretManager(logger logging.Logger) (core.Provider, error) + func NewGopass(logger logging.Logger) (core.Provider, error) + func NewHashicorpVault(logger logging.Logger) (core.Provider, error) + func NewHeroku(logger logging.Logger) (core.Provider, error) + func NewKeeperSecretsManager(logger logging.Logger) (core.Provider, error) + func NewKeyPass(logger logging.Logger) (core.Provider, error) + func NewLastPass(logger logging.Logger) (core.Provider, error) + func NewOnePassword(logger logging.Logger) (core.Provider, error) + func NewProcessEnv(logger logging.Logger) (core.Provider, error) + func NewVercel(logger logging.Logger) (core.Provider, error) + func RegisterProvider(metaInfo core.MetaInfo, ...) + func ResolveProvider(providerName string) (core.Provider, error) + func ResolveProviderMeta(providerName string) (core.MetaInfo, error) + type AWSSSM struct + func (a *AWSSSM) Delete(kp core.KeyPath) error + func (a *AWSSSM) DeleteMapping(kp core.KeyPath) error + func (a *AWSSSM) Get(p core.KeyPath) (*core.EnvEntry, error) + func (a *AWSSSM) GetMapping(kp core.KeyPath) ([]core.EnvEntry, error) + func (a *AWSSSM) Put(kp core.KeyPath, val string) error + func (a *AWSSSM) PutMapping(kp core.KeyPath, m map[string]string) error + type AWSSSMClient interface + DeleteParameter func(ctx context.Context, params *ssm.DeleteParameterInput, ...) (*ssm.DeleteParameterOutput, error) + GetParameter func(ctx context.Context, params *ssm.GetParameterInput, ...) (*ssm.GetParameterOutput, error) + PutParameter func(ctx context.Context, params *ssm.PutParameterInput, ...) (*ssm.PutParameterOutput, error) + type AWSSecretsManager struct + func (a *AWSSecretsManager) Delete(kp core.KeyPath) error + func (a *AWSSecretsManager) DeleteMapping(kp core.KeyPath) error + func (a *AWSSecretsManager) Get(kp core.KeyPath) (*core.EnvEntry, error) + func (a *AWSSecretsManager) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (a *AWSSecretsManager) Put(kp core.KeyPath, val string) error + func (a *AWSSecretsManager) PutMapping(kp core.KeyPath, m map[string]string) error + type AWSSecretsManagerClient interface + CreateSecret func(ctx context.Context, params *secretsmanager.CreateSecretInput, ...) (*secretsmanager.CreateSecretOutput, error) + DeleteSecret func(ctx context.Context, params *secretsmanager.DeleteSecretInput, ...) (*secretsmanager.DeleteSecretOutput, error) + DescribeSecret func(ctx context.Context, params *secretsmanager.DescribeSecretInput, ...) (*secretsmanager.DescribeSecretOutput, error) + GetSecretValue func(ctx context.Context, params *secretsmanager.GetSecretValueInput, ...) (*secretsmanager.GetSecretValueOutput, error) + PutSecretValue func(ctx context.Context, params *secretsmanager.PutSecretValueInput, ...) (*secretsmanager.PutSecretValueOutput, error) + type AnsibleVault struct + func (a *AnsibleVault) Delete(kp core.KeyPath) error + func (a *AnsibleVault) DeleteMapping(kp core.KeyPath) error + func (a *AnsibleVault) Get(p core.KeyPath) (*core.EnvEntry, error) + func (a *AnsibleVault) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (a *AnsibleVault) Name() string + func (a *AnsibleVault) Put(p core.KeyPath, val string) error + func (a *AnsibleVault) PutMapping(p core.KeyPath, m map[string]string) error + type AnsibleVaultClient interface + Read func(p string) (map[string]string, error) + type AnsibleVaultReader struct + func (a AnsibleVaultReader) Read(p string) (map[string]string, error) + type AzureKeyVault struct + func (a *AzureKeyVault) Delete(kp core.KeyPath) error + func (a *AzureKeyVault) DeleteMapping(kp core.KeyPath) error + func (a *AzureKeyVault) Get(p core.KeyPath) (*core.EnvEntry, error) + func (a *AzureKeyVault) GetMapping(kp core.KeyPath) ([]core.EnvEntry, error) + func (a *AzureKeyVault) Name() string + func (a *AzureKeyVault) Put(p core.KeyPath, val string) error + func (a *AzureKeyVault) PutMapping(p core.KeyPath, m map[string]string) error + type AzureKeyVaultClient interface + DeleteSecret func(ctx context.Context, vaultBaseURL string, secretName string) (result keyvault.DeletedSecretBundle, err error) + GetSecret func(ctx context.Context, vaultBaseURL string, secretName string, ...) (result keyvault.SecretBundle, err error) + GetSecrets func(ctx context.Context, vaultBaseURL string, maxresults *int32) (result keyvault.SecretListResultPage, err error) + SetSecret func(ctx context.Context, vaultBaseURL string, secretName string, ...) (result keyvault.SecretBundle, err error) + type CellarExport struct + Providers map[string]core.MetaInfo + Version string + type Cloudflare struct + func (c *Cloudflare) Delete(kp core.KeyPath) error + func (c *Cloudflare) DeleteMapping(kp core.KeyPath) error + func (c *Cloudflare) Get(p core.KeyPath) (*core.EnvEntry, error) + func (c *Cloudflare) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (c *Cloudflare) Put(p core.KeyPath, val string) error + func (c *Cloudflare) PutMapping(p core.KeyPath, m map[string]string) error + type CloudflareClient interface + ListWorkersKVs func(ctx context.Context, namespaceID string) (cloudflare.ListStorageKeysResponse, error) + ReadWorkersKV func(ctx context.Context, namespaceID string, key string) ([]byte, error) + WriteWorkersKV func(ctx context.Context, namespaceID, key string, value []byte) (cloudflare.Response, error) + WriteWorkersKVBulk func(ctx context.Context, namespaceID string, ...) (cloudflare.Response, error) + type CloudflareSecrets struct + func (c *CloudflareSecrets) Delete(p core.KeyPath) error + func (c *CloudflareSecrets) DeleteMapping(kp core.KeyPath) error + func (c *CloudflareSecrets) Get(p core.KeyPath) (*core.EnvEntry, error) + func (c *CloudflareSecrets) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (c *CloudflareSecrets) Put(p core.KeyPath, val string) error + func (c *CloudflareSecrets) PutMapping(p core.KeyPath, m map[string]string) error + type CloudflareSecretsClient interface + DeleteWorkersSecret func(ctx context.Context, script, secretName string) (cloudflare.Response, error) + SetWorkersSecret func(ctx context.Context, script string, req *cloudflare.WorkersPutSecretRequest) (cloudflare.WorkersPutSecretResponse, error) + type ConjurClient interface + AddSecret func(variableID string, secretValue string) error + RetrieveSecret func(variableID string) ([]byte, error) + type Consul struct + func (a *Consul) Delete(kp core.KeyPath) error + func (a *Consul) DeleteMapping(kp core.KeyPath) error + func (a *Consul) Get(p core.KeyPath) (*core.EnvEntry, error) + func (a *Consul) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (a *Consul) Put(p core.KeyPath, val string) error + func (a *Consul) PutMapping(p core.KeyPath, m map[string]string) error + type ConsulClient interface + Get func(key string, q *api.QueryOptions) (*api.KVPair, *api.QueryMeta, error) + List func(prefix string, q *api.QueryOptions) (api.KVPairs, *api.QueryMeta, error) + Put func(p *api.KVPair, q *api.WriteOptions) (*api.WriteMeta, error) + type CyberArkConjur struct + func (c *CyberArkConjur) Delete(kp core.KeyPath) error + func (c *CyberArkConjur) DeleteMapping(kp core.KeyPath) error + func (c *CyberArkConjur) Get(p core.KeyPath) (*core.EnvEntry, error) + func (c *CyberArkConjur) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (c *CyberArkConjur) Put(p core.KeyPath, val string) error + func (c *CyberArkConjur) PutMapping(p core.KeyPath, m map[string]string) error + type Doppler struct + func (h *Doppler) Delete(kp core.KeyPath) error + func (h *Doppler) DeleteMapping(kp core.KeyPath) error + func (h *Doppler) Get(p core.KeyPath) (*core.EnvEntry, error) + func (h *Doppler) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (h *Doppler) Put(p core.KeyPath, val string) error + func (h *Doppler) PutMapping(p core.KeyPath, m map[string]string) error + type DopplerClient interface + GetSecrets func(host string, verifyTLS bool, apiKey string, project string, config string) ([]byte, http.Error) + type DotEnvClient interface + Delete func(p string) error + Exists func(p string) (bool, error) + Read func(p string) (map[string]string, error) + Write func(p string, kvs map[string]string) error + type DotEnvReader struct + func (d *DotEnvReader) Delete(p string) error + func (d *DotEnvReader) Exists(p string) (bool, error) + func (d *DotEnvReader) Read(p string) (map[string]string, error) + func (d *DotEnvReader) Write(p string, kvs map[string]string) error + type Dotenv struct + func (a *Dotenv) Delete(kp core.KeyPath) error + func (a *Dotenv) DeleteMapping(kp core.KeyPath) error + func (a *Dotenv) Get(p core.KeyPath) (*core.EnvEntry, error) + func (a *Dotenv) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (a *Dotenv) Put(p core.KeyPath, val string) error + func (a *Dotenv) PutMapping(kp core.KeyPath, m map[string]string) error + type Etcd struct + func (a *Etcd) Delete(kp core.KeyPath) error + func (a *Etcd) DeleteMapping(kp core.KeyPath) error + func (a *Etcd) Get(p core.KeyPath) (*core.EnvEntry, error) + func (a *Etcd) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (a *Etcd) Put(p core.KeyPath, val string) error + func (a *Etcd) PutMapping(p core.KeyPath, m map[string]string) error + type EtcdClient interface + Get func(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error) + Put func(ctx context.Context, key, val string, opts ...clientv3.OpOption) (*clientv3.PutResponse, error) + type FileSystem struct + func (f *FileSystem) Delete(kp core.KeyPath) error + func (f *FileSystem) DeleteMapping(kp core.KeyPath) error + func (f *FileSystem) Get(p core.KeyPath) (*core.EnvEntry, error) + func (f *FileSystem) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (f *FileSystem) IsText(s []byte) bool + func (f *FileSystem) Put(p core.KeyPath, val string) error + func (f *FileSystem) PutMapping(p core.KeyPath, m map[string]string) error + type GitHub struct + func (g *GitHub) Delete(p core.KeyPath) error + func (g *GitHub) DeleteMapping(p core.KeyPath) error + func (g *GitHub) Get(p core.KeyPath) (*core.EnvEntry, error) + func (g *GitHub) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (g *GitHub) Put(p core.KeyPath, val string) error + func (g *GitHub) PutMapping(p core.KeyPath, m map[string]string) error + type GitHubActionClient interface + CreateOrUpdateRepoSecret func(ctx context.Context, owner, repo string, eSecret *github.EncryptedSecret) (*github.Response, error) + DeleteRepoSecret func(ctx context.Context, owner, repo, name string) (*github.Response, error) + GetRepoPublicKey func(ctx context.Context, owner, repo string) (*github.PublicKey, *github.Response, error) + ListRepoSecrets func(ctx context.Context, owner, repo string, opts *github.ListOptions) (*github.Secrets, *github.Response, error) + type GoogleSMClient interface + AccessSecretVersion func(ctx context.Context, req *secretmanagerpb.AccessSecretVersionRequest, ...) (*secretmanagerpb.AccessSecretVersionResponse, error) + AddSecretVersion func(ctx context.Context, req *secretmanagerpb.AddSecretVersionRequest, ...) (*secretmanagerpb.SecretVersion, error) + DestroySecretVersion func(ctx context.Context, req *secretmanagerpb.DestroySecretVersionRequest, ...) (*secretmanagerpb.SecretVersion, error) + ListSecrets func(ctx context.Context, in *secretmanagerpb.ListSecretsRequest, ...) *secretmanager.SecretIterator + type GoogleSecretManager struct + func (a *GoogleSecretManager) Delete(kp core.KeyPath) error + func (a *GoogleSecretManager) DeleteMapping(kp core.KeyPath) error + func (a *GoogleSecretManager) Get(p core.KeyPath) (*core.EnvEntry, error) + func (a *GoogleSecretManager) GetMapping(kp core.KeyPath) ([]core.EnvEntry, error) + func (a *GoogleSecretManager) Put(p core.KeyPath, val string) error + func (a *GoogleSecretManager) PutMapping(p core.KeyPath, m map[string]string) error + type Gopass struct + func (g *Gopass) Delete(kp core.KeyPath) error + func (g *Gopass) DeleteMapping(kp core.KeyPath) error + func (g *Gopass) Get(p core.KeyPath) (*core.EnvEntry, error) + func (g *Gopass) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (g *Gopass) Put(p core.KeyPath, val string) error + func (g *Gopass) PutMapping(p core.KeyPath, m map[string]string) error + type GopassClient interface + Get func(ctx context.Context, name, revision string) (gopass.Secret, error) + List func(ctx context.Context) ([]string, error) + Set func(ctx context.Context, name string, sec gopass.Byter) error + type HashicorpClient interface + Read func(path string) (*api.Secret, error) + Write func(path string, data map[string]interface{}) (*api.Secret, error) + type HashicorpVault struct + func (h *HashicorpVault) Delete(kp core.KeyPath) error + func (h *HashicorpVault) DeleteMapping(kp core.KeyPath) error + func (h *HashicorpVault) Get(p core.KeyPath) (*core.EnvEntry, error) + func (h *HashicorpVault) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (h *HashicorpVault) Put(p core.KeyPath, val string) error + func (h *HashicorpVault) PutMapping(p core.KeyPath, m map[string]string) error + type Heroku struct + func (h *Heroku) Delete(kp core.KeyPath) error + func (h *Heroku) DeleteMapping(kp core.KeyPath) error + func (h *Heroku) Get(p core.KeyPath) (*core.EnvEntry, error) + func (h *Heroku) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (h *Heroku) Put(p core.KeyPath, val string) error + func (h *Heroku) PutMapping(p core.KeyPath, m map[string]string) error + type HerokuClient interface + ConfigVarInfoForApp func(ctx context.Context, appIdentity string) (heroku.ConfigVarInfoForAppResult, error) + ConfigVarUpdate func(ctx context.Context, appIdentity string, o map[string]*string) (heroku.ConfigVarUpdateResult, error) + type KeeperSecretsManager struct + func (k *KeeperSecretsManager) Delete(kp core.KeyPath) error + func (k *KeeperSecretsManager) DeleteMapping(kp core.KeyPath) error + func (k *KeeperSecretsManager) Get(p core.KeyPath) (*core.EnvEntry, error) + func (k *KeeperSecretsManager) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (k *KeeperSecretsManager) Name() string + func (k *KeeperSecretsManager) Put(p core.KeyPath, val string) error + func (k *KeeperSecretsManager) PutMapping(p core.KeyPath, m map[string]string) error + type KeyPass struct + func (k *KeyPass) Delete(kp core.KeyPath) error + func (k *KeyPass) DeleteMapping(kp core.KeyPath) error + func (k *KeyPass) Get(p core.KeyPath) (*core.EnvEntry, error) + func (k *KeyPass) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (k *KeyPass) Put(p core.KeyPath, val string) error + func (k *KeyPass) PutMapping(p core.KeyPath, m map[string]string) error + type KsmClient interface + GetSecret func(p core.KeyPath) (*core.EnvEntry, error) + GetSecrets func(p core.KeyPath) ([]core.EnvEntry, error) + func NewKsmClient() (KsmClient, error) + type LastPass struct + func (l *LastPass) Delete(kp core.KeyPath) error + func (l *LastPass) DeleteMapping(kp core.KeyPath) error + func (l *LastPass) Get(p core.KeyPath) (*core.EnvEntry, error) + func (l *LastPass) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (l *LastPass) Put(p core.KeyPath, val string) error + func (l *LastPass) PutMapping(p core.KeyPath, m map[string]string) error + type OnePassword struct + func (o *OnePassword) Delete(kp core.KeyPath) error + func (o *OnePassword) DeleteMapping(kp core.KeyPath) error + func (o *OnePassword) Get(p core.KeyPath) (*core.EnvEntry, error) + func (o *OnePassword) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (o *OnePassword) Put(p core.KeyPath, val string) error + func (o *OnePassword) PutMapping(p core.KeyPath, m map[string]string) error + type OnePasswordClient interface + GetItemByTitle func(title, vaultUUID string) (*onepassword.Item, error) + UpdateItem func(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error) + type ProcessEnv struct + func (a *ProcessEnv) Delete(kp core.KeyPath) error + func (a *ProcessEnv) DeleteMapping(kp core.KeyPath) error + func (a *ProcessEnv) Get(p core.KeyPath) (*core.EnvEntry, error) + func (a *ProcessEnv) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (a *ProcessEnv) Name() string + func (a *ProcessEnv) Put(p core.KeyPath, val string) error + func (a *ProcessEnv) PutMapping(p core.KeyPath, m map[string]string) error + type ResourceFilter struct + Kind string + Limit int + Offset int + Search string + type SecretsManagerClient struct + func (c SecretsManagerClient) GetSecret(p core.KeyPath) (*core.EnvEntry, error) + func (c SecretsManagerClient) GetSecrets(p core.KeyPath) ([]core.EnvEntry, error) + type Vercel struct + func (ve *Vercel) Delete(kp core.KeyPath) error + func (ve *Vercel) DeleteMapping(kp core.KeyPath) error + func (ve *Vercel) Get(p core.KeyPath) (*core.EnvEntry, error) + func (ve *Vercel) GetMapping(p core.KeyPath) ([]core.EnvEntry, error) + func (ve *Vercel) Put(p core.KeyPath, val string) error + func (ve *Vercel) PutMapping(p core.KeyPath, m map[string]string) error + type VercelAPI struct + func NewVercelAPI(token string) *VercelAPI + func (v *VercelAPI) GetProject(path string) (map[string]*string, error) + type VercelClient interface + GetProject func(path string) (map[string]*string, error) + type VercelProject struct + Env []struct{ ... }