management

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2017 License: MIT Imports: 11 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(conn net.Conn, handler ServerHandler, logger logrus.FieldLogger) Client

func (*Client) Run added in v0.7.0

func (cc *Client) Run() 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) (ServerHandlerCallback, error)

func (*DefaultHandler) SignRSA

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

type Server added in v0.7.0

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

func NewServer added in v0.7.0

func NewServer(handler ServerHandler, bindProtocol, bindAddress string, logger logrus.FieldLogger) Server

func (*Server) ManagementConfigValue added in v0.7.0

func (cs *Server) ManagementConfigValue() string

func (*Server) Start added in v0.7.0

func (cs *Server) Start() error

func (*Server) Stop added in v0.7.0

func (cs *Server) Stop() error

type ServerHandler added in v0.7.0

type ServerHandler interface {
	NeedCertificate(io.Writer, string) (ServerHandlerCallback, error)
	SignRSA(io.Writer, string) (ServerHandlerCallback, error)
}

type ServerHandlerCallback added in v0.7.0

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

func SuccessCallback added in v0.7.0

func SuccessCallback(_ io.Writer, data string) (ServerHandlerCallback, error)

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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