types

package
v0.0.0-...-2391ac1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MainCtx

type MainCtx interface {
	GetDomains() []string
	UpdateDomains([]string)
	GetDevice() (*Response, error)
	UpdateDevice(*Response)

	GetLogger() logging.Logger
	GetContext() context.Context
	SetContext(context.Context)

	GetContextWithCancel() (context.Context, context.CancelFunc)

	SetExposedIps([]string)
	GetExposedIps() []string
}

func NewMainCtx

func NewMainCtx(domains []string) (MainCtx, error)

func NewMainCtxOrDie

func NewMainCtxOrDie(domains []string) MainCtx

type Response

type Response struct {
	AccountName       string   `json:"accountName"`
	CreationTime      string   `json:"creationTime"`
	DeploymentName    string   `json:"deploymentName"`
	DisplayName       string   `json:"displayName"`
	ID                string   `json:"id"`
	IP                string   `json:"ip"`
	MarkedForDeletion string   `json:"markedForDeletion"`
	Name              string   `json:"name"`
	PodCIDR           string   `json:"podCIDR"`
	ProjectName       string   `json:"projectName"`
	PublicKey         string   `json:"publicKey"`
	RecordVersion     int      `json:"recordVersion"`
	ServiceCIDR       string   `json:"serviceCIDR"`
	UpdateTime        string   `json:"updateTime"`
	Version           string   `json:"version"`
	ExposedDomains    []string `json:"exposedDomains"`
	ExposedIPs        []string `json:"exposedIps"`
	ClusterToken      string   `json:"clusterToken"`

	Reset bool `json:"reset"`
}

func (*Response) FromJson

func (c *Response) FromJson(data []byte) error

Jump to

Keyboard shortcuts

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