client

package
v1.1.2-0...-68df96b Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_INTERVAL_SECONDS = 60
)

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(addr string, interval int, certs TLSCerts) (*Client, error)

func (*Client) Init

func (this *Client) Init()

func (*Client) Register

func (this *Client) Register(ev events.Event, eventHandler func(interface{}) error) error

func (*Client) UpdateInterval

func (this *Client) UpdateInterval(i int64)

type Communicator

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

func NewCommunicator

func NewCommunicator(addr string, certs TLSCerts) (*Communicator, error)

func (*Communicator) GetNodesData

func (this *Communicator) GetNodesData() (interface{}, error)

func (*Communicator) GetRegistryData

func (this *Communicator) GetRegistryData() (interface{}, error)

func (Communicator) GetTemplatesData

func (this Communicator) GetTemplatesData(id string) (interface{}, error)

func (*Communicator) GetVmsData

func (this *Communicator) GetVmsData() (interface{}, error)

func (*Communicator) TestConnection

func (this *Communicator) TestConnection() error

type TLSCerts

type TLSCerts struct {
	UseTLS              bool
	ClientCert          string
	ClientCertKey       string
	CACert              string
	SkipTLSVerification bool
}

Jump to

Keyboard shortcuts

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