Documentation ¶
Index ¶
- type VaultPkiCluster
- func (vpc *VaultPkiCluster) AddDNSRecord(hostname, recordType, ip string) error
- func (vpc *VaultPkiCluster) AddHostname(hostname, ip string) error
- func (vpc *VaultPkiCluster) AddNameToHostFiles(hostname, ip string) error
- func (vpc *VaultPkiCluster) Cleanup()
- func (vpc *VaultPkiCluster) CreateAcmeMount(mountName string) (*VaultPkiMount, error)
- func (vpc *VaultPkiCluster) CreateMount(name string) (*VaultPkiMount, error)
- func (vpc *VaultPkiCluster) GetActiveClusterNode() *docker.DockerClusterNode
- func (vpc *VaultPkiCluster) GetActiveContainerHostPort() string
- func (vpc *VaultPkiCluster) GetActiveContainerID() string
- func (vpc *VaultPkiCluster) GetActiveContainerIP() string
- func (vpc *VaultPkiCluster) GetActiveNode() *api.Client
- func (vpc *VaultPkiCluster) GetContainerNetworkName() string
- func (vpc *VaultPkiCluster) GetListenerCACertPEM() []byte
- func (vpc *VaultPkiCluster) GetNonActiveNodes() []*docker.DockerClusterNode
- func (vpc *VaultPkiCluster) RemoveAllDNSRecords() error
- func (vpc *VaultPkiCluster) RemoveDNSRecord(domain string, record string, value string) error
- func (vpc *VaultPkiCluster) RemoveDNSRecordsForDomain(domain string) error
- func (vpc *VaultPkiCluster) RemoveDNSRecordsOfTypeForDomain(domain string, record string) error
- type VaultPkiMount
- func (vpm *VaultPkiMount) GenerateIntermediateInternal(props map[string]interface{}) (*api.Secret, error)
- func (vpm *VaultPkiMount) GenerateRootInternal(props map[string]interface{}) (*api.Secret, error)
- func (vpm *VaultPkiMount) GetCACertPEM() (string, error)
- func (vpm *VaultPkiMount) GetEabKey(acmeDirectory string) (string, string, error)
- func (vpm *VaultPkiMount) ImportBundle(pemBundle interface{}, props map[string]interface{}) (*api.Secret, error)
- func (vpm *VaultPkiMount) SignIntermediary(signingIssuer string, csr interface{}, props map[string]interface{}) (*api.Secret, error)
- func (vpm *VaultPkiMount) UpdateAcmeConfig(enable bool, config map[string]interface{}) error
- func (vpm *VaultPkiMount) UpdateClusterConfig(config map[string]interface{}) error
- func (vpm *VaultPkiMount) UpdateClusterConfigLocalAddr() (string, error)
- func (vpm *VaultPkiMount) UpdateDefaultIssuer(issuerId string, props map[string]interface{}) error
- func (vpm *VaultPkiMount) UpdateIssuer(issuerRef string, props map[string]interface{}) error
- func (vpm *VaultPkiMount) UpdateRole(roleName string, config map[string]interface{}) error
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 (*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
Click to show internal directories.
Click to hide internal directories.