cmd

package
v0.0.0-...-fc9a6ea Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ANSI Colors
	Normal    = "\033[0m"
	Black     = "\033[30m"
	Red       = "\033[31m"
	Green     = "\033[32m"
	Orange    = "\033[33m"
	Blue      = "\033[34m"
	Purple    = "\033[35m"
	Cyan      = "\033[36m"
	Gray      = "\033[37m"
	Bold      = "\033[1m"
	Clearln   = "\r\x1b[2K"
	UpN       = "\033[%dA"
	DownN     = "\033[%dB"
	Underline = "\033[4m"

	// Info - Display colorful information
	Info = Bold + Cyan + "[*] " + Normal
	// Warn - Warn a user
	Warn = Bold + Red + "[!] " + Normal
	// Debug - Display debug information
	Debug = Bold + Purple + "[-] " + Normal
	// Woot - Display success
	Woot = Bold + Green + "[$] " + Normal
	// Success - Display success
	Success = Bold + Green + "[+] " + Normal
)

Variables

View Source
var (
	ErrServerNotInitialized          = errors.New("server not initialized - run setup first")
	ErrSigningProviderNotInitialized = errors.New("signing key provider not initialized - run setup first")
	ErrStorageProviderNotInitialized = errors.New("storage provider not initialized - run setup first")
)
View Source
var (
	ErrSigningKeyProviderRefused = errors.New("")
	// An error to signal that the signing key has already been decrypted
	ErrPackageSigningKeyDecrypted = errors.New("")
)

Functions

func Execute

func Execute()

Execute - Execute the root command

Types

type ArmoryClientConfig

type ArmoryClientConfig struct {
	PublicKey        string `json:"public_key"`
	RepoURL          string `json:"repo_url"`
	Authorization    string `json:"authorization"`
	AuthorizationCmd string `json:"authorization_cmd,omitempty"`
}

ArmoryClientConfig - The armory config file

Jump to

Keyboard shortcuts

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