whizz

package module
v0.0.0-...-4bafb27 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: MIT Imports: 8 Imported by: 0

README

whizz

CLI client tool for Whizz

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WzChannels

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

type WzClient

type WzClient struct {
	wzlib_utils.WzMachineIDUtil
	wzlib_logger.WzLogger
	// contains filtered or unexported fields
}

func NewWhizzClient

func NewWhizzClient() *WzClient

func (*WzClient) Accept

func (wzc *WzClient) Accept(fingerprints ...string) (missing []string)

Accept unaccepted (new) clients. If no fingerprints, all accepted

func (*WzClient) Boot

func (wzc *WzClient) Boot()

Boot the whizz client

func (*WzClient) Call

func (wzc *WzClient) Call()

Call query to target registered client (main mode)

func (*WzClient) Delete

func (wzc *WzClient) Delete(fingerprints ...string) (missing []string)

Delete any clients regardless what their status is, by fingerprints

func (*WzClient) GetCryptoBundle

func (wzc *WzClient) GetCryptoBundle() *wzlib_crypto.WzCryptoBundle

GetCryptoBundle returns a cryptobundle with AES, RSA and utils API

func (*WzClient) ListNew

func (wzc *WzClient) ListNew() []map[string]interface{}

ListNew clients returning info about each client.

func (*WzClient) ListRejected

func (wzc *WzClient) ListRejected() []map[string]interface{}

ListRejected clients

func (*WzClient) Reject

func (wzc *WzClient) Reject(fingerprints ...string) (missing []string)

Reject unaccepted (new) clients

func (*WzClient) Search

func (wzc *WzClient) Search(query string) []interface{}

Search for the client machines (all of them, regardless status) by FQDN with globbing

func (*WzClient) Stop

func (wzc *WzClient) Stop()

Stop and teardown everything: disconnect, cleanup etc.

func (*WzClient) Wait

func (wzc *WzClient) Wait(sec int)

Wait for the client get reply from the cluster with timeout.

type WzEvents

type WzEvents struct {
	wzlib_logger.WzLogger
	// contains filtered or unexported fields
}

func NewWzEvents

func NewWzEvents() *WzEvents

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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