cli

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2017 License: Apache-2.0 Imports: 8 Imported by: 70

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the build release identifier.
	Version = "Unspecified"

	// Revision is the build source control revision.
	Revision = "Unspecified"
)
View Source
var DefaultLogLevel = len(log.AllLevels) - 2

DefaultLogLevel is the default log level value.

Functions

func EnsureDirExists added in v0.2.0

func EnsureDirExists(dir string)

EnsureDirExists makes sure the directory where the socket file will be placed exists.

func RegisterInfo added in v0.2.0

func RegisterInfo(key string, data map[string]interface{})

RegisterInfo allows any packages that use this register additional information to be displayed by the command. For example, a swarm flavor could register the docker api version. This allows us to selectively incorporate only required dependencies based on package registration (in their init()) without explicitly pulling unused dependencies.

func RunPlugin

func RunPlugin(name string, plugin server.VersionedInterface, more ...server.VersionedInterface)

RunPlugin runs a plugin server, advertising with the provided name for discovery. The plugin should conform to the rpc call convention as implemented in the rpc package.

func SetLogLevel

func SetLogLevel(level int)

SetLogLevel adjusts the logrus level.

func VersionCommand

func VersionCommand() *cobra.Command

VersionCommand creates a cobra Command that prints build version information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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