ca

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

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) APIHost

func (c *CA) APIHost(internal bool) string

APIHost returns the host (hostname:port) of the CA.

func (*CA) APIHostname

func (c *CA) APIHostname(internal bool) string

APIHostname returns the hostname of the CA.

func (*CA) APIPort

func (c *CA) APIPort(internal bool) int32

APIPort returns the API port of the CA.

func (*CA) APIURL

func (c *CA) APIURL(internal bool) *url.URL

APIURL returns the API URL of the CA.

func (*CA) EnableTLS added in v0.0.14

func (c *CA) EnableTLS(tls *identity.Identity)

EnableTLS enables TLS for this CA.

func (*CA) OperationsHost

func (c *CA) OperationsHost(internal bool) string

OperationsHost returns the host (hostname:port) of the CA.

func (*CA) OperationsHostname added in v0.0.14

func (c *CA) OperationsHostname(internal bool) string

OperationsHostname returns the hostname of the CA.

func (*CA) OperationsPort

func (c *CA) OperationsPort(internal bool) int32

OperationsPort returns the operations port of the CA.

func (*CA) OperationsURL

func (c *CA) OperationsURL(internal bool) *url.URL

OperationsURL returns the operations URL of the CA.

func (*CA) Organization

func (c *CA) Organization() *organization.Organization

Organization returns the organization of the CA.

func (*CA) Start

func (c *CA) Start(timeout time.Duration) error

Start starts the peer.

func (*CA) Stop

func (c *CA) Stop() error

Stop stops the peer.

func (*CA) TLS added in v0.0.14

func (c *CA) TLS() *identity.Identity

TLS gets the TLS identity for this 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.

func (*Connection) Enroll added in v0.0.2

func (c *Connection) Enroll(name, id, secret string) (*identity.Identity, error)

Enroll enrolls an identity using the certificate authority.

Jump to

Keyboard shortcuts

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