profile

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultManager added in v0.7.0

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

func CreateManagerAndPrivateKey

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

func NewDefaultManager added in v0.7.0

func NewDefaultManager(client httpclient.Client, service string, privateKey *rsa.PrivateKey) DefaultManager

func (*DefaultManager) GetProfile added in v0.7.0

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

func (DefaultManager) IsCertificateValid added in v0.7.0

func (m DefaultManager) IsCertificateValid() bool

func (*DefaultManager) Renew added in v0.7.0

func (m *DefaultManager) Renew() error

func (DefaultManager) Sign added in v0.7.0

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

type Manager

type Manager interface {
	Sign(data []byte) ([]byte, error)
	GetProfile() (Profile, error)
	IsCertificateValid() bool
	Renew() 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, managementPasswordFile string) string

func (Profile) StaticConfig added in v0.6.0

func (p Profile) StaticConfig() string

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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