types

package module
v0.0.0-...-aa2986a Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Unlicense Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddConfigRequest

type AddConfigRequest struct {
	Hostname    string
	Owner       string
	Description string
}

type Agent

type Agent struct {
	Name      string `json:"name"`
	Identity  string `json:"identity"`
	PublicKey string `json:"public_key"`
	PublicIP  string `json:"public_ip"`
	Country   string `json:"country"`
	ISP       string `json:"isp"`
}

type AgentRequest

type AgentRequest struct {
	Jwt string
}

type AgentResponse

type AgentResponse struct {
	Jwt string
}

type AuthToken

type AuthToken struct {
	Endpoint string
	Roles    []string
}

type RegistrationRequest

type RegistrationRequest struct {
	PublicKey string `json:"public_key"`
	SecretKey string `json:"secret_key"`
	Agent     Agent  `json:"agent"`
	AuthToken string `json:"auth_token"`
}

type RegistrationResponse

type RegistrationResponse struct {
	Success   bool   `json:"success"`
	Error     string `json:"error"`
	PublicKey string `json:"public_key"`
	AuthToken string `json:"auth_token"`
}

Jump to

Keyboard shortcuts

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