taskc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCreds

func CheckCreds(settings TaskSettings)

func Connect

func Connect(settings TaskSettings) *tls.Conn

func ParseResponse

func ParseResponse(resp []byte) taskResponse

func Pull

func Pull(conn *tls.Conn, credentials string)

func ReadRC

func ReadRC() (map[string]string, error)

func Recv

func Recv(conn *tls.Conn) []byte

func Stats

func Stats(conn *tls.Conn, credentials string)

func Version

func Version() string

Types

type TaskSettings

type TaskSettings struct {
	Key, Server, Certificate, CACert, Creds string
	NoRC, Insecure                          bool
}

func MakeSettings

func MakeSettings(rc map[string]string) TaskSettings

func SimpleConn

func SimpleConn(cobraSettings TaskSettings) (*tls.Conn, TaskSettings)

Jump to

Keyboard shortcuts

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