providers

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const AzureVaultDomain = "vault.azure.net"
View Source
const PROJECTS_ENDPOINT = "/projects"

nolint: golint,stylecheck

View Source
const VERCEL_API_BASE = "https://api.vercel.com/"

nolint: golint,stylecheck

Variables

This section is empty.

Functions

func NewAWSSSM

func NewAWSSSM() (core.Provider, error)

func NewAWSSecretsManager

func NewAWSSecretsManager() (core.Provider, error)

func NewAzureKeyVault

func NewAzureKeyVault() (core.Provider, error)

func NewCloudflareClient added in v1.4.0

func NewCloudflareClient() (core.Provider, error)

func NewConjurClient added in v1.4.0

func NewConjurClient() (core.Provider, error)

func NewConsul

func NewConsul() (core.Provider, error)

func NewDoppler added in v0.6.0

func NewDoppler() (core.Provider, error)

func NewDotenv

func NewDotenv() (core.Provider, error)

func NewEtcd

func NewEtcd() (core.Provider, error)

func NewGoogleSecretManager

func NewGoogleSecretManager() (core.Provider, error)

func NewHashicorpVault

func NewHashicorpVault() (core.Provider, error)

func NewHeroku

func NewHeroku() (core.Provider, error)

func NewVercel

func NewVercel() (core.Provider, error)

Types

type AWSSSM

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

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) Name

func (a *AWSSSM) Name() string

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) Get

func (*AWSSecretsManager) GetMapping

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

func (*AWSSecretsManager) Name

func (a *AWSSecretsManager) Name() string

func (*AWSSecretsManager) Put added in v1.3.0

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

func (*AWSSecretsManager) PutMapping added in v1.3.0

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

type AWSSecretsManagerClient

type AWSSecretsManagerClient interface {
	GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error)
}

build interface for the client, replace with this, in tests use literal constructor rig the mock inside

type AzureKeyVault

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

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

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

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

func (c *Cloudflare) Name() string

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 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) 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) Name

func (a *Consul) Name() string

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

func (c *CyberArkConjur) Name() string

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) 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) Name added in v0.6.0

func (h *Doppler) Name() string

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
}

type DotEnvReader

type DotEnvReader struct {
}

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) 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) Name

func (a *Dotenv) Name() string

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) 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) Name

func (a *Etcd) Name() string

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 GoogleSMClient

type GoogleSMClient interface {
	AccessSecretVersion(ctx context.Context, req *secretmanagerpb.AccessSecretVersionRequest, opts ...gax.CallOption) (*secretmanagerpb.AccessSecretVersionResponse, error)
}

type GoogleSecretManager

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

func (*GoogleSecretManager) Get

func (*GoogleSecretManager) GetMapping

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

func (*GoogleSecretManager) Name

func (a *GoogleSecretManager) Name() string

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 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) 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) Name

func (h *HashicorpVault) Name() string

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) 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) Name

func (h *Heroku) Name() string

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

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

type Vercel

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

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) Name

func (ve *Vercel) Name() string

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