Documentation ¶
Index ¶
- Constants
- func NewDefaultTypeList(config DefaultTypeListConfig) secret.TypeList
- type AmazonType
- type AzureStorageAccountType
- type AzureType
- type CloudflareType
- type DefaultTypeListConfig
- type DigitalOceanType
- type FnType
- type GenericType
- type GoogleType
- type HtpasswdType
- func (HtpasswdType) Definition() secret.TypeDefinition
- func (t HtpasswdType) Generate(_ uint, _ string, data map[string]string, _ []string) (map[string]string, error)
- func (HtpasswdType) Name() string
- func (t HtpasswdType) Process(data map[string]string) (map[string]string, error)
- func (t HtpasswdType) Validate(data map[string]string) error
- func (t HtpasswdType) ValidateNew(data map[string]string) (bool, error)
- type KubernetesType
- type PKEType
- func (t PKEType) Cleanup(organizationID uint, _ map[string]string, tags []string) error
- func (PKEType) Definition() secret.TypeDefinition
- func (t PKEType) Generate(organizationID uint, _ string, _ map[string]string, tags []string) (map[string]string, error)
- func (PKEType) Name() string
- func (t PKEType) Validate(_ map[string]string) error
- func (PKEType) ValidateNew(_ map[string]string) (bool, error)
- type PagerDutyType
- type PasswordType
- func (PasswordType) Definition() secret.TypeDefinition
- func (t PasswordType) Generate(_ uint, _ string, data map[string]string, _ []string) (map[string]string, error)
- func (PasswordType) Name() string
- func (t PasswordType) Validate(data map[string]string) error
- func (t PasswordType) ValidateNew(data map[string]string) (bool, error)
- type PkeSecreter
- type SSHType
- type SlackType
- type TLSType
- func (TLSType) Definition() secret.TypeDefinition
- func (t TLSType) Generate(_ uint, _ string, data map[string]string, _ []string) (map[string]string, error)
- func (TLSType) Name() string
- func (t TLSType) Validate(data map[string]string) error
- func (t TLSType) ValidateNew(data map[string]string) (bool, error)
- type VaultType
- type VsphereType
Constants ¶
View Source
const ( FieldAmazonRegion = "AWS_REGION" FieldAmazonAccessKeyId = "AWS_ACCESS_KEY_ID" FieldAmazonSecretAccessKey = "AWS_SECRET_ACCESS_KEY" )
View Source
const ( FieldAzureClientID = "AZURE_CLIENT_ID" FieldAzureClientSecret = "AZURE_CLIENT_SECRET" FieldAzureTenantID = "AZURE_TENANT_ID" FieldAzureSubscriptionID = "AZURE_SUBSCRIPTION_ID" )
View Source
const ( FieldAzureStorageAccount = "storageAccount" FieldAzureStorageAccountAccessKey = "accessKey" )
View Source
const ( FieldCloudflareApiKey = "CF_API_KEY" FieldCloudflareApiEmail = "CF_API_EMAIL" )
View Source
const ( FieldGoogleType = "type" FieldGoogleProjectId = "project_id" FieldGooglePrivateKeyId = "private_key_id" FieldGooglePrivateKey = "private_key" FieldGoogleClientEmail = "client_email" FieldGoogleClientId = "client_id" FieldGoogleAuthUri = "auth_uri" FieldGoogleTokenUri = "token_uri" FieldGoogleAuthX509Url = "auth_provider_x509_cert_url" FieldGoogleClientX509Url = "client_x509_cert_url" )
View Source
const ( FieldHtpasswdUsername = "username" FieldHtpasswdPassword = "password" FieldHtpasswdFile = "htpasswd" )
View Source
const ( FieldPasswordUsername = "username" FieldPasswordPassword = "password" )
View Source
const ( FieldPKECACert = "caCert" FieldPKECAKey = "caKey" FieldPKEKubernetesCACert = "kubernetesCaCert" FieldPKEKubernetesCAKey = "kubernetesCaKey" FieldPKEEtcdCACert = "etcdCaCert" FieldPKEEtcdCAKey = "etcdCaKey" FieldPKEFrontProxyCACert = "frontProxyCaCert" FieldPKEFrontProxyCAKey = "frontProxyCaKey" FieldPKESAPub = "saPub" FieldPKESAKey = "saKey" )
View Source
const ( FieldSSHUser = "user" FieldSSHIdentifier = "identifier" FieldSSHPublicKeyData = "public_key_data" FieldSSHPublicKeyFingerprint = "public_key_fingerprint" FieldSSHPrivateKeyData = "private_key_data" )
View Source
const ( FieldTLSHosts = "hosts" FieldTLSValidity = "validity" FieldTLSCACert = "caCert" FieldTLSCAKey = "caKey" FieldTLSServerKey = "serverKey" FieldTLSServerCert = "serverCert" FieldTLSClientKey = "clientKey" FieldTLSClientCert = "clientCert" FieldTLSPeerKey = "peerKey" FieldTLSPeerCert = "peerCert" )
View Source
const ( FieldVsphereURL = "url" FieldVsphereUser = "user" FieldVspherePassword = "password" FieldVsphereFingerprint = "fingerprint" FieldVsphereDatacenter = "datacenter" FieldVsphereDatastore = "datastore" FieldVsphereResourcePool = "resourcePool" FieldVsphereFolder = "folder" FieldVsphereDefaultNodeTemplate = "defaultNodeTemplate" )
View Source
const Amazon = "amazon"
View Source
const Azure = "azure"
View Source
const Cloudflare = "cloudflare"
View Source
const DigitalOcean = "digitalocean"
View Source
const (
FieldDigitalOceanToken = "DO_TOKEN"
)
View Source
const (
FieldFnMasterToken = "master_token"
)
View Source
const (
FieldKubernetesConfig = "K8Sconfig"
)
View Source
const (
FieldPagerDutyIntegrationKey = "integrationKey"
)
View Source
const (
FieldSlackApiUrl = "apiUrl"
)
View Source
const (
FieldVaultToken = "token"
)
View Source
const Fn = "fn"
View Source
const Generic = "generic"
View Source
const Google = "google"
View Source
const Htpasswd = "htpasswd"
View Source
const Kubernetes = "kubernetes"
View Source
const PKE = "pkecert"
View Source
const PagerDuty = "pagerduty"
View Source
const Password = "password"
View Source
const SSH = "ssh"
View Source
const Slack = "slack"
View Source
const TLS = "tls"
View Source
const Vault = "vault"
View Source
const Vsphere = "vsphere"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultTypeList ¶
func NewDefaultTypeList(config DefaultTypeListConfig) secret.TypeList
NewDefaultTypeList returns a TypeList with all default types.
Types ¶
type AmazonType ¶
type AmazonType struct { // Region is used for secret verification. Region string }
func (AmazonType) Definition ¶
func (AmazonType) Definition() secret.TypeDefinition
func (AmazonType) Name ¶
func (AmazonType) Name() string
type AzureStorageAccountType ¶
type AzureStorageAccountType struct{}
func (AzureStorageAccountType) Definition ¶
func (AzureStorageAccountType) Definition() secret.TypeDefinition
func (AzureStorageAccountType) Name ¶
func (AzureStorageAccountType) Name() string
func (AzureStorageAccountType) Public ¶
func (AzureStorageAccountType) Public() bool
type AzureType ¶
type AzureType struct{}
func (AzureType) Definition ¶
func (AzureType) Definition() secret.TypeDefinition
type CloudflareType ¶
type CloudflareType struct{}
func (CloudflareType) Definition ¶
func (CloudflareType) Definition() secret.TypeDefinition
func (CloudflareType) Name ¶
func (CloudflareType) Name() string
type DefaultTypeListConfig ¶
type DefaultTypeListConfig struct { AmazonRegion string TLSDefaultValidity time.Duration PkeSecreter PkeSecreter }
DefaultTypeListConfig contains the required configuration for the default type list.
type DigitalOceanType ¶
type DigitalOceanType struct{}
func (DigitalOceanType) Definition ¶
func (DigitalOceanType) Definition() secret.TypeDefinition
func (DigitalOceanType) Name ¶
func (DigitalOceanType) Name() string
type FnType ¶
type FnType struct{}
func (FnType) Definition ¶
func (FnType) Definition() secret.TypeDefinition
type GenericType ¶
type GenericType struct{}
func (GenericType) Definition ¶
func (GenericType) Definition() secret.TypeDefinition
func (GenericType) Name ¶
func (GenericType) Name() string
type GoogleType ¶
type GoogleType struct{}
func (GoogleType) Definition ¶
func (GoogleType) Definition() secret.TypeDefinition
func (GoogleType) Name ¶
func (GoogleType) Name() string
type HtpasswdType ¶
type HtpasswdType struct{}
func (HtpasswdType) Definition ¶
func (HtpasswdType) Definition() secret.TypeDefinition
func (HtpasswdType) Name ¶
func (HtpasswdType) Name() string
func (HtpasswdType) Validate ¶
func (t HtpasswdType) Validate(data map[string]string) error
Note: this will only require the username field.
func (HtpasswdType) ValidateNew ¶
func (t HtpasswdType) ValidateNew(data map[string]string) (bool, error)
type KubernetesType ¶
type KubernetesType struct{}
func (KubernetesType) Definition ¶
func (KubernetesType) Definition() secret.TypeDefinition
func (KubernetesType) Name ¶
func (KubernetesType) Name() string
type PKEType ¶
type PKEType struct {
PkeSecreter PkeSecreter
}
func (PKEType) Definition ¶
func (PKEType) Definition() secret.TypeDefinition
type PagerDutyType ¶
type PagerDutyType struct{}
func (PagerDutyType) Definition ¶
func (PagerDutyType) Definition() secret.TypeDefinition
func (PagerDutyType) Name ¶
func (PagerDutyType) Name() string
type PasswordType ¶
type PasswordType struct{}
func (PasswordType) Definition ¶
func (PasswordType) Definition() secret.TypeDefinition
func (PasswordType) Name ¶
func (PasswordType) Name() string
func (PasswordType) Validate ¶
func (t PasswordType) Validate(data map[string]string) error
Note: this will only require the username field.
func (PasswordType) ValidateNew ¶
func (t PasswordType) ValidateNew(data map[string]string) (bool, error)
type PkeSecreter ¶
type PkeSecreter interface { GeneratePkeSecret(organizationID uint, tags []string) (map[string]string, error) DeletePkeSecret(organizationID uint, tags []string) error }
PkeSecreter is a temporary interface for splitting the PKE secret generation/deletion code from the legacy secret store.
type SSHType ¶
type SSHType struct{}
func (SSHType) Definition ¶
func (SSHType) Definition() secret.TypeDefinition
type SlackType ¶
type SlackType struct{}
func (SlackType) Definition ¶
func (SlackType) Definition() secret.TypeDefinition
type TLSType ¶
func (TLSType) Definition ¶
func (TLSType) Definition() secret.TypeDefinition
type VaultType ¶
type VaultType struct{}
func (VaultType) Definition ¶
func (VaultType) Definition() secret.TypeDefinition
type VsphereType ¶
type VsphereType struct{}
func (VsphereType) Definition ¶
func (VsphereType) Definition() secret.TypeDefinition
func (VsphereType) Name ¶
func (VsphereType) Name() string
Source Files ¶
- type_amazon.go
- type_azure.go
- type_azure_storage_account.go
- type_cloudflare.go
- type_digitalocean.go
- type_fn.go
- type_generic.go
- type_google.go
- type_htpasswd.go
- type_kubernetes.go
- type_pagerduty.go
- type_password.go
- type_pke.go
- type_slack.go
- type_ssh.go
- type_tls.go
- type_vault.go
- type_vsphere.go
- types.go
- validation.go
Click to show internal directories.
Click to hide internal directories.