profile

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func CreateManagerAndPrivateKey

func CreateManagerAndPrivateKey(client httpclient.Client, service string) (Manager, error)

func NewManager

func NewManager(client httpclient.Client, service string, privateKey *rsa.PrivateKey) Manager

func (*Manager) GetProfile

func (m *Manager) GetProfile() (Profile, error)

func (Manager) IsCertificateValid added in v0.6.0

func (m Manager) IsCertificateValid() bool

func (*Manager) Renew added in v0.3.0

func (m *Manager) Renew() error

func (Manager) Sign

func (m Manager) Sign(data []byte) ([]byte, error)

type Profile added in v0.3.0

type Profile struct {
	// contains filtered or unexported fields
}

func NewProfile added in v0.3.0

func NewProfile(baseConfig string, privateKey *rsa.PrivateKey, certificate []byte) Profile

func (Profile) BaseConfig added in v0.3.0

func (p Profile) BaseConfig() string

func (Profile) CertificatePEM added in v0.3.0

func (p Profile) CertificatePEM() []byte

func (Profile) ManagementConfig added in v0.3.0

func (p Profile) ManagementConfig(managementAddress string) string

func (Profile) StaticConfig added in v0.6.0

func (p Profile) StaticConfig() string

Jump to

Keyboard shortcuts

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