client

package
v1.1.2-0...-5d0101c Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 23 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, username, password string, interval int, certs ClientTLSCerts, uak UAK) (*Client, error)

func (*Client) Init

func (client *Client) Init()

func (*Client) Register

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

func (*Client) UpdateInterval

func (client *Client) UpdateInterval(i int64)

type ClientTLSCerts

type ClientTLSCerts struct {
	UseTLS              bool
	Cert                string
	CertKey             string
	CACert              string
	SkipTLSVerification bool
}

type Communicator

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

func NewCommunicator

func NewCommunicator(addr, username, password string, certs ClientTLSCerts, uak UAK) (*Communicator, error)

func (*Communicator) GetNodesData

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

func (*Communicator) GetRegistryDiskData

func (comm *Communicator) GetRegistryDiskData() (interface{}, error)

func (*Communicator) GetRegistryTemplatesData

func (comm *Communicator) GetRegistryTemplatesData() (interface{}, error)

func (*Communicator) GetVmsData

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

func (*Communicator) TestConnection

func (comm *Communicator) TestConnection() error

func (*Communicator) UpdateEncodedTAPData

func (comm *Communicator) UpdateEncodedTAPData() error

type UAK

type UAK struct {
	ID        string
	KeyPath   string
	KeyString string
}

Jump to

Keyboard shortcuts

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