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 NewMainCtxOrDie ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.