registrar

package
v0.0.0-...-7306f8b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	UUID     string
	AIK      []byte
	EK       []byte
	EKCert   *x509.Certificate
	MTLSCert *x509.Certificate
	IP       string
	Port     uint16
	RegCount uint
}

type Client

type Client interface {
	ListAgents(ctx context.Context) ([]string, error)
	GetAgent(ctx context.Context, uuid string) (*Agent, error)
	DeleteAgent(ctx context.Context, uuid string) error
}

func New

func New(ctx context.Context, httpClient *http.Client, registrarURL string) (Client, error)

Jump to

Keyboard shortcuts

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