cmd

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: Apache-2.0 Imports: 27 Imported by: 1

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