client

package
v0.0.0-...-c0b55bb Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRequest

type AuthRequest struct {
	IdentityData string `json:"id_data"`
	PublicKey    string `json:"pubkey"`
	TenantToken  string `json:"tenant_token"`
}

type Client

type Client struct {
	Index               int64
	MACAddress          string
	JWTToken            string
	Config              *model.RunConfig
	ArtifactName        string
	WebsocketConnection *websocket.Connection
}

func NewClient

func NewClient(config *model.RunConfig, index int64) (*Client, error)

func (*Client) Authenticate

func (c *Client) Authenticate() error

func (*Client) CloseWebsocket

func (c *Client) CloseWebsocket() error

func (*Client) Deployment

func (c *Client) Deployment(deploymentID string) error

func (*Client) OpenWebsocket

func (c *Client) OpenWebsocket() error

func (*Client) Run

func (c *Client) Run()

func (*Client) SendInventory

func (c *Client) SendInventory() error

func (*Client) StartWebsocket

func (c *Client) StartWebsocket(websocketMessages chan *ws.ProtoMsg)

func (*Client) UpdateCheck

func (c *Client) UpdateCheck() error

Jump to

Keyboard shortcuts

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