profile

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2017 License: MIT Imports: 12 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() (Settings, error)

func (Manager) Sign

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

type Settings

type Settings struct {
	Profile     string
	PrivateKey  *rsa.PrivateKey
	Certificate []byte
}

func (Settings) PrivateKeyPEM

func (s Settings) PrivateKeyPEM() []byte

func (Settings) String

func (s Settings) String() string

Jump to

Keyboard shortcuts

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