cmd

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RED = "\033[0;31m"
	NC  = "\033[0m" // No Color
)

Variables

View Source
var (
	Version = ""
	Commit  = ""
	Date    = ""
)

Functions

func Execute

func Execute(version, commit, date string) int

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type CachedDNSEntry

type CachedDNSEntry struct {
	UUID string `json:"uuid"`
	Name string `json:"name"`
	Addr string `json:"addr"`
	Port int    `json:"port"`
}

func (CachedDNSEntry) GetAddr

func (e CachedDNSEntry) GetAddr() string

func (CachedDNSEntry) GetName

func (e CachedDNSEntry) GetName() string

func (CachedDNSEntry) GetPort

func (e CachedDNSEntry) GetPort() int

func (CachedDNSEntry) GetUUID

func (e CachedDNSEntry) GetUUID() string

Jump to

Keyboard shortcuts

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