management

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(handler ClientHandler, bindProtocol, bindAddress string) Client

func (*Client) ManagementConfigValue

func (cs *Client) ManagementConfigValue() string

func (*Client) Start

func (cs *Client) Start() error

func (*Client) Stop

func (cs *Client) Stop() error

type ClientHandler

type ClientHandler interface {
	NeedCertificate(io.Writer, string) (ClientHandlerCallback, error)
	SignRSA(io.Writer, string) (ClientHandlerCallback, error)
}

type ClientHandlerCallback

type ClientHandlerCallback func(io.Writer, string) (ClientHandlerCallback, error)

func SimpleCallbackHandler

func SimpleCallbackHandler(_ io.Writer, data string) (ClientHandlerCallback, error)

type DefaultHandler

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

func NewDefaultHandler

func NewDefaultHandler(profileManager *profile.Manager) *DefaultHandler

func (*DefaultHandler) NeedCertificate

func (ch *DefaultHandler) NeedCertificate(w io.Writer, _ string) (ClientHandlerCallback, error)

func (*DefaultHandler) SignRSA

func (ch *DefaultHandler) SignRSA(w io.Writer, data string) (ClientHandlerCallback, error)

Jump to

Keyboard shortcuts

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