grpc

package
v0.0.0-...-4d19a26 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxMessageSize int = 100 * 1024 * 1024
)
View Source
const (
	PasskeyLength int = 32
)

Variables

View Source
var (
	NotSecure = errors.New("Need safe gRPC connect")
)

Functions

This section is empty.

Types

type Passkey

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

func NewPasskey

func NewPasskey() (*Passkey, error)

func PasskeyFromString

func PasskeyFromString(pk string) (*Passkey, error)

func (Passkey) Decrypt

func (pk Passkey) Decrypt(ciphertext []byte, hmactext []byte) ([]byte, error)

func (Passkey) Encrypt

func (pk Passkey) Encrypt(bs []byte) ([]byte, []byte, error)

func (Passkey) String

func (pk Passkey) String() string

type Server

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

func NewServer

func NewServer(
	dirs []string,
	addr string,
	enable bool,
	pluginManager plugins.Manager,
	log *logrus.Logger,
) *Server

func (Server) CertsUploadCommand

func (s Server) CertsUploadCommand(_ context.Context, c *commands.CertsUploadRequest) (*commands.ErrorReply, error)

func (Server) CheckTLS

func (s Server) CheckTLS() (grpc.ServerOption, error)

func (Server) GetPasskey

func (s Server) GetPasskey() string

func (Server) GetSecure

func (s Server) GetSecure() bool

func (Server) PluginGetCommand

func (s Server) PluginGetCommand(_ context.Context, c *commands.PluginGetRequest) (*commands.ErrorReply, error)

func (Server) PluginInstallCommand

func (s Server) PluginInstallCommand(ctx context.Context, c *commands.PluginInstallRequest) (*commands.ErrorReply, error)

func (Server) PluginListCommand

func (s Server) PluginListCommand(_ context.Context, _ *commands.PluginListRequest) (*commands.PluginListReply, error)

func (Server) PluginMetaCommand

func (s Server) PluginMetaCommand(_ context.Context, req *commands.PluginMetaRequest) (*commands.PluginMetaReply, error)

func (Server) PluginRemoveCommand

func (s Server) PluginRemoveCommand(_ context.Context, c *commands.PluginRemoveRequest) (*commands.ErrorReply, error)

func (Server) PluginUninstallCommand

func (s Server) PluginUninstallCommand(ctx context.Context, c *commands.PluginUninstallRequest) (*commands.ErrorReply, error)

func (Server) PluginUploadCommand

func (s Server) PluginUploadCommand(_ context.Context, c *commands.PluginUploadRequest) (*commands.ErrorReply, error)

func (*Server) Run

func (s *Server) Run() error

func (Server) SendPingCommand

func (s Server) SendPingCommand(_ context.Context, ping *commands.PingRequest) (*commands.PongReply, error)

func (*Server) SetCertificates

func (s *Server) SetCertificates(cert, key string)

func (*Server) Stop

func (s *Server) Stop()

type ToolChain

type ToolChain struct {
	InstallDependencies bool
	PluginDir           string
	// contains filtered or unexported fields
}

func SetupToolChain

func SetupToolChain() (*ToolChain, error)

func (ToolChain) Do

func (tc ToolChain) Do(path string) error

Jump to

Keyboard shortcuts

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