Documentation ¶
Overview ¶
Package cli contains the RootCmd for main and utilities for printing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "vanity",
Short: "A go vanity server",
Long: `A go vanity server`,
Version: getVersion(),
}
RootCmd is the root cobra command for vanity.
View Source
var Version = "<unspecified>"
Version is the version of the vanity command.
Functions ¶
func FileExists ¶
FileExists returns true if the file exists, false otherwise.
func NewJSONConsumer ¶
NewJSONConsumer creates a Consumer that prints vanity URL configurations to standard output as a JSON object.
func NewPlainConsumer ¶
NewPlainConsumer creates a Consumer that prints vanity URL configurations to standard output as plainConsumer comma-delimited text.
func SHA1FromJSON ¶
SHA1FromJSON generates a SHA1 hash from a canonical JSON object.
func SHA1FromString ¶
SHA1FromString generates a SHA1 hash from a string.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package backends contains the shared implementation of vanity.Backend.
|
Package backends contains the shared implementation of vanity.Backend. |
gcp
Package gcp declares common Google API clients options.
|
Package gcp declares common Google API clients options. |
gcp/datastore
Package datastore contains the datastore sub-command.
|
Package datastore contains the datastore sub-command. |
gcp/spanner
Package spanner contains the spanner sub-command.
|
Package spanner contains the spanner sub-command. |
helpers
Package helpers provides a way for sub-commands to register themselves with backend implementations.
|
Package helpers provides a way for sub-commands to register themselves with backend implementations. |
Package log contains log level constants for glog.
|
Package log contains log level constants for glog. |
Click to show internal directories.
Click to hide internal directories.