cmdutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoLogin = fmt.Errorf("not logged in")

ErrNoLogin represents when a user tries to run a command while not logged in to krypt.

Functions

This section is empty.

Types

type Context

type Context struct {
	ExeFile     string       // the krypt executable
	Creds       *auth.Creds  // the user credentials
	Version     *Version     // the krypt version
	PassManager pass.Manager // the password manager
	AuthManager auth.Manager // the authentication manager
}

Context represents the context in which the krypt commands will get executed.

func NewContext

func NewContext() *Context

NewContext fetches all the context information and returns a pointer to a Context instance.

type Version

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

Version represents the version of a krypt executable.

func NewVersion

func NewVersion(v, d string) *Version

NewVersion returns a *Version from the provided version and build date.

func (*Version) String

func (v *Version) String() string

String converts a Version to a version string.

Jump to

Keyboard shortcuts

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