mods

package
v0.0.0-...-3ff7f1a Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLimePlugin

func NewLimePlugin(name,
	description,
	buildVersion,
	buildDate string,
	pluginType specs.LimePluginType,
	exports map[string]interface{}) specs.LimePlugin

NewLimePlugin returns a new LimePlugin

func Run

func Run(p specs.LimePlugin, executableName string)

Run runs a LimePlugin

Types

type BaseLimePlugin

type BaseLimePlugin struct {
	// contains filtered or unexported fields
}

BaseLimePlugin is a LimePlugin base struct

func (*BaseLimePlugin) BuildDate

func (p *BaseLimePlugin) BuildDate() time.Time

BuildDate returns the date the plugin was built

func (*BaseLimePlugin) Description

func (p *BaseLimePlugin) Description() string

Description returns the description of the plugin

func (*BaseLimePlugin) Exports

func (p *BaseLimePlugin) Exports() map[string]interface{}

Exports exposes the symbols exported by the plugin

func (*BaseLimePlugin) Name

func (p *BaseLimePlugin) Name() string

Name returns the name of the plugin

func (*BaseLimePlugin) Type

Type returns the LimePluginType

func (*BaseLimePlugin) Version

func (p *BaseLimePlugin) Version() *common.Version

Version returns the version of the plugin

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context represents the command context

type Globals

type Globals struct {
	LogLevel string `help:"The logging level (debug|info|warn|error)" enum:"debug,info,warn,error" default:"info" env:"LIME_PACKER_LOG_LEVEL"`
	Verbose  bool   `short:"v" help:"Shortcut for log-level debug." env:"LIME_PACKER_VERBOSE" xor:"verbosity"`
	Silent   bool   `short:"s" help:"Disables output." env:"LIME_PACKER_SILENT" xor:"verbosity"`
}

Globals represents global flags

type VersionCommand

type VersionCommand struct {
}

VersionCommand runs a command to display the current version

func (*VersionCommand) Run

func (v *VersionCommand) Run(ctx *Context) error

Run runs the version command

Jump to

Keyboard shortcuts

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