Documentation ¶
Index ¶
- Constants
- Variables
- func InstallReporter()
- func LogBuildInfo()
- func NewVersionCmd() *cobra.Command
- func WithAuthn(parent context.Context, authn Authn) context.Context
- func WithAuthz(parent context.Context, authz Authz) context.Context
- func WithCore(parent context.Context, core Core) context.Context
- func WithValue(parent context.Context, key interface{}, val interface{}) context.Context
- type Authn
- type Authz
- type Client
- type Core
- type Executer
- type GenericServer
- type HttpServer
- type ProcVersion
Constants ¶
View Source
const ( PRI_M_CORE uint16 // no dep PRI_M_APISERVER // dep core )
Variables ¶
View Source
var ( // Revision is the VCS revision associated with this build. Overridden using ldflags // at compile time. Example: // $ go build -ldflags "-X github.com/m3db/m3/src/x/instrument.Revision=abcdef" ... // Adapted from: https://www.atatus.com/blog/golang-auto-build-versioning/ Revision = "unknown" // Branch is the VCS branch associated with this build. Branch = "unknown" // Version is the version associated with this build. Version = "unknown" // Builder is the username this build was created Builder = "unknown" // BuildDate is the date this build was created. BuildDate = "unknown" // BuildTimeUnix is the seconds since epoch representing the date this build was created. BuildTimeUnix = "0" // LogBuildInfoAtStartup controls whether we log build information at startup. If its // set to a non-empty string, we log the build information at process startup. LogBuildInfoAtStartup string )
Functions ¶
func InstallReporter ¶
func InstallReporter()
func LogBuildInfo ¶
func LogBuildInfo()
LogBuildInfo logs the build information to the provided logger.
func NewVersionCmd ¶
Types ¶
type Core ¶
func CoreMustFrom ¶
type GenericServer ¶
type GenericServer interface { }
type HttpServer ¶
type HttpServer interface { }
type ProcVersion ¶
type ProcVersion struct { Version string `json:"version,omitempty"` Release string `json:"release,omitempty"` Git string `json:"git,omitempty"` Go string `json:"go,omitempty"` Os string `json:"os,omitempty"` Arch string `json:"arch,omitempty"` Builder string `json:"builder,omitempty"` BuildTime int64 `json:"buildTime,omitempty" out:",date"` }
func (ProcVersion) String ¶
func (p ProcVersion) String() string
Click to show internal directories.
Click to hide internal directories.