core

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllPacks *bool

AllPacks is a CLI option to target all installed packs, instead of just those specified in config.yml

View Source
var BinariesPath *string

BinariesPath represents the path where service pack binaries are installed Must be a pointer to accept the flag when it is set

View Source
var Verbose *bool

Verbose is a CLI option to increase output detail

Functions

func GetCommands

func GetCommands() (cmdSet []*exec.Cmd, err error)

GetCommands ...

func GetPackBinary

func GetPackBinary(name string) (binaryName string, err error)

GetPackBinary finds provided service pack in installation folder and return binary name

func GetPackNames added in v0.0.4

func GetPackNames() (packNames []string, err error)

GetPackNames returns all service packs declared in config file

func NewClient

func NewClient(cmd *exec.Cmd) *hcplugin.Client

NewClient client handles the lifecycle of a plugin application Plugin hosts should use one Client for each plugin executable (this is different from the client that manages gRPC)

func SetupCloseHandler

func SetupCloseHandler()

SetupCloseHandler creates a 'listener' on a new goroutine which will notify the program if it receives an interrupt from the OS. We then handle this by calling our clean up procedure and exiting the program. Ref: https://golangcode.com/handle-ctrl-c-exit-in-terminal/

func UserHomeDir added in v0.0.4

func UserHomeDir() string

UserHomeDir provides the OS-aware user home directory TODO: move this to SDK

Types

type ServicePackError

type ServicePackError struct {
	ServicePack string
	Err         error
}

ServicePackError ...

type ServicePackErrors

type ServicePackErrors struct {
	SPErrs []ServicePackError
}

ServicePackErrors ...

func (*ServicePackErrors) Error

func (e *ServicePackErrors) Error() string

Jump to

Keyboard shortcuts

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