Help us shape the future of Go! Take the 2026 Go Developer Survey

v1

package
v0.89.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_credentials_v1_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Credentials

type Credentials struct {

	// Types that are assignable to Backend:
	//
	//	*Credentials_AwsSecretManager
	//	*Credentials_Vault_
	//	*Credentials_GcpSecretManager
	//	*Credentials_AzureKeyVault_
	Backend isCredentials_Backend `protobuf_oneof:"backend"`
	// prefix used while writing a new secret
	SecretPrefix string `protobuf:"bytes,4,opt,name=secret_prefix,json=secretPrefix,proto3" json:"secret_prefix,omitempty"`
	// contains filtered or unexported fields
}

Where the credentials to access the backends are stored

func (*Credentials) Descriptor deprecated

func (*Credentials) Descriptor() ([]byte, []int)

Deprecated: Use Credentials.ProtoReflect.Descriptor instead.

func (*Credentials) GetAwsSecretManager

func (x *Credentials) GetAwsSecretManager() *Credentials_AWSSecretManager

func (*Credentials) GetAzureKeyVault added in v0.21.0

func (x *Credentials) GetAzureKeyVault() *Credentials_AzureKeyVault

func (*Credentials) GetBackend

func (m *Credentials) GetBackend() isCredentials_Backend

func (*Credentials) GetGcpSecretManager

func (x *Credentials) GetGcpSecretManager() *Credentials_GCPSecretManager

func (*Credentials) GetSecretPrefix added in v0.16.1

func (x *Credentials) GetSecretPrefix() string

func (*Credentials) GetVault

func (x *Credentials) GetVault() *Credentials_Vault

func (*Credentials) ProtoMessage

func (*Credentials) ProtoMessage()

func (*Credentials) ProtoReflect

func (x *Credentials) ProtoReflect() protoreflect.Message

func (*Credentials) Reset

func (x *Credentials) Reset()

func (*Credentials) String

func (x *Credentials) String() string

type Credentials_AWSSecretManager

type Credentials_AWSSecretManager struct {
	Creds  *Credentials_AWSSecretManager_Creds `protobuf:"bytes,1,opt,name=creds,proto3" json:"creds,omitempty"`
	Region string                              `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
	// contains filtered or unexported fields
}

Top level is deprecated now

func (*Credentials_AWSSecretManager) Descriptor deprecated

func (*Credentials_AWSSecretManager) Descriptor() ([]byte, []int)

Deprecated: Use Credentials_AWSSecretManager.ProtoReflect.Descriptor instead.

func (*Credentials_AWSSecretManager) GetCreds

func (*Credentials_AWSSecretManager) GetRegion

func (x *Credentials_AWSSecretManager) GetRegion() string

func (*Credentials_AWSSecretManager) ProtoMessage

func (*Credentials_AWSSecretManager) ProtoMessage()

func (*Credentials_AWSSecretManager) ProtoReflect

func (*Credentials_AWSSecretManager) Reset

func (x *Credentials_AWSSecretManager) Reset()

func (*Credentials_AWSSecretManager) String

type Credentials_AWSSecretManager_Creds

type Credentials_AWSSecretManager_Creds struct {
	AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
	SecretKey string `protobuf:"bytes,2,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
	// contains filtered or unexported fields
}

func (*Credentials_AWSSecretManager_Creds) Descriptor deprecated

func (*Credentials_AWSSecretManager_Creds) Descriptor() ([]byte, []int)

Deprecated: Use Credentials_AWSSecretManager_Creds.ProtoReflect.Descriptor instead.

func (*Credentials_AWSSecretManager_Creds) GetAccessKey

func (x *Credentials_AWSSecretManager_Creds) GetAccessKey() string

func (*Credentials_AWSSecretManager_Creds) GetSecretKey

func (x *Credentials_AWSSecretManager_Creds) GetSecretKey() string

func (*Credentials_AWSSecretManager_Creds) ProtoMessage

func (*Credentials_AWSSecretManager_Creds) ProtoMessage()

func (*Credentials_AWSSecretManager_Creds) ProtoReflect

func (*Credentials_AWSSecretManager_Creds) Reset

func (*Credentials_AWSSecretManager_Creds) String

type Credentials_AwsSecretManager

type Credentials_AwsSecretManager struct {
	AwsSecretManager *Credentials_AWSSecretManager `protobuf:"bytes,1,opt,name=aws_secret_manager,json=awsSecretManager,proto3,oneof"`
}

type Credentials_AzureKeyVault added in v0.21.0

type Credentials_AzureKeyVault struct {

	// Active Directory Tenant ID
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// Registered application / service principal client ID
	ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// Registered application / service principal client secret
	ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	// Azure Key Vault URL
	VaultUri string `protobuf:"bytes,4,opt,name=vault_uri,json=vaultUri,proto3" json:"vault_uri,omitempty"`
	// contains filtered or unexported fields
}

func (*Credentials_AzureKeyVault) Descriptor deprecated added in v0.21.0

func (*Credentials_AzureKeyVault) Descriptor() ([]byte, []int)

Deprecated: Use Credentials_AzureKeyVault.ProtoReflect.Descriptor instead.

func (*Credentials_AzureKeyVault) GetClientId added in v0.21.0

func (x *Credentials_AzureKeyVault) GetClientId() string

func (*Credentials_AzureKeyVault) GetClientSecret added in v0.21.0

func (x *Credentials_AzureKeyVault) GetClientSecret() string

func (*Credentials_AzureKeyVault) GetTenantId added in v0.21.0

func (x *Credentials_AzureKeyVault) GetTenantId() string

func (*Credentials_AzureKeyVault) GetVaultUri added in v0.21.0

func (x *Credentials_AzureKeyVault) GetVaultUri() string

func (*Credentials_AzureKeyVault) ProtoMessage added in v0.21.0

func (*Credentials_AzureKeyVault) ProtoMessage()

func (*Credentials_AzureKeyVault) ProtoReflect added in v0.21.0

func (*Credentials_AzureKeyVault) Reset added in v0.21.0

func (x *Credentials_AzureKeyVault) Reset()

func (*Credentials_AzureKeyVault) String added in v0.21.0

func (x *Credentials_AzureKeyVault) String() string

type Credentials_AzureKeyVault_ added in v0.21.0

type Credentials_AzureKeyVault_ struct {
	AzureKeyVault *Credentials_AzureKeyVault `protobuf:"bytes,5,opt,name=azure_key_vault,json=azureKeyVault,proto3,oneof"`
}

type Credentials_GCPSecretManager

type Credentials_GCPSecretManager struct {

	// project number
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// path to service account key in json format
	ServiceAccountKey string `protobuf:"bytes,2,opt,name=service_account_key,json=serviceAccountKey,proto3" json:"service_account_key,omitempty"`
	// contains filtered or unexported fields
}

func (*Credentials_GCPSecretManager) Descriptor deprecated

func (*Credentials_GCPSecretManager) Descriptor() ([]byte, []int)

Deprecated: Use Credentials_GCPSecretManager.ProtoReflect.Descriptor instead.

func (*Credentials_GCPSecretManager) GetProjectId

func (x *Credentials_GCPSecretManager) GetProjectId() string

func (*Credentials_GCPSecretManager) GetServiceAccountKey

func (x *Credentials_GCPSecretManager) GetServiceAccountKey() string

func (*Credentials_GCPSecretManager) ProtoMessage

func (*Credentials_GCPSecretManager) ProtoMessage()

func (*Credentials_GCPSecretManager) ProtoReflect

func (*Credentials_GCPSecretManager) Reset

func (x *Credentials_GCPSecretManager) Reset()

func (*Credentials_GCPSecretManager) String

type Credentials_GcpSecretManager

type Credentials_GcpSecretManager struct {
	GcpSecretManager *Credentials_GCPSecretManager `protobuf:"bytes,3,opt,name=gcp_secret_manager,json=gcpSecretManager,proto3,oneof"`
}

type Credentials_Vault

type Credentials_Vault struct {

	// TODO: Use application role auth instead
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// Instance address, including port
	// i.e "http://127.0.0.1:8200"
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// mount path of the kv engine, default /secret
	MountPath string `protobuf:"bytes,3,opt,name=mount_path,json=mountPath,proto3" json:"mount_path,omitempty"`
	// contains filtered or unexported fields
}

func (*Credentials_Vault) Descriptor deprecated

func (*Credentials_Vault) Descriptor() ([]byte, []int)

Deprecated: Use Credentials_Vault.ProtoReflect.Descriptor instead.

func (*Credentials_Vault) GetAddress

func (x *Credentials_Vault) GetAddress() string

func (*Credentials_Vault) GetMountPath

func (x *Credentials_Vault) GetMountPath() string

func (*Credentials_Vault) GetToken

func (x *Credentials_Vault) GetToken() string

func (*Credentials_Vault) ProtoMessage

func (*Credentials_Vault) ProtoMessage()

func (*Credentials_Vault) ProtoReflect

func (x *Credentials_Vault) ProtoReflect() protoreflect.Message

func (*Credentials_Vault) Reset

func (x *Credentials_Vault) Reset()

func (*Credentials_Vault) String

func (x *Credentials_Vault) String() string

type Credentials_Vault_

type Credentials_Vault_ struct {
	Vault *Credentials_Vault `protobuf:"bytes,2,opt,name=vault,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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