create

package
v2.1.153 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSParam

type AWSParam struct {
	IAMUsername     string
	S3Bucket        string
	S3Region        string
	S3Prefix        string
	TemplatesDir    string
	DynamoDBTable   string
	DynamoDBRegion  string
	KMSKeyID        string
	KMSRegion       string
	AccessKeyID     string
	SecretAccessKey string
	AutoCreate      bool
}

GKEParam encapsulates the parameters needed to create a Vault instance on AWS.

type AzureParam added in v2.1.140

type AzureParam struct {
	TenantID           string
	StorageAccountKey  string
	StorageAccountName string
	ContainerName      string
	VaultName          string
	KeyName            string
}

AzureParam encapsulates the parameters needed to create a Vault instance on AWS.

type GKEParam

type GKEParam struct {
	ProjectID      string
	Zone           string
	BucketName     string
	KeyringName    string
	KeyName        string
	RecreateBucket bool
}

GKEParam encapsulates the parameters needed to create a Vault instance on GKE.

type VaultCreationParam

type VaultCreationParam struct {
	VaultName            string
	ClusterName          string
	Namespace            string
	ServiceAccountName   string
	KubeProvider         string
	SecretsPathPrefix    string
	CreateCloudResources bool
	Boot                 bool
	BatchMode            bool
	VaultOperatorClient  versioned.Interface
	KubeClient           kubernetes.Interface
	VersionResolver      versionstream.VersionResolver
	FileHandles          util.IOFileHandles
	GKE                  *GKEParam
	AWS                  *AWSParam
	Azure                *AzureParam
}

VaultCreationParam encapsulates the parameters needed to create a Vault instance.

type VaultCreator

type VaultCreator interface {
	CreateOrUpdateVault(param VaultCreationParam) error
}

VaultCreator defines the interface to create and update Vault instances

func NewVaultCreator

func NewVaultCreator() VaultCreator

NewVaultCreator creates an instance of the default VaultCreator.

Jump to

Keyboard shortcuts

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