gcli

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2017 License: MIT Imports: 16 Imported by: 1

Documentation

Overview

gRPC client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SequentialPayload

func SequentialPayload(n int64) []byte

Types

type ClientConfig

type ClientConfig struct {
	UseTLS bool

	// For when your VPN already provides encryption.
	SkipEncryption bool // turn off both SSH and TLS.

	AllowNewServer          bool // only give once to prevent MITM.
	TestAllowOneshotConnect bool
	CertPath                string
	KeyPath                 string
	ServerHost              string // ip address
	ServerPort              int
	ServerInternalHost      string // ip address
	ServerInternalPort      int
	ServerHostOverride      string

	Username             string
	PrivateKeyPath       string
	ClientKnownHostsPath string

	CpuProfilePath string
}

func (*ClientConfig) ClientSendFile

func (cfg *ClientConfig) ClientSendFile(path string, data []byte, isBcastSet bool, myID string) error

func (*ClientConfig) DefineFlags

func (c *ClientConfig) DefineFlags(fs *flag.FlagSet)

func (*ClientConfig) ValidateConfig

func (c *ClientConfig) ValidateConfig() error

Jump to

Keyboard shortcuts

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