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 ¶
NewVersion returns a *Version from the provided version and build date.
Click to show internal directories.
Click to hide internal directories.