cmd

package
v0.0.0-...-9fbb052 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CheckInverval = 10 * time.Minute
View Source
var CliVersion = "0.0.1"
View Source
var ConfigDir = xdg.ConfigHome
View Source
var Debug bool

Flags

View Source
var Force bool
View Source
var Fqdn string
View Source
var Instance http.Client
View Source
var JsonMode bool
View Source
var LastUpdateCheckTime time.Time
View Source
var Name string
View Source
var PrettyMode bool
View Source
var SensitiveInformationOverlay = "********"
View Source
var SetDefaultInstance bool
View Source
var ShowSensitive bool
View Source
var Token string
View Source
var Version string
View Source
var WithResources bool

Functions

func CheckLatestVersionOfCli

func CheckLatestVersionOfCli() (string, error)

func CheckMinimumVersion

func CheckMinimumVersion(version string)

func Execute

func Execute()

func Fetch

func Fetch(url string) (string, error)

func FetchVersion

func FetchVersion() (string, error)

Types

type Deploy

type Deploy struct {
	Deployments []Deployment `json:"deployments"`
}

type Deployment

type Deployment struct {
	Message        string `json:"message"`
	ResourceUuid   string `json:"resource_uuid"`
	DeploymentUuid string `json:"deployment_uuid"`
}

type Domain

type Domain struct {
	IP      string   `json:"ip"`
	Domains []string `json:"domains"`
}

type Resource

type Resource struct {
	ID     int    `json:"id"`
	Uuid   string `json:"uuid"`
	Name   string `json:"name"`
	Type   string `json:"type"`
	Status string `json:"status"`
}

type Resources

type Resources struct {
	Resources []Resource `json:"resources"`
}

type Server

type Server struct {
	ID       int    `json:"id"`
	UUID     string `json:"uuid"`
	Name     string `json:"name"`
	IP       string `json:"ip"`
	User     string `json:"user"`
	Port     int    `json:"port"`
	Settings struct {
		Reachable bool `json:"is_reachable"`
		Usable    bool `json:"is_usable"`
	} `json:"settings"`
}

type Tag

type Tag struct {
	Ref string `json:"ref"`
}

Jump to

Keyboard shortcuts

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