vault

package
v0.0.359 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 8 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 Certificate

type Certificate struct {
	BaseDomain string                `protobuf:"bytes,1,opt,name=base_domain,json=baseDomain,proto3" json:"base_domain,omitempty"`
	Ca         *CertificateAuthority `protobuf:"bytes,2,opt,name=ca,proto3" json:"ca,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) GetCa

func (x *Certificate) GetCa() *CertificateAuthority

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 CertificateAuthority

type CertificateAuthority struct {
	VaultAddress   string `protobuf:"bytes,1,opt,name=vault_address,json=vaultAddress,proto3" json:"vault_address,omitempty"`
	VaultNamespace string `protobuf:"bytes,2,opt,name=vault_namespace,json=vaultNamespace,proto3" json:"vault_namespace,omitempty"`
	Issuer         string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
	AuthMethod     string `protobuf:"bytes,4,opt,name=auth_method,json=authMethod,proto3" json:"auth_method,omitempty"`
	// contains filtered or unexported fields
}

func (*CertificateAuthority) Descriptor deprecated

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

Deprecated: Use CertificateAuthority.ProtoReflect.Descriptor instead.

func (*CertificateAuthority) GetAuthMethod

func (x *CertificateAuthority) GetAuthMethod() string

func (*CertificateAuthority) GetIssuer

func (x *CertificateAuthority) GetIssuer() string

func (*CertificateAuthority) GetVaultAddress

func (x *CertificateAuthority) GetVaultAddress() string

func (*CertificateAuthority) GetVaultNamespace

func (x *CertificateAuthority) GetVaultNamespace() string

func (*CertificateAuthority) ProtoMessage

func (*CertificateAuthority) ProtoMessage()

func (*CertificateAuthority) ProtoReflect

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

func (*CertificateAuthority) Reset

func (x *CertificateAuthority) Reset()

func (*CertificateAuthority) String

func (x *CertificateAuthority) String() string

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 Parse added in v0.0.359

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

func ParseFromEnv added in v0.0.359

func ParseFromEnv(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)

Jump to

Keyboard shortcuts

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