providers

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 62 Imported by: 0

Documentation

Index

Constants

View Source
const AzureVaultDomain = "vault.azure.net"
View Source
const CloudflareWorkersSecretName = "cloudflare_workers_secret"
View Source
const ConjurName = "cyberark_conjur"
View Source
const DopplerName = "doppler"
View Source
const EtcdName = "etcd"
View Source
const FileSystemName = "FileSystem"
View Source
const GithubName = "GitHub"

NewGitHub create new GitHub provider

View Source
const GoPassName = "gopass"
View Source
const GoogleSecretManagerName = "google_secretmanager"
View Source
const HashicorpVaultName = "hashicorp_vault"
View Source
const HerokuName = "heroku"
View Source
const KeyPassName = "KeyPass"
View Source
const LastPassName = "lastpass"
View Source
const OnePasswordName = "1password"
View Source
const ProjectEndPoint = "/projects"
View Source
const VercelAPIBase = "https://api.vercel.com/"
View Source
const VercelName = "vercel"

Variables

View Source
var (
	ErrCloudFlareSourceFieldIsMissing = errors.New("`source` field is missing")
)

Functions

func GenerateProvidersMetaJSON

func GenerateProvidersMetaJSON(version string, providersMetaList []core.MetaInfo) (string, error)

func GetAllProvidersMeta

func GetAllProvidersMeta() []core.MetaInfo

func NewAWSSSM

func NewAWSSSM(logger logging.Logger) (core.Provider, error)

func NewAWSSecretsManager

func NewAWSSecretsManager(logger logging.Logger) (core.Provider, error)

func NewAnsibleVault

func NewAnsibleVault(logger logging.Logger) (core.Provider, error)

NewAnsibleVault creates new provider instance

func NewAzureKeyVault

func NewAzureKeyVault(logger logging.Logger) (core.Provider, error)

func NewCloudflareClient

func NewCloudflareClient(logger logging.Logger) (core.Provider, error)

func NewCloudflareSecretsClient

func NewCloudflareSecretsClient(logger logging.Logger) (core.Provider, error)

func NewConjurClient

func NewConjurClient(logger logging.Logger) (core.Provider, error)

func NewConsul

func NewConsul(logger logging.Logger) (core.Provider, error)

func NewDoppler

func NewDoppler(logger logging.Logger) (core.Provider, error)

func NewDotenv

func NewDotenv(logger logging.Logger) (core.Provider, error)

func NewEtcd

func NewEtcd(logger logging.Logger) (core.Provider, error)

func NewFileSystem

func NewFileSystem(logger logging.Logger) (core.Provider, error)

NewFileSystem creates new provider instance

func NewGitHub

func NewGitHub(logger logging.Logger) (core.Provider, error)

func NewGoogleSecretManager

func NewGoogleSecretManager(logger logging.Logger) (core.Provider, error)

func NewGopass

func NewGopass(logger logging.Logger) (core.Provider, error)

func NewHashicorpVault

func NewHashicorpVault(logger logging.Logger) (core.Provider, error)

func NewHeroku

func NewHeroku(logger logging.Logger) (core.Provider, error)

func NewKeeperSecretsManager

func NewKeeperSecretsManager(logger logging.Logger) (core.Provider, error)

func NewKeyPass

func NewKeyPass(logger logging.Logger) (core.Provider, error)

NewKeyPass creates new provider instance

func NewLastPass

func NewLastPass(logger logging.Logger) (core.Provider, error)

func NewOnePassword

func NewOnePassword(logger logging.Logger) (core.Provider, error)

func NewProcessEnv

func NewProcessEnv(logger logging.Logger) (core.Provider, error)

NewProcessEnv creates new provider instance

func NewVercel

func NewVercel(logger logging.Logger) (core.Provider, error)

func RegisterProvider

func RegisterProvider(metaInfo core.MetaInfo, builder func(logger logging.Logger) (core.Provider, error))

func ResolveProvider

func ResolveProvider(providerName string) (core.Provider, error)

func ResolveProviderMeta

func ResolveProviderMeta(providerName string) (core.MetaInfo, error)

Types

type AWSSSM

type AWSSSM struct {
	// contains filtered or unexported fields
}

func (*AWSSSM) Delete

func (a *AWSSSM) Delete(kp core.KeyPath) error

func (*AWSSSM) DeleteMapping

func (a *AWSSSM) DeleteMapping(kp core.KeyPath) error

func (*AWSSSM) Get

func (a *AWSSSM) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*AWSSSM) GetMapping

func (a *AWSSSM) GetMapping(kp core.KeyPath) ([]core.EnvEntry, error)

func (*AWSSSM) Put

func (a *AWSSSM) Put(kp core.KeyPath, val string) error

func (*AWSSSM) PutMapping

func (a *AWSSSM) PutMapping(kp core.KeyPath, m map[string]string) error

type AWSSSMClient

type AWSSSMClient interface {
	GetParameter(ctx context.Context, params *ssm.GetParameterInput, optFns ...func(*ssm.Options)) (*ssm.GetParameterOutput, error)
	PutParameter(ctx context.Context, params *ssm.PutParameterInput, optFns ...func(*ssm.Options)) (*ssm.PutParameterOutput, error)
	DeleteParameter(ctx context.Context, params *ssm.DeleteParameterInput, optFns ...func(*ssm.Options)) (*ssm.DeleteParameterOutput, error)
}

type AWSSecretsManager

type AWSSecretsManager struct {
	// contains filtered or unexported fields
}

func (*AWSSecretsManager) Delete

func (a *AWSSecretsManager) Delete(kp core.KeyPath) error

func (*AWSSecretsManager) DeleteMapping

func (a *AWSSecretsManager) DeleteMapping(kp core.KeyPath) error

func (*AWSSecretsManager) Get

func (*AWSSecretsManager) GetMapping

func (a *AWSSecretsManager) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*AWSSecretsManager) Put

func (a *AWSSecretsManager) Put(kp core.KeyPath, val string) error

func (*AWSSecretsManager) PutMapping

func (a *AWSSecretsManager) PutMapping(kp core.KeyPath, m map[string]string) error

type AnsibleVault

type AnsibleVault struct {
	// contains filtered or unexported fields
}

func (*AnsibleVault) Delete

func (a *AnsibleVault) Delete(kp core.KeyPath) error

Delete will delete entry

func (*AnsibleVault) DeleteMapping

func (a *AnsibleVault) DeleteMapping(kp core.KeyPath) error

DeleteMapping will delete the given path recessively

func (*AnsibleVault) Get

func (a *AnsibleVault) Get(p core.KeyPath) (*core.EnvEntry, error)

Get returns a single entry

func (*AnsibleVault) GetMapping

func (a *AnsibleVault) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

GetMapping returns a multiple entries

func (*AnsibleVault) Name

func (a *AnsibleVault) Name() string

Name return the provider name

func (*AnsibleVault) Put

func (a *AnsibleVault) Put(p core.KeyPath, val string) error

Put will create a new single entry

func (*AnsibleVault) PutMapping

func (a *AnsibleVault) PutMapping(p core.KeyPath, m map[string]string) error

PutMapping will create a multiple entries

type AnsibleVaultClient

type AnsibleVaultClient interface {
	Read(p string) (map[string]string, error)
}

type AnsibleVaultReader

type AnsibleVaultReader struct {
	// contains filtered or unexported fields
}

func (AnsibleVaultReader) Read

func (a AnsibleVaultReader) Read(p string) (map[string]string, error)

type AzureKeyVault

type AzureKeyVault struct {
	// contains filtered or unexported fields
}

func (*AzureKeyVault) Delete

func (a *AzureKeyVault) Delete(kp core.KeyPath) error

func (*AzureKeyVault) DeleteMapping

func (a *AzureKeyVault) DeleteMapping(kp core.KeyPath) error

func (*AzureKeyVault) Get

func (a *AzureKeyVault) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*AzureKeyVault) GetMapping

func (a *AzureKeyVault) GetMapping(kp core.KeyPath) ([]core.EnvEntry, error)

func (*AzureKeyVault) Name

func (a *AzureKeyVault) Name() string

func (*AzureKeyVault) Put

func (a *AzureKeyVault) Put(p core.KeyPath, val string) error

func (*AzureKeyVault) PutMapping

func (a *AzureKeyVault) PutMapping(p core.KeyPath, m map[string]string) error

type AzureKeyVaultClient

type AzureKeyVaultClient interface {
	SetSecret(ctx context.Context, vaultBaseURL string, secretName string, parameters keyvault.SecretSetParameters) (result keyvault.SecretBundle, err error)
	GetSecret(ctx context.Context, vaultBaseURL string, secretName string, secretVersion string) (result keyvault.SecretBundle, err error)
	GetSecrets(ctx context.Context, vaultBaseURL string, maxresults *int32) (result keyvault.SecretListResultPage, err error)
	DeleteSecret(ctx context.Context, vaultBaseURL string, secretName string) (result keyvault.DeletedSecretBundle, err error)
}

type CellarExport

type CellarExport struct {
	Version   string                   `json:"version"`
	Providers map[string]core.MetaInfo `json:"providers"`
}

type Cloudflare

type Cloudflare struct {
	// contains filtered or unexported fields
}

func (*Cloudflare) Delete

func (c *Cloudflare) Delete(kp core.KeyPath) error

func (*Cloudflare) DeleteMapping

func (c *Cloudflare) DeleteMapping(kp core.KeyPath) error

func (*Cloudflare) Get

func (c *Cloudflare) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*Cloudflare) GetMapping

func (c *Cloudflare) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*Cloudflare) Put

func (c *Cloudflare) Put(p core.KeyPath, val string) error

func (*Cloudflare) PutMapping

func (c *Cloudflare) PutMapping(p core.KeyPath, m map[string]string) error

type CloudflareClient

type CloudflareClient interface {
	WriteWorkersKV(ctx context.Context, namespaceID, key string, value []byte) (cloudflare.Response, error)
	WriteWorkersKVBulk(ctx context.Context, namespaceID string, kvs cloudflare.WorkersKVBulkWriteRequest) (cloudflare.Response, error)
	ReadWorkersKV(ctx context.Context, namespaceID string, key string) ([]byte, error)
	ListWorkersKVs(ctx context.Context, namespaceID string) (cloudflare.ListStorageKeysResponse, error)
}

type CloudflareSecrets

type CloudflareSecrets struct {
	// contains filtered or unexported fields
}

func (*CloudflareSecrets) Delete

func (c *CloudflareSecrets) Delete(p core.KeyPath) error

func (*CloudflareSecrets) DeleteMapping

func (c *CloudflareSecrets) DeleteMapping(kp core.KeyPath) error

func (*CloudflareSecrets) Get

func (*CloudflareSecrets) GetMapping

func (c *CloudflareSecrets) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*CloudflareSecrets) Put

func (c *CloudflareSecrets) Put(p core.KeyPath, val string) error

func (*CloudflareSecrets) PutMapping

func (c *CloudflareSecrets) PutMapping(p core.KeyPath, m map[string]string) error

type CloudflareSecretsClient

type CloudflareSecretsClient interface {
	SetWorkersSecret(ctx context.Context, script string, req *cloudflare.WorkersPutSecretRequest) (cloudflare.WorkersPutSecretResponse, error)
	DeleteWorkersSecret(ctx context.Context, script, secretName string) (cloudflare.Response, error)
}

type ConjurClient

type ConjurClient interface {
	AddSecret(variableID string, secretValue string) error
	RetrieveSecret(variableID string) ([]byte, error)
}

type Consul

type Consul struct {
	// contains filtered or unexported fields
}

func (*Consul) Delete

func (a *Consul) Delete(kp core.KeyPath) error

func (*Consul) DeleteMapping

func (a *Consul) DeleteMapping(kp core.KeyPath) error

func (*Consul) Get

func (a *Consul) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*Consul) GetMapping

func (a *Consul) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*Consul) Put

func (a *Consul) Put(p core.KeyPath, val string) error

func (*Consul) PutMapping

func (a *Consul) PutMapping(p core.KeyPath, m map[string]string) error

type ConsulClient

type ConsulClient interface {
	Get(key string, q *api.QueryOptions) (*api.KVPair, *api.QueryMeta, error)
	List(prefix string, q *api.QueryOptions) (api.KVPairs, *api.QueryMeta, error)
	Put(p *api.KVPair, q *api.WriteOptions) (*api.WriteMeta, error)
}

type CyberArkConjur

type CyberArkConjur struct {
	// contains filtered or unexported fields
}

func (*CyberArkConjur) Delete

func (c *CyberArkConjur) Delete(kp core.KeyPath) error

func (*CyberArkConjur) DeleteMapping

func (c *CyberArkConjur) DeleteMapping(kp core.KeyPath) error

func (*CyberArkConjur) Get

func (c *CyberArkConjur) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*CyberArkConjur) GetMapping

func (c *CyberArkConjur) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*CyberArkConjur) Put

func (c *CyberArkConjur) Put(p core.KeyPath, val string) error

func (*CyberArkConjur) PutMapping

func (c *CyberArkConjur) PutMapping(p core.KeyPath, m map[string]string) error

type Doppler

type Doppler struct {
	// contains filtered or unexported fields
}

func (*Doppler) Delete

func (h *Doppler) Delete(kp core.KeyPath) error

func (*Doppler) DeleteMapping

func (h *Doppler) DeleteMapping(kp core.KeyPath) error

func (*Doppler) Get

func (h *Doppler) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*Doppler) GetMapping

func (h *Doppler) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*Doppler) Put

func (h *Doppler) Put(p core.KeyPath, val string) error

func (*Doppler) PutMapping

func (h *Doppler) PutMapping(p core.KeyPath, m map[string]string) error

type DopplerClient

type DopplerClient interface {
	GetSecrets(host string, verifyTLS bool, apiKey string, project string, config string) ([]byte, http.Error)
}

type DotEnvClient

type DotEnvClient interface {
	Read(p string) (map[string]string, error)
	Write(p string, kvs map[string]string) error
	Exists(p string) (bool, error)
	Delete(p string) error
}

type DotEnvReader

type DotEnvReader struct {
}

func (*DotEnvReader) Delete

func (d *DotEnvReader) Delete(p string) error

func (*DotEnvReader) Exists

func (d *DotEnvReader) Exists(p string) (bool, error)

func (*DotEnvReader) Read

func (d *DotEnvReader) Read(p string) (map[string]string, error)

func (*DotEnvReader) Write

func (d *DotEnvReader) Write(p string, kvs map[string]string) error

type Dotenv

type Dotenv struct {
	// contains filtered or unexported fields
}

func (*Dotenv) Delete

func (a *Dotenv) Delete(kp core.KeyPath) error

func (*Dotenv) DeleteMapping

func (a *Dotenv) DeleteMapping(kp core.KeyPath) error

func (*Dotenv) Get

func (a *Dotenv) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*Dotenv) GetMapping

func (a *Dotenv) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*Dotenv) Put

func (a *Dotenv) Put(p core.KeyPath, val string) error

func (*Dotenv) PutMapping

func (a *Dotenv) PutMapping(kp core.KeyPath, m map[string]string) error

type Etcd

type Etcd struct {
	// contains filtered or unexported fields
}

func (*Etcd) Delete

func (a *Etcd) Delete(kp core.KeyPath) error

func (*Etcd) DeleteMapping

func (a *Etcd) DeleteMapping(kp core.KeyPath) error

func (*Etcd) Get

func (a *Etcd) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*Etcd) GetMapping

func (a *Etcd) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*Etcd) Put

func (a *Etcd) Put(p core.KeyPath, val string) error

func (*Etcd) PutMapping

func (a *Etcd) PutMapping(p core.KeyPath, m map[string]string) error

type EtcdClient

type EtcdClient interface {
	Get(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error)
	Put(ctx context.Context, key, val string, opts ...clientv3.OpOption) (*clientv3.PutResponse, error)
}

type FileSystem

type FileSystem struct {
	// contains filtered or unexported fields
}

func (*FileSystem) Delete

func (f *FileSystem) Delete(kp core.KeyPath) error

Delete will delete entry

func (*FileSystem) DeleteMapping

func (f *FileSystem) DeleteMapping(kp core.KeyPath) error

DeleteMapping will delete the given path

func (*FileSystem) Get

func (f *FileSystem) Get(p core.KeyPath) (*core.EnvEntry, error)

Get returns a single entry

func (*FileSystem) GetMapping

func (f *FileSystem) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

GetMapping returns a multiple entries

func (*FileSystem) IsText

func (f *FileSystem) IsText(s []byte) bool

func (*FileSystem) Put

func (f *FileSystem) Put(p core.KeyPath, val string) error

Put will create a new single entry

func (*FileSystem) PutMapping

func (f *FileSystem) PutMapping(p core.KeyPath, m map[string]string) error

PutMapping will create a multiple entries

type GitHub

type GitHub struct {
	// contains filtered or unexported fields
}

func (*GitHub) Delete

func (g *GitHub) Delete(p core.KeyPath) error

func (*GitHub) DeleteMapping

func (g *GitHub) DeleteMapping(p core.KeyPath) error

func (*GitHub) Get

func (g *GitHub) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*GitHub) GetMapping

func (g *GitHub) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*GitHub) Put

func (g *GitHub) Put(p core.KeyPath, val string) error

func (*GitHub) PutMapping

func (g *GitHub) PutMapping(p core.KeyPath, m map[string]string) error

type GitHubActionClient

type GitHubActionClient interface {
	GetRepoPublicKey(ctx context.Context, owner, repo string) (*github.PublicKey, *github.Response, error)
	CreateOrUpdateRepoSecret(ctx context.Context, owner, repo string, eSecret *github.EncryptedSecret) (*github.Response, error)
	DeleteRepoSecret(ctx context.Context, owner, repo, name string) (*github.Response, error)
	ListRepoSecrets(ctx context.Context, owner, repo string, opts *github.ListOptions) (*github.Secrets, *github.Response, error)
}

GitHubActionClient describe the GitHub action client

type GoogleSMClient

type GoogleSMClient interface {
	AccessSecretVersion(ctx context.Context, req *secretmanagerpb.AccessSecretVersionRequest, opts ...gax.CallOption) (*secretmanagerpb.AccessSecretVersionResponse, error)
	DestroySecretVersion(ctx context.Context, req *secretmanagerpb.DestroySecretVersionRequest, opts ...gax.CallOption) (*secretmanagerpb.SecretVersion, error)
	ListSecrets(ctx context.Context, in *secretmanagerpb.ListSecretsRequest, opts ...gax.CallOption) *secretmanager.SecretIterator
	AddSecretVersion(ctx context.Context, req *secretmanagerpb.AddSecretVersionRequest, opts ...gax.CallOption) (*secretmanagerpb.SecretVersion, error)
}

type GoogleSecretManager

type GoogleSecretManager struct {
	// contains filtered or unexported fields
}

func (*GoogleSecretManager) Delete

func (a *GoogleSecretManager) Delete(kp core.KeyPath) error

func (*GoogleSecretManager) DeleteMapping

func (a *GoogleSecretManager) DeleteMapping(kp core.KeyPath) error

func (*GoogleSecretManager) Get

func (*GoogleSecretManager) GetMapping

func (a *GoogleSecretManager) GetMapping(kp core.KeyPath) ([]core.EnvEntry, error)

func (*GoogleSecretManager) Put

func (a *GoogleSecretManager) Put(p core.KeyPath, val string) error

func (*GoogleSecretManager) PutMapping

func (a *GoogleSecretManager) PutMapping(p core.KeyPath, m map[string]string) error

type Gopass

type Gopass struct {
	// contains filtered or unexported fields
}

func (*Gopass) Delete

func (g *Gopass) Delete(kp core.KeyPath) error

func (*Gopass) DeleteMapping

func (g *Gopass) DeleteMapping(kp core.KeyPath) error

func (*Gopass) Get

func (g *Gopass) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*Gopass) GetMapping

func (g *Gopass) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*Gopass) Put

func (g *Gopass) Put(p core.KeyPath, val string) error

func (*Gopass) PutMapping

func (g *Gopass) PutMapping(p core.KeyPath, m map[string]string) error

type GopassClient

type GopassClient interface {
	List(ctx context.Context) ([]string, error)
	Get(ctx context.Context, name, revision string) (gopass.Secret, error)
	Set(ctx context.Context, name string, sec gopass.Byter) error
}

type HashicorpClient

type HashicorpClient interface {
	Read(path string) (*api.Secret, error)
	Write(path string, data map[string]interface{}) (*api.Secret, error)
}

type HashicorpVault

type HashicorpVault struct {
	// contains filtered or unexported fields
}

func (*HashicorpVault) Delete

func (h *HashicorpVault) Delete(kp core.KeyPath) error

func (*HashicorpVault) DeleteMapping

func (h *HashicorpVault) DeleteMapping(kp core.KeyPath) error

func (*HashicorpVault) Get

func (h *HashicorpVault) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*HashicorpVault) GetMapping

func (h *HashicorpVault) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*HashicorpVault) Put

func (h *HashicorpVault) Put(p core.KeyPath, val string) error

func (*HashicorpVault) PutMapping

func (h *HashicorpVault) PutMapping(p core.KeyPath, m map[string]string) error

type Heroku

type Heroku struct {
	// contains filtered or unexported fields
}

func (*Heroku) Delete

func (h *Heroku) Delete(kp core.KeyPath) error

func (*Heroku) DeleteMapping

func (h *Heroku) DeleteMapping(kp core.KeyPath) error

func (*Heroku) Get

func (h *Heroku) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*Heroku) GetMapping

func (h *Heroku) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*Heroku) Put

func (h *Heroku) Put(p core.KeyPath, val string) error

func (*Heroku) PutMapping

func (h *Heroku) PutMapping(p core.KeyPath, m map[string]string) error

type HerokuClient

type HerokuClient interface {
	ConfigVarInfoForApp(ctx context.Context, appIdentity string) (heroku.ConfigVarInfoForAppResult, error)
	ConfigVarUpdate(ctx context.Context, appIdentity string, o map[string]*string) (heroku.ConfigVarUpdateResult, error)
}

type KeeperSecretsManager

type KeeperSecretsManager struct {
	// contains filtered or unexported fields
}

func (*KeeperSecretsManager) Delete

func (k *KeeperSecretsManager) Delete(kp core.KeyPath) error

func (*KeeperSecretsManager) DeleteMapping

func (k *KeeperSecretsManager) DeleteMapping(kp core.KeyPath) error

func (*KeeperSecretsManager) Get

func (*KeeperSecretsManager) GetMapping

func (k *KeeperSecretsManager) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*KeeperSecretsManager) Name

func (k *KeeperSecretsManager) Name() string

func (*KeeperSecretsManager) Put

func (k *KeeperSecretsManager) Put(p core.KeyPath, val string) error

func (*KeeperSecretsManager) PutMapping

func (k *KeeperSecretsManager) PutMapping(p core.KeyPath, m map[string]string) error

type KeyPass

type KeyPass struct {
	// contains filtered or unexported fields
}

func (*KeyPass) Delete

func (k *KeyPass) Delete(kp core.KeyPath) error

Delete will delete entry

func (*KeyPass) DeleteMapping

func (k *KeyPass) DeleteMapping(kp core.KeyPath) error

DeleteMapping will delete the given path recessively

func (*KeyPass) Get

func (k *KeyPass) Get(p core.KeyPath) (*core.EnvEntry, error)

Get returns a single entry

func (*KeyPass) GetMapping

func (k *KeyPass) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

GetMapping returns a multiple entries

func (*KeyPass) Put

func (k *KeyPass) Put(p core.KeyPath, val string) error

Put will create a new single entry

func (*KeyPass) PutMapping

func (k *KeyPass) PutMapping(p core.KeyPath, m map[string]string) error

PutMapping will create a multiple entries

type KsmClient

type KsmClient interface {
	GetSecret(p core.KeyPath) (*core.EnvEntry, error)
	GetSecrets(p core.KeyPath) ([]core.EnvEntry, error)
}

func NewKsmClient

func NewKsmClient() (KsmClient, error)

type LastPass

type LastPass struct {
	// contains filtered or unexported fields
}

func (*LastPass) Delete

func (l *LastPass) Delete(kp core.KeyPath) error

func (*LastPass) DeleteMapping

func (l *LastPass) DeleteMapping(kp core.KeyPath) error

func (*LastPass) Get

func (l *LastPass) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*LastPass) GetMapping

func (l *LastPass) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*LastPass) Put

func (l *LastPass) Put(p core.KeyPath, val string) error

func (*LastPass) PutMapping

func (l *LastPass) PutMapping(p core.KeyPath, m map[string]string) error

type OnePassword

type OnePassword struct {
	// contains filtered or unexported fields
}

func (*OnePassword) Delete

func (o *OnePassword) Delete(kp core.KeyPath) error

func (*OnePassword) DeleteMapping

func (o *OnePassword) DeleteMapping(kp core.KeyPath) error

func (*OnePassword) Get

func (o *OnePassword) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*OnePassword) GetMapping

func (o *OnePassword) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*OnePassword) Put

func (o *OnePassword) Put(p core.KeyPath, val string) error

func (*OnePassword) PutMapping

func (o *OnePassword) PutMapping(p core.KeyPath, m map[string]string) error

type OnePasswordClient

type OnePasswordClient interface {
	GetItemByTitle(title, vaultUUID string) (*onepassword.Item, error)
	UpdateItem(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error)
}

type ProcessEnv

type ProcessEnv struct {
	// contains filtered or unexported fields
}

func (*ProcessEnv) Delete

func (a *ProcessEnv) Delete(kp core.KeyPath) error

Delete will delete entry

func (*ProcessEnv) DeleteMapping

func (a *ProcessEnv) DeleteMapping(kp core.KeyPath) error

DeleteMapping will delete the given path recessively

func (*ProcessEnv) Get

func (a *ProcessEnv) Get(p core.KeyPath) (*core.EnvEntry, error)

Get returns a single entry

func (*ProcessEnv) GetMapping

func (a *ProcessEnv) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

GetMapping returns a multiple entries

func (*ProcessEnv) Name

func (a *ProcessEnv) Name() string

Name return the provider name

func (*ProcessEnv) Put

func (a *ProcessEnv) Put(p core.KeyPath, val string) error

Put will create a new single entry

func (*ProcessEnv) PutMapping

func (a *ProcessEnv) PutMapping(p core.KeyPath, m map[string]string) error

PutMapping will create a multiple entries

type ResourceFilter

type ResourceFilter struct {
	Kind   string
	Search string
	Limit  int
	Offset int
}

type SecretsManagerClient

type SecretsManagerClient struct {
	// contains filtered or unexported fields
}

func (SecretsManagerClient) GetSecret

func (c SecretsManagerClient) GetSecret(p core.KeyPath) (*core.EnvEntry, error)

func (SecretsManagerClient) GetSecrets

func (c SecretsManagerClient) GetSecrets(p core.KeyPath) ([]core.EnvEntry, error)

type Vercel

type Vercel struct {
	// contains filtered or unexported fields
}

func (*Vercel) Delete

func (ve *Vercel) Delete(kp core.KeyPath) error

func (*Vercel) DeleteMapping

func (ve *Vercel) DeleteMapping(kp core.KeyPath) error

func (*Vercel) Get

func (ve *Vercel) Get(p core.KeyPath) (*core.EnvEntry, error)

func (*Vercel) GetMapping

func (ve *Vercel) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)

func (*Vercel) Put

func (ve *Vercel) Put(p core.KeyPath, val string) error

func (*Vercel) PutMapping

func (ve *Vercel) PutMapping(p core.KeyPath, m map[string]string) error

type VercelAPI

type VercelAPI struct {
	// contains filtered or unexported fields
}

func NewVercelAPI

func NewVercelAPI(token string) *VercelAPI

func (*VercelAPI) GetProject

func (v *VercelAPI) GetProject(path string) (map[string]*string, error)

type VercelClient

type VercelClient interface {
	GetProject(path string) (map[string]*string, error)
}

type VercelProject

type VercelProject struct {
	Env []struct {
		Key   string `json:"key"`
		Value string `json:"value"`
		Type  string `json:"type"`
	} `json:"env"`
}

Directories

Path Synopsis
Package mock_providers is a generated GoMock package.
Package mock_providers is a generated GoMock package.

Jump to

Keyboard shortcuts

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