http

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient struct {
	PrivateKey crypto.Signer `json:"-"`

	Identity *api.Identity
	// contains filtered or unexported fields
}

func NewClient

func NewClient(
	cfg config.APIConfig,
	tlsConfig *tls.Config,
) (*HTTPClient, error)

NewAuthClient returns a new AuthClient

func (*HTTPClient) Authenticate

func (a *HTTPClient) Authenticate(ctx context.Context) (*api.Authz, error)

FetchJWTToken schedules the fetching of a new device JWT token

func (*HTTPClient) OpenSocket

func (a *HTTPClient) OpenSocket(ctx context.Context, authz *api.Authz) (api.Socket, error)

func (*HTTPClient) SendInventory

func (a *HTTPClient) SendInventory(ctx context.Context, authz *api.Authz, inv api.Inventory) error

Jump to

Keyboard shortcuts

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