providers

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: Apache-2.0 Imports: 32 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 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

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

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

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

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

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

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

type DotEnvReader

type DotEnvReader struct {
}

func (*DotEnvReader) Read

func (d *DotEnvReader) Read(p string) (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

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

type EtcdClient

type EtcdClient interface {
	Get(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, 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

type HashicorpClient

type HashicorpClient interface {
	Read(path string) (*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

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)

LINTFIX: Extract this commonly somewhere nolint: dupl

func (*Heroku) Name

func (h *Heroku) Name() string

type HerokuClient

type HerokuClient interface {
	ConfigVarInfoForApp(ctx context.Context, appIdentity string) (heroku.ConfigVarInfoForAppResult, error)
}

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)

nolint: dupl

func (*Vercel) Name

func (ve *Vercel) Name() string

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