shared

package
v0.0.0-...-2eef727 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "unknown" //nolint:gochecknoglobals
	Commit  = "unknown" //nolint:gochecknoglobals
)

These will be set at build time with ldflags, see Justfile for how they're defined and passed.

View Source
var Flags struct {
	Configfile *string
}

Functions

func Config

func Config() *config.Config

func Controller

func Controller() hostctl.Controller

func ConvertErr

func ConvertErr(err error) error

func Example

func Example(s string) string

Example is a helper for generating CLI example docs for cobra commands. It removes any surrounding space from a string, then removes any leading whitespace from each line in the string. Any comments in the string will be colored as faint.

func VersionString

func VersionString() string

Types

type BindNotAllowedError

type BindNotAllowedError struct{}

bind: permission denied

func (BindNotAllowedError) Code

func (BindNotAllowedError) Code() string

func (BindNotAllowedError) Error

func (BindNotAllowedError) Error() string

type DaemonNotRunningError

type DaemonNotRunningError struct{}

func (DaemonNotRunningError) Code

func (DaemonNotRunningError) Error

func (DaemonNotRunningError) Error() string

type DaemonRunningError

type DaemonRunningError struct {
	Pid int
}

func (DaemonRunningError) Code

func (DaemonRunningError) Code() string

func (DaemonRunningError) Error

func (x DaemonRunningError) Error() string

type LocaliasError

type LocaliasError interface {
	Error() string
	Code() string
}

Jump to

Keyboard shortcuts

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