pkiext_binary

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultPkiCluster

type VaultPkiCluster struct {
	Dns *dnstest.TestServer
	// contains filtered or unexported fields
}

func NewVaultPkiCluster

func NewVaultPkiCluster(t *testing.T) *VaultPkiCluster

func NewVaultPkiClusterWithDNS

func NewVaultPkiClusterWithDNS(t *testing.T) *VaultPkiCluster

func (*VaultPkiCluster) AddDNSRecord

func (vpc *VaultPkiCluster) AddDNSRecord(hostname, recordType, ip string) error

func (*VaultPkiCluster) AddHostname

func (vpc *VaultPkiCluster) AddHostname(hostname, ip string) error

func (*VaultPkiCluster) AddNameToHostFiles

func (vpc *VaultPkiCluster) AddNameToHostFiles(hostname, ip string) error

func (*VaultPkiCluster) Cleanup

func (vpc *VaultPkiCluster) Cleanup()

func (*VaultPkiCluster) CreateAcmeMount

func (vpc *VaultPkiCluster) CreateAcmeMount(mountName string) (*VaultPkiMount, error)

func (*VaultPkiCluster) CreateMount

func (vpc *VaultPkiCluster) CreateMount(name string) (*VaultPkiMount, error)

func (*VaultPkiCluster) GetActiveClusterNode

func (vpc *VaultPkiCluster) GetActiveClusterNode() *docker.DockerClusterNode

func (*VaultPkiCluster) GetActiveContainerHostPort

func (vpc *VaultPkiCluster) GetActiveContainerHostPort() string

func (*VaultPkiCluster) GetActiveContainerID

func (vpc *VaultPkiCluster) GetActiveContainerID() string

func (*VaultPkiCluster) GetActiveContainerIP

func (vpc *VaultPkiCluster) GetActiveContainerIP() string

func (*VaultPkiCluster) GetActiveNode

func (vpc *VaultPkiCluster) GetActiveNode() *api.Client

func (*VaultPkiCluster) GetContainerNetworkName

func (vpc *VaultPkiCluster) GetContainerNetworkName() string

func (*VaultPkiCluster) GetListenerCACertPEM

func (vpc *VaultPkiCluster) GetListenerCACertPEM() []byte

GetListenerCACertPEM returns the Vault cluster's PEM-encoded CA certificate.

func (*VaultPkiCluster) GetNonActiveNodes

func (vpc *VaultPkiCluster) GetNonActiveNodes() []*docker.DockerClusterNode

func (*VaultPkiCluster) RemoveAllDNSRecords

func (vpc *VaultPkiCluster) RemoveAllDNSRecords() error

func (*VaultPkiCluster) RemoveDNSRecord

func (vpc *VaultPkiCluster) RemoveDNSRecord(domain string, record string, value string) error

func (*VaultPkiCluster) RemoveDNSRecordsForDomain

func (vpc *VaultPkiCluster) RemoveDNSRecordsForDomain(domain string) error

func (*VaultPkiCluster) RemoveDNSRecordsOfTypeForDomain

func (vpc *VaultPkiCluster) RemoveDNSRecordsOfTypeForDomain(domain string, record string) error

type VaultPkiMount

type VaultPkiMount struct {
	*VaultPkiCluster
	// contains filtered or unexported fields
}

func (*VaultPkiMount) GenerateIntermediateInternal

func (vpm *VaultPkiMount) GenerateIntermediateInternal(props map[string]interface{}) (*api.Secret, error)

func (*VaultPkiMount) GenerateRootInternal

func (vpm *VaultPkiMount) GenerateRootInternal(props map[string]interface{}) (*api.Secret, error)

func (*VaultPkiMount) GetCACertPEM

func (vpm *VaultPkiMount) GetCACertPEM() (string, error)

GetCACertPEM retrieves the PKI mount's PEM-encoded CA certificate.

func (*VaultPkiMount) GetEabKey

func (vpm *VaultPkiMount) GetEabKey(acmeDirectory string) (string, string, error)

func (*VaultPkiMount) ImportBundle

func (vpm *VaultPkiMount) ImportBundle(pemBundle interface{}, props map[string]interface{}) (*api.Secret, error)

func (*VaultPkiMount) SignIntermediary

func (vpm *VaultPkiMount) SignIntermediary(signingIssuer string, csr interface{}, props map[string]interface{}) (*api.Secret, error)

func (*VaultPkiMount) UpdateAcmeConfig

func (vpm *VaultPkiMount) UpdateAcmeConfig(enable bool, config map[string]interface{}) error

func (*VaultPkiMount) UpdateClusterConfig

func (vpm *VaultPkiMount) UpdateClusterConfig(config map[string]interface{}) error

func (*VaultPkiMount) UpdateClusterConfigLocalAddr

func (vpm *VaultPkiMount) UpdateClusterConfigLocalAddr() (string, error)

func (*VaultPkiMount) UpdateDefaultIssuer

func (vpm *VaultPkiMount) UpdateDefaultIssuer(issuerId string, props map[string]interface{}) error

func (*VaultPkiMount) UpdateIssuer

func (vpm *VaultPkiMount) UpdateIssuer(issuerRef string, props map[string]interface{}) error

func (*VaultPkiMount) UpdateRole

func (vpm *VaultPkiMount) UpdateRole(roleName string, config map[string]interface{}) error

Jump to

Keyboard shortcuts

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