client

package
v0.0.0-...-a74afc1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 17 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
}

func NewClient

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

func (*Client) Authenticate

func (c *Client) Authenticate() error

func (*Client) Deployment

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

func (*Client) Run

func (c *Client) Run()

func (*Client) SendInventory

func (c *Client) SendInventory() error

func (*Client) UpdateCheck

func (c *Client) UpdateCheck() error

type IdentityData

type IdentityData struct {
	MAC string `json:"mac"`
}

Jump to

Keyboard shortcuts

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