Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // Version is the build release identifier. Version = "Unspecified" // Revision is the build source control revision. Revision = "Unspecified" )
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
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 VersionCommand ¶
VersionCommand creates a cobra Command that prints build version information.
Types ¶
This section is empty.