providers

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 58 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 added in v1.5.6

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

func GetAllProvidersMeta added in v1.5.6

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 NewAzureKeyVault

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

func NewCloudflareClient added in v1.4.0

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

func NewCloudflareSecretsClient added in v1.5.0

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

func NewConjurClient added in v1.4.0

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

func NewConsul

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

func NewDoppler added in v0.6.0

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 added in v1.5.1

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

NewFileSystem creates new provider instance

func NewGitHub added in v1.5.0

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

func NewGoogleSecretManager

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

func NewGopass added in v1.5.0

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 NewKeyPass added in v1.5.1

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

NewKeyPass creates new provider instance

func NewLastPass added in v1.5.0

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

func NewOnePassword added in v1.5.0

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

func NewProcessEnv added in v1.5.5

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 added in v1.5.6

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

func ResolveProvider added in v1.5.6

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

func ResolveProviderMeta added in v1.5.6

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

Types

type AWSSSM

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

func (*AWSSSM) Delete added in v1.5.0

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

func (*AWSSSM) DeleteMapping added in v1.5.0

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 added in v1.3.0

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

func (*AWSSSM) PutMapping added in v1.3.0

func (a *AWSSSM) PutMapping(p 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)
}

type AWSSecretsManager

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

func (*AWSSecretsManager) Delete added in v1.5.0

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

func (*AWSSecretsManager) DeleteMapping added in v1.5.0

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 added in v1.3.0

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

func (*AWSSecretsManager) PutMapping added in v1.3.0

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

type AzureKeyVault

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

func (*AzureKeyVault) Delete added in v1.5.0

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

func (*AzureKeyVault) DeleteMapping added in v1.5.0

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 added in v1.3.0

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

func (*AzureKeyVault) PutMapping added in v1.3.0

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

type AzureKeyVaultClient added in v1.5.1

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 Cloudflare added in v1.4.0

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

func (*Cloudflare) Delete added in v1.5.0

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

func (*Cloudflare) DeleteMapping added in v1.5.0

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

func (*Cloudflare) Get added in v1.4.0

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

func (*Cloudflare) GetMapping added in v1.4.0

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

func (*Cloudflare) Put added in v1.4.0

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

func (*Cloudflare) PutMapping added in v1.4.0

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

type CloudflareClient added in v1.4.0

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 added in v1.5.0

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

func (*CloudflareSecrets) Delete added in v1.5.0

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

func (*CloudflareSecrets) DeleteMapping added in v1.5.0

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

func (*CloudflareSecrets) Get added in v1.5.0

func (*CloudflareSecrets) GetMapping added in v1.5.0

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

func (*CloudflareSecrets) Put added in v1.5.0

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

func (*CloudflareSecrets) PutMapping added in v1.5.0

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

type CloudflareSecretsClient added in v1.5.0

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 added in v1.4.0

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 added in v1.5.0

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

func (*Consul) DeleteMapping added in v1.5.0

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 added in v1.3.0

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

func (*Consul) PutMapping added in v1.3.0

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 added in v1.4.0

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

func (*CyberArkConjur) Delete added in v1.5.0

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

func (*CyberArkConjur) DeleteMapping added in v1.5.0

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

func (*CyberArkConjur) Get added in v1.4.0

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

func (*CyberArkConjur) GetMapping added in v1.4.0

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

func (*CyberArkConjur) Put added in v1.4.0

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

func (*CyberArkConjur) PutMapping added in v1.4.0

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

type Doppler added in v0.6.0

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

func (*Doppler) Delete added in v1.5.0

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

func (*Doppler) DeleteMapping added in v1.5.0

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

func (*Doppler) Get added in v0.6.0

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

func (*Doppler) GetMapping added in v0.6.0

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

func (*Doppler) Put added in v1.3.0

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

func (*Doppler) PutMapping added in v1.3.0

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

type DopplerClient added in v0.6.0

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 added in v1.5.0

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

func (*DotEnvReader) Exists added in v1.5.0

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

func (*DotEnvReader) Read

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

func (*DotEnvReader) Write added in v1.3.0

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

type Dotenv

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

func (*Dotenv) Delete added in v1.5.0

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

func (*Dotenv) DeleteMapping added in v1.5.0

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 added in v1.3.0

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

func (*Dotenv) PutMapping added in v1.3.0

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 added in v1.5.0

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

func (*Etcd) DeleteMapping added in v1.5.0

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 added in v1.3.0

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

func (*Etcd) PutMapping added in v1.3.0

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 added in v1.5.1

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

func (*FileSystem) Delete added in v1.5.1

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

Delete will delete entry

func (*FileSystem) DeleteMapping added in v1.5.1

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

DeleteMapping will delete the given path

func (*FileSystem) Get added in v1.5.1

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

Get returns a single entry

func (*FileSystem) GetMapping added in v1.5.1

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

GetMapping returns a multiple entries

func (*FileSystem) IsText added in v1.5.1

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

func (*FileSystem) Put added in v1.5.1

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

Put will create a new single entry

func (*FileSystem) PutMapping added in v1.5.1

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

PutMapping will create a multiple entries

type GitHub added in v1.5.0

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

func (*GitHub) Delete added in v1.5.0

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

func (*GitHub) DeleteMapping added in v1.5.0

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

func (*GitHub) Get added in v1.5.0

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

func (*GitHub) GetMapping added in v1.5.0

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

func (*GitHub) Put added in v1.5.0

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

func (*GitHub) PutMapping added in v1.5.0

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

type GitHubActionClient added in v1.5.0

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 added in v1.5.0

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

func (*GoogleSecretManager) DeleteMapping added in v1.5.0

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 added in v1.3.0

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

func (*GoogleSecretManager) PutMapping added in v1.3.0

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

type Gopass added in v1.5.0

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

func (*Gopass) Delete added in v1.5.0

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

func (*Gopass) DeleteMapping added in v1.5.0

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

func (*Gopass) Get added in v1.5.0

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

func (*Gopass) GetMapping added in v1.5.0

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

func (*Gopass) Put added in v1.5.0

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

func (*Gopass) PutMapping added in v1.5.0

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

type GopassClient added in v1.5.0

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 added in v1.5.0

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

func (*HashicorpVault) DeleteMapping added in v1.5.0

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 added in v1.3.0

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

func (*HashicorpVault) PutMapping added in v1.3.0

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 added in v1.5.0

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

func (*Heroku) DeleteMapping added in v1.5.0

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 added in v1.3.0

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

func (*Heroku) PutMapping added in v1.3.0

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 KeyPass added in v1.5.1

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

func (*KeyPass) Delete added in v1.5.1

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

Delete will delete entry

func (*KeyPass) DeleteMapping added in v1.5.1

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

DeleteMapping will delete the given path recessively

func (*KeyPass) Get added in v1.5.1

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

Get returns a single entry

func (*KeyPass) GetMapping added in v1.5.1

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

GetMapping returns a multiple entries

func (*KeyPass) Put added in v1.5.1

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

Put will create a new single entry

func (*KeyPass) PutMapping added in v1.5.1

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

PutMapping will create a multiple entries

type LastPass added in v1.5.0

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

func (*LastPass) Delete added in v1.5.0

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

func (*LastPass) DeleteMapping added in v1.5.0

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

func (*LastPass) Get added in v1.5.0

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

func (*LastPass) GetMapping added in v1.5.0

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

func (*LastPass) Put added in v1.5.0

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

func (*LastPass) PutMapping added in v1.5.0

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

type OnePassword added in v1.5.0

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

func (*OnePassword) Delete added in v1.5.0

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

func (*OnePassword) DeleteMapping added in v1.5.0

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

func (*OnePassword) Get added in v1.5.0

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

func (*OnePassword) GetMapping added in v1.5.0

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

func (*OnePassword) Put added in v1.5.0

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

func (*OnePassword) PutMapping added in v1.5.0

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

type OnePasswordClient added in v1.5.0

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

type ProcessEnv added in v1.5.5

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

func (*ProcessEnv) Delete added in v1.5.5

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

Delete will delete entry

func (*ProcessEnv) DeleteMapping added in v1.5.5

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

DeleteMapping will delete the given path recessively

func (*ProcessEnv) Get added in v1.5.5

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

Get returns a single entry

func (*ProcessEnv) GetMapping added in v1.5.5

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

GetMapping returns a multiple entries

func (*ProcessEnv) Name added in v1.5.5

func (a *ProcessEnv) Name() string

Name return the provider name

func (*ProcessEnv) Put added in v1.5.5

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

Put will create a new single entry

func (*ProcessEnv) PutMapping added in v1.5.5

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

PutMapping will create a multiple entries

type ResourceFilter added in v1.4.0

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

type TellerExport added in v1.5.6

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

type Vercel

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

func (*Vercel) Delete added in v1.5.0

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

func (*Vercel) DeleteMapping added in v1.5.0

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 added in v1.3.0

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

func (*Vercel) PutMapping added in v1.3.0

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