internal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	METADATA_URL         = "https://raw.githubusercontent.com/spoonboy-io/lock-plugin-metadata/main/lock.yaml"
	TEMPLATE_CACHE       = ".lockTemplateCache"
	TEMPLATE_CACHE_TTL   = 5 * time.Minute
	PLUGIN_JAR_INFO_URL  = "https://share.morpheusdata.com/feed"
	PLUGIN_CACHE         = ".lockPluginCache"
	PLUGIN_CACHE_TTL     = 5 * time.Minute
	DEFAULT_PROJECT_NAME = "morpheus-plugin-project"
)

Variables

View Source
var (
	ERR_NO_TEMPLATE            = errors.New("template id or name not provided")
	ERR_INVALID_TAG            = errors.New("requested tag could not be found on remote")
	ERR_NO_PLUGIN              = errors.New("plugin id or name not provided")
	ERR_INVALID_PLUGIN_VERSION = errors.New("requested version could not be found")
)

Functions

func CutString added in v0.2.0

func CutString(data string, cutAt int) string

CutString will cut and suffix a string at specified length

func WriteCell added in v0.2.0

func WriteCell(key string, num int) string

WriteCell will space a key correctly given field width

func WriteTitle added in v0.2.0

func WriteTitle(key string, num int) string

WriteTitle will write the tile and pad correctly

func Writeline added in v0.2.0

func Writeline(num int) string

WriteHeader will write the header footer to correct length

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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