profile

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 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) IsExpired added in v0.3.0

func (m Manager) IsExpired() 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) FullConfig added in v0.3.0

func (p Profile) FullConfig() string

func (Profile) ManagementConfig added in v0.3.0

func (p Profile) ManagementConfig(managementAddress string) string

func (Profile) PrivateKeyPEM added in v0.3.0

func (p Profile) PrivateKeyPEM() []byte

Jump to

Keyboard shortcuts

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