Documentation
¶
Index ¶
Constants ¶
View Source
const None = "v0.0.0-unknown"
None is the AppVersion string for local (unversioned) builds.
Variables ¶
View Source
var ( // AppVersion is the semver for this version of the client, or // "v0.0.0-unknown". Set by `make release`. AppVersion string // GitRevision is the short git SHA associated with this build, or // "unknown". Set by `make release`. GitRevision string // GoVersion is the output of `go version` associated with this build, or // "go version unknown". Set by `make release`. GoVersion string // UserAgent is the user agent which we report in all HTTP requests to the // API via go-fastly. UserAgent string )
Functions ¶
func IsPreRelease ¶ added in v0.18.1
IsPreRelease determines if the given app version is a pre-release.
NOTE: this is indicated by the presence of a hyphen, e.g. v1.0.0-rc.1
Types ¶
type RootCommand ¶
RootCommand is the parent command for all subcommands in this package. It should be installed under the primary root command.
func NewRootCommand ¶
func NewRootCommand(parent common.Registerer) *RootCommand
NewRootCommand returns a new command registered in the parent.
Click to show internal directories.
Click to hide internal directories.