Documentation ¶
Index ¶
- type CA
- func (c *CA) APIHost(internal bool) string
- func (c *CA) APIHostname(internal bool) string
- func (c *CA) APIPort(internal bool) int32
- func (c *CA) APIURL(internal bool) *url.URL
- func (c *CA) EnableTLS(tls *identity.Identity)
- func (c *CA) OperationsHost(internal bool) string
- func (c *CA) OperationsHostname(internal bool) string
- func (c *CA) OperationsPort(internal bool) int32
- func (c *CA) OperationsURL(internal bool) *url.URL
- func (c *CA) Organization() *organization.Organization
- func (c *CA) Start(timeout time.Duration) error
- func (c *CA) Stop() error
- func (c *CA) TLS() *identity.Identity
- type Connection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CA ¶
type CA struct {
// contains filtered or unexported fields
}
CA represents a loaded CA definition.
func New ¶
func New(organization *organization.Organization, directory string, apiPort int32, apiURL string, operationsPort int32, operationsURL string) (*CA, error)
New creates a new CA.
func (*CA) APIHostname ¶
APIHostname returns the hostname of the CA.
func (*CA) OperationsHost ¶
OperationsHost returns the host (hostname:port) of the CA.
func (*CA) OperationsHostname ¶ added in v0.0.14
OperationsHostname returns the hostname of the CA.
func (*CA) OperationsPort ¶
OperationsPort returns the operations port of the CA.
func (*CA) OperationsURL ¶
OperationsURL returns the operations URL of the CA.
func (*CA) Organization ¶
func (c *CA) Organization() *organization.Organization
Organization returns the organization of the CA.
type Connection ¶ added in v0.0.2
type Connection struct {
// contains filtered or unexported fields
}
Connection represents a connection to a certificate authority.
func Connect ¶ added in v0.0.2
func Connect(ca *CA) (*Connection, error)
Connect opens a connection to the certificate authority.
func (*Connection) Close ¶ added in v0.0.2
func (c *Connection) Close() error
Close closes the connection to the certificate authority.
Click to show internal directories.
Click to hide internal directories.