vault

package
v0.0.360 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_universe_vault_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AppRole added in v0.0.360

type AppRole struct {
	Name      string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	AuthMount string         `protobuf:"bytes,2,opt,name=auth_mount,json=authMount,proto3" json:"auth_mount,omitempty"`
	Provider  *VaultProvider `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
	// contains filtered or unexported fields
}

func (*AppRole) Descriptor deprecated added in v0.0.360

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

Deprecated: Use AppRole.ProtoReflect.Descriptor instead.

func (*AppRole) GetAuthMount added in v0.0.360

func (x *AppRole) GetAuthMount() string

func (*AppRole) GetName added in v0.0.360

func (x *AppRole) GetName() string

func (*AppRole) GetProvider added in v0.0.360

func (x *AppRole) GetProvider() *VaultProvider

func (*AppRole) ProtoMessage added in v0.0.360

func (*AppRole) ProtoMessage()

func (*AppRole) ProtoReflect added in v0.0.360

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

func (*AppRole) Reset added in v0.0.360

func (x *AppRole) Reset()

func (*AppRole) String added in v0.0.360

func (x *AppRole) String() string

type Certificate

type Certificate struct {
	BaseDomain string         `protobuf:"bytes,1,opt,name=base_domain,json=baseDomain,proto3" json:"base_domain,omitempty"`
	Issuer     string         `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
	Provider   *VaultProvider `protobuf:"bytes,4,opt,name=provider,proto3" json:"provider,omitempty"`
	// contains filtered or unexported fields
}

func (*Certificate) Descriptor deprecated

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

Deprecated: Use Certificate.ProtoReflect.Descriptor instead.

func (*Certificate) GetBaseDomain

func (x *Certificate) GetBaseDomain() string

func (*Certificate) GetIssuer added in v0.0.360

func (x *Certificate) GetIssuer() string

func (*Certificate) GetProvider added in v0.0.360

func (x *Certificate) GetProvider() *VaultProvider

func (*Certificate) ProtoMessage

func (*Certificate) ProtoMessage()

func (*Certificate) ProtoReflect

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

func (*Certificate) Reset

func (x *Certificate) Reset()

func (*Certificate) String

func (x *Certificate) String() string

type Credentials added in v0.0.360

type Credentials struct {
	RoleId   string `json:"role_id"`
	SecretId string `json:"secret_id"`

	VaultAddress   string `json:"vault_address"`
	VaultNamespace string `json:"vault_namespace"`
}

func ParseCredentials added in v0.0.360

func ParseCredentials(data []byte) (*Credentials, error)

func ParseCredentialsFromEnv added in v0.0.360

func ParseCredentialsFromEnv(key string) (*Credentials, error)

func (*Credentials) Encode added in v0.0.360

func (c *Credentials) Encode() ([]byte, error)

func (*Credentials) Login added in v0.0.360

func (c *Credentials) Login(ctx context.Context, options ...vault.ClientOption) (*vault.Client, error)

type TlsBundle added in v0.0.359

type TlsBundle struct {
	PrivateKeyPem  string   `json:"private_key_pem"`
	CertificatePem string   `json:"certificate_pem"`
	CaChainPem     []string `json:"ca_chain_pem"`
}

func ParseTlsBundle added in v0.0.360

func ParseTlsBundle(data []byte) (*TlsBundle, error)

func ParseTlsBundleFromEnv added in v0.0.360

func ParseTlsBundleFromEnv(key string) (*TlsBundle, error)

func (TlsBundle) CAPool added in v0.0.359

func (tb TlsBundle) CAPool() *x509.CertPool

func (TlsBundle) Certificate added in v0.0.359

func (tb TlsBundle) Certificate() (tls.Certificate, error)

func (TlsBundle) ClientConfig added in v0.0.359

func (tb TlsBundle) ClientConfig() (*tls.Config, error)

func (TlsBundle) Encode added in v0.0.359

func (tb TlsBundle) Encode() ([]byte, error)

func (TlsBundle) ServerConfig added in v0.0.359

func (tb TlsBundle) ServerConfig() (*tls.Config, error)

type VaultProvider added in v0.0.360

type VaultProvider struct {
	Address   string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	AuthMount string `protobuf:"bytes,3,opt,name=auth_mount,json=authMount,proto3" json:"auth_mount,omitempty"`
	// contains filtered or unexported fields
}

func (*VaultProvider) Descriptor deprecated added in v0.0.360

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

Deprecated: Use VaultProvider.ProtoReflect.Descriptor instead.

func (*VaultProvider) GetAddress added in v0.0.360

func (x *VaultProvider) GetAddress() string

func (*VaultProvider) GetAuthMount added in v0.0.360

func (x *VaultProvider) GetAuthMount() string

func (*VaultProvider) GetNamespace added in v0.0.360

func (x *VaultProvider) GetNamespace() string

func (*VaultProvider) ProtoMessage added in v0.0.360

func (*VaultProvider) ProtoMessage()

func (*VaultProvider) ProtoReflect added in v0.0.360

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

func (*VaultProvider) Reset added in v0.0.360

func (x *VaultProvider) Reset()

func (*VaultProvider) String added in v0.0.360

func (x *VaultProvider) String() string

Jump to

Keyboard shortcuts

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