cmd

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: CC0-1.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(log api.LogService, action func(api.DatabaseService, *api.Account))

Command represents a basic utility command.

func IsPiped

func IsPiped() bool

IsPiped returns whether the command was started with piped input.

Types

type WebClient

type WebClient struct {
	Client   *http.Client
	Address  string
	Username string
	Password string
	// contains filtered or unexported fields
}

WebClient is a basic web client to be used with various utility functionality.

func (*WebClient) Authenticate

func (wc *WebClient) Authenticate()

Authenticate against the RESTful service with basic authentication.

func (*WebClient) Form

func (wc *WebClient) Form() json.RawMessage

Form returns the entire application as a JSON structure.

func (*WebClient) GetInformation

func (wc *WebClient) GetInformation()

GetInformation will ask for more information if not already known.

func (*WebClient) Logout

func (wc *WebClient) Logout()

Logout will end a session.

func (*WebClient) Save

func (wc *WebClient) Save(payload json.RawMessage)

Save a JSON structure to the RESTful service.

func (*WebClient) Submit

func (wc *WebClient) Submit()

Submit will submit an application through the RESTful service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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