Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostDomain ¶
HostDomain generates the host domain for a given public key.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client is a client for the nomad service that issues certificates and updates DNS records.
func NewClient ¶
func NewClient(hostKey types.PrivateKey) *Client
NewClient creates a new nomad client with the given host key.
func (*Client) IssueCertificate ¶
func (c *Client) IssueCertificate(ctx context.Context) (*rsa.PrivateKey, []*x509.Certificate, error)
IssueCertificate issues a new certificate for the host.
func (*Client) UpdateDNS ¶
func (c *Client) UpdateDNS(ctx context.Context, update UpdateDNSRequest, hostKey types.PrivateKey) (string, error)
UpdateDNS updates the DNS records for the host with the given IPv4 and/or IPv6 addresses. It returns the domain that was updated.
type UpdateDNSRequest ¶
An UpdateDNSRequest is a request to update DNS records
type UpdateDNSResponse ¶
type UpdateDNSResponse struct {
Domain string `json:"domain"` // the domain that was updated
}
An UpdateDNSResponse is the response from a DNS update request
Click to show internal directories.
Click to hide internal directories.