package
Version:
v2.0.0-beta+incompatible
Opens a new window with list of versions in this module.
Published: Jun 24, 2016
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Add should implement the add task
Run Add adds a user using the public key and a token.
type Invalid struct{ Error error }
Invalid should implement the invalid task, i.e. take an error
Run Invalid returns an error and empty result.
type Lease struct{ Task }
Lease should implement the lease task
Run Lease returns the users leases.
type Release struct{ Task }
Release should implement the release task
type Remove struct{ Task }
Remove should implement the remove task
Run Remove removes a user.
Task needs the arguments to use, and a database to save the changes to
type TaskInterface interface {
Run() (result string, err error)
}
TaskInterface defines the methods needed for a default task
Source Files
¶
Click to show internal directories.
Click to hide internal directories.