Documentation ¶
Overview ¶
Package build is a generated protocol buffer package.
It is generated from these files:
cockroach/pkg/build/info.proto
It has these top-level messages:
Info
Index ¶
- Constants
- Variables
- type Info
- func (*Info) Descriptor() ([]byte, []int)
- func (m *Info) Marshal() (dAtA []byte, err error)
- func (m *Info) MarshalTo(dAtA []byte) (int, error)
- func (*Info) ProtoMessage()
- func (m *Info) Reset()
- func (b Info) Short() string
- func (m *Info) Size() (n int)
- func (m *Info) String() string
- func (b Info) Timestamp() (int64, error)
- func (m *Info) Unmarshal(dAtA []byte) error
Constants ¶
View Source
const TimeFormat = "2006/01/02 15:04:05"
TimeFormat is the reference format for build.Time. Make sure it stays in sync with the string passed by the linker in ldflags.sh.
Variables ¶
View Source
var ( ErrInvalidLengthInfo = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowInfo = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { GoVersion string `protobuf:"bytes,1,opt,name=go_version,json=goVersion" json:"go_version"` Tag string `protobuf:"bytes,2,opt,name=tag" json:"tag"` Time string `protobuf:"bytes,3,opt,name=time" json:"time"` Dependencies string `protobuf:"bytes,4,opt,name=dependencies" json:"dependencies"` CgoCompiler string `protobuf:"bytes,5,opt,name=cgo_compiler,json=cgoCompiler" json:"cgo_compiler"` Platform string `protobuf:"bytes,6,opt,name=platform" json:"platform"` }
Info describes build information for this CockroachDB binary.
func GetInfo ¶
func GetInfo() Info
GetInfo returns an Info struct populated with the build information.
func (*Info) Descriptor ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.