command

package
v0.0.0-...-3899698 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingOwncloudEndpoint defines the error if owncloud.endpoint is empty.
	ErrMissingOwncloudEndpoint = errors.New("missing required owncloud.endpoint")

	// ErrMissingOwncloudUsername defines the error if owncloud.username is empty.
	ErrMissingOwncloudUsername = errors.New("missing required owncloud.username")

	// ErrMissingOwncloudPassword defines the error if owncloud.password is empty.
	ErrMissingOwncloudPassword = errors.New("missing required owncloud.password")

	// ErrMissingAnyCredentials defines the error if no credentials are provided.
	ErrMissingAnyCredentials = errors.New("missing any credentials")
)
View Source
var (
	// ErrConfigNotFound defines the error if config does not exist.
	ErrConfigNotFound = errors.New("failed to find config")

	// ErrConfigFormatInvalid defines the error if format is unsupported.
	ErrConfigFormatInvalid = errors.New("invaliud config format")
)

Functions

func Health

func Health(cfg *config.Config) *cli.Command

Health provides the sub-command to perform a health check.

func Run

func Run() error

Run parses the command line arguments and executes the program.

func Server

func Server(cfg *config.Config) *cli.Command

Server provides the sub-command to start the server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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