registration

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RefreshRegistration added in v0.2.0

func RefreshRegistration(ctx context.Context) error

func Start

func Start(ctx context.Context) error

Start the registration process.

Types

type AWSTags

type AWSTags struct {
	InstanceID       string `json:"instance_id,omitempty"`
	AccountID        string `json:"account_id,omitempty"`
	Architecture     string `json:"architecture,omitempty"`
	AvailabilityZone string `json:"availability_zone,omitempty"`
	ImageID          string `json:"image_id,omitempty"`
	InstanceType     string `json:"instance_type,omitempty"`
	KernelID         string `json:"kernel_id,omitempty"`
	PendingTime      string `json:"pending_time,omitempty"`
	PrivateIP        string `json:"private_ip,omitempty"`
	RamdiskID        string `json:"ramdisk_id,omitempty"`
	Region           string `json:"region,omitempty"`
	Version          string `json:"version,omitempty"`
}

type Data

type Data struct {
	AWSMeta AWSTags  `json:"aws,omitempty"`
	Tags    []string `json:"tags,omitempty"`
}

type Registration

type Registration struct {
	Version              string `json:"version"`
	MachineID            string `json:"machine_id"`
	Hostname             string `json:"hostname"`
	OS                   string `json:"os"`
	Platform             string `json:"platform"`
	PlatformVersion      string `json:"platform_version"`
	PlatformFamily       string `json:"platform_family"`
	KernelArch           string `json:"kernel_arch"`
	KernelVersion        string `json:"kernel_version"`
	VirtualizationSystem string `json:"virtualization_system"`
	VirtualizationRole   string `json:"virtualization_role"`
	Data                 Data   `json:"data,omitempty"`
}

type Response

type Response struct {
	AuthToken    string `json:"access_token"  yaml:"access_token"`
	ManagerID    string `json:"manager_id"    yaml:"manager_id"`
	RefreshToken string `json:"refresh_token" yaml:"refresh_token"`
}

Jump to

Keyboard shortcuts

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