Documentation ¶
Index ¶
- Variables
- func Enabled() bool
- func FillNodeInfo(ctx context.Context, info *NodeInfo) (err error)
- func GetSecret() string
- func GetUUID() string
- func NewSecret() string
- func NewUUID() string
- func NodeInfoToText(info *NodeInfo) (text string, err error)
- func SaltedHash(val string, salt ...string) string
- func ScrubYaml(data []byte, hashFieldNames set.StringSet, omitFieldNames set.StringSet, ...) (scrubed []byte, err error)
- type CPUInfo
- func (*CPUInfo) Descriptor() ([]byte, []int)
- func (m *CPUInfo) GetCores() int32
- func (m *CPUInfo) GetFeatures() []string
- func (m *CPUInfo) GetMhz() float32
- func (m *CPUInfo) GetModel() string
- func (m *CPUInfo) GetNumcpu() int32
- func (m *CPUInfo) GetSockets() int32
- func (m *CPUInfo) Marshal() (dAtA []byte, err error)
- func (m *CPUInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *CPUInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CPUInfo) ProtoMessage()
- func (m *CPUInfo) Reset()
- func (m *CPUInfo) Size() (n int)
- func (m *CPUInfo) String() string
- func (m *CPUInfo) Unmarshal(dAtA []byte) error
- func (m *CPUInfo) XXX_DiscardUnknown()
- func (m *CPUInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CPUInfo) XXX_Merge(src proto.Message)
- func (m *CPUInfo) XXX_Size() int
- func (m *CPUInfo) XXX_Unmarshal(b []byte) error
- type ClusterReport
- func (*ClusterReport) Descriptor() ([]byte, []int)
- func (m *ClusterReport) GetCommand() string
- func (m *ClusterReport) GetExitCode() int32
- func (m *ClusterReport) GetID() string
- func (m *ClusterReport) GetNodes() []*NodeInfo
- func (m *ClusterReport) GetTakeMilliseconds() uint64
- func (m *ClusterReport) GetTopology() string
- func (m *ClusterReport) Marshal() (dAtA []byte, err error)
- func (m *ClusterReport) MarshalTo(dAtA []byte) (int, error)
- func (m *ClusterReport) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClusterReport) ProtoMessage()
- func (m *ClusterReport) Reset()
- func (m *ClusterReport) Size() (n int)
- func (m *ClusterReport) String() string
- func (m *ClusterReport) Unmarshal(dAtA []byte) error
- func (m *ClusterReport) XXX_DiscardUnknown()
- func (m *ClusterReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterReport) XXX_Merge(src proto.Message)
- func (m *ClusterReport) XXX_Size() int
- func (m *ClusterReport) XXX_Unmarshal(b []byte) error
- type HardwareInfo
- func (*HardwareInfo) Descriptor() ([]byte, []int)
- func (m *HardwareInfo) GetCpu() CPUInfo
- func (m *HardwareInfo) GetLoadavg15() float32
- func (m *HardwareInfo) GetMem() MemInfo
- func (m *HardwareInfo) GetVirtualization() string
- func (m *HardwareInfo) Marshal() (dAtA []byte, err error)
- func (m *HardwareInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *HardwareInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HardwareInfo) ProtoMessage()
- func (m *HardwareInfo) Reset()
- func (m *HardwareInfo) Size() (n int)
- func (m *HardwareInfo) String() string
- func (m *HardwareInfo) Unmarshal(dAtA []byte) error
- func (m *HardwareInfo) XXX_DiscardUnknown()
- func (m *HardwareInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HardwareInfo) XXX_Merge(src proto.Message)
- func (m *HardwareInfo) XXX_Size() int
- func (m *HardwareInfo) XXX_Unmarshal(b []byte) error
- type MemInfo
- func (*MemInfo) Descriptor() ([]byte, []int)
- func (m *MemInfo) GetAvailable() uint64
- func (m *MemInfo) GetTotal() uint64
- func (m *MemInfo) Marshal() (dAtA []byte, err error)
- func (m *MemInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *MemInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MemInfo) ProtoMessage()
- func (m *MemInfo) Reset()
- func (m *MemInfo) Size() (n int)
- func (m *MemInfo) String() string
- func (m *MemInfo) Unmarshal(dAtA []byte) error
- func (m *MemInfo) XXX_DiscardUnknown()
- func (m *MemInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MemInfo) XXX_Merge(src proto.Message)
- func (m *MemInfo) XXX_Size() int
- func (m *MemInfo) XXX_Unmarshal(b []byte) error
- type Meta
- type NodeInfo
- func (*NodeInfo) Descriptor() ([]byte, []int)
- func (m *NodeInfo) GetHardware() HardwareInfo
- func (m *NodeInfo) GetNodeId() string
- func (m *NodeInfo) GetOs() OSInfo
- func (m *NodeInfo) Marshal() (dAtA []byte, err error)
- func (m *NodeInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *NodeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NodeInfo) ProtoMessage()
- func (m *NodeInfo) Reset()
- func (m *NodeInfo) Size() (n int)
- func (m *NodeInfo) String() string
- func (m *NodeInfo) Unmarshal(dAtA []byte) error
- func (m *NodeInfo) XXX_DiscardUnknown()
- func (m *NodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeInfo) XXX_Merge(src proto.Message)
- func (m *NodeInfo) XXX_Size() int
- func (m *NodeInfo) XXX_Unmarshal(b []byte) error
- type OSInfo
- func (*OSInfo) Descriptor() ([]byte, []int)
- func (m *OSInfo) GetFamily() string
- func (m *OSInfo) GetPlatform() string
- func (m *OSInfo) GetVersion() string
- func (m *OSInfo) Marshal() (dAtA []byte, err error)
- func (m *OSInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *OSInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OSInfo) ProtoMessage()
- func (m *OSInfo) Reset()
- func (m *OSInfo) Size() (n int)
- func (m *OSInfo) String() string
- func (m *OSInfo) Unmarshal(dAtA []byte) error
- func (m *OSInfo) XXX_DiscardUnknown()
- func (m *OSInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OSInfo) XXX_Merge(src proto.Message)
- func (m *OSInfo) XXX_Size() int
- func (m *OSInfo) XXX_Unmarshal(b []byte) error
- type PlaygroundReport
- func (*PlaygroundReport) Descriptor() ([]byte, []int)
- func (m *PlaygroundReport) GetExitCode() int32
- func (m *PlaygroundReport) GetTakeMilliseconds() uint64
- func (m *PlaygroundReport) GetTopology() string
- func (m *PlaygroundReport) Marshal() (dAtA []byte, err error)
- func (m *PlaygroundReport) MarshalTo(dAtA []byte) (int, error)
- func (m *PlaygroundReport) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PlaygroundReport) ProtoMessage()
- func (m *PlaygroundReport) Reset()
- func (m *PlaygroundReport) Size() (n int)
- func (m *PlaygroundReport) String() string
- func (m *PlaygroundReport) Unmarshal(dAtA []byte) error
- func (m *PlaygroundReport) XXX_DiscardUnknown()
- func (m *PlaygroundReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlaygroundReport) XXX_Merge(src proto.Message)
- func (m *PlaygroundReport) XXX_Size() int
- func (m *PlaygroundReport) XXX_Unmarshal(b []byte) error
- type Report
- func (*Report) Descriptor() ([]byte, []int)
- func (m *Report) GetCluster() *ClusterReport
- func (m *Report) GetEventDetail() isReport_EventDetail
- func (m *Report) GetEventUUID() string
- func (m *Report) GetEventUnixTimestamp() int64
- func (m *Report) GetInstallationUUID() string
- func (m *Report) GetPlayground() *PlaygroundReport
- func (m *Report) GetTiup() *TiUPReport
- func (m *Report) GetVersion() *TiUPInfo
- func (m *Report) Marshal() (dAtA []byte, err error)
- func (m *Report) MarshalTo(dAtA []byte) (int, error)
- func (m *Report) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Report) ProtoMessage()
- func (m *Report) Reset()
- func (m *Report) Size() (n int)
- func (m *Report) String() string
- func (m *Report) Unmarshal(dAtA []byte) error
- func (m *Report) XXX_DiscardUnknown()
- func (m *Report) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Report) XXX_Merge(src proto.Message)
- func (*Report) XXX_OneofWrappers() []interface{}
- func (m *Report) XXX_Size() int
- func (m *Report) XXX_Unmarshal(b []byte) error
- type Report_Cluster
- type Report_Playground
- type Report_Tiup
- type ScrubStrategy
- type Status
- type Telemetry
- type TiUPInfo
- func (*TiUPInfo) Descriptor() ([]byte, []int)
- func (m *TiUPInfo) GetArch() string
- func (m *TiUPInfo) GetComponentVersion() string
- func (m *TiUPInfo) GetGitCommit() string
- func (m *TiUPInfo) GetGitRef() string
- func (m *TiUPInfo) GetGo() string
- func (m *TiUPInfo) GetOs() string
- func (m *TiUPInfo) GetTiUPVersion() string
- func (m *TiUPInfo) GetVerName() string
- func (m *TiUPInfo) Marshal() (dAtA []byte, err error)
- func (m *TiUPInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *TiUPInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TiUPInfo) ProtoMessage()
- func (m *TiUPInfo) Reset()
- func (m *TiUPInfo) Size() (n int)
- func (m *TiUPInfo) String() string
- func (m *TiUPInfo) Unmarshal(dAtA []byte) error
- func (m *TiUPInfo) XXX_DiscardUnknown()
- func (m *TiUPInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TiUPInfo) XXX_Merge(src proto.Message)
- func (m *TiUPInfo) XXX_Size() int
- func (m *TiUPInfo) XXX_Unmarshal(b []byte) error
- type TiUPReport
- func (*TiUPReport) Descriptor() ([]byte, []int)
- func (m *TiUPReport) GetCommand() string
- func (m *TiUPReport) GetCustomMirror() bool
- func (m *TiUPReport) GetExitCode() int32
- func (m *TiUPReport) GetTag() string
- func (m *TiUPReport) GetTakeMilliseconds() uint64
- func (m *TiUPReport) Marshal() (dAtA []byte, err error)
- func (m *TiUPReport) MarshalTo(dAtA []byte) (int, error)
- func (m *TiUPReport) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TiUPReport) ProtoMessage()
- func (m *TiUPReport) Reset()
- func (m *TiUPReport) Size() (n int)
- func (m *TiUPReport) String() string
- func (m *TiUPReport) Unmarshal(dAtA []byte) error
- func (m *TiUPReport) XXX_DiscardUnknown()
- func (m *TiUPReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TiUPReport) XXX_Merge(src proto.Message)
- func (m *TiUPReport) XXX_Size() int
- func (m *TiUPReport) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func FillNodeInfo ¶
FillNodeInfo fill HardwareInfo and Os info.
func NewSecret ¶
func NewSecret() string
NewSecret generates a new random string as encryption secret
func NodeInfoToText ¶
NodeInfoToText get telemetry.NodeInfo in text.
func SaltedHash ¶
SaltedHash preprend the secret before hashing input
Types ¶
type CPUInfo ¶
type CPUInfo struct { Numcpu int32 `protobuf:"varint,1,opt,name=numcpu,proto3" json:"numcpu,omitempty"` Sockets int32 `protobuf:"varint,2,opt,name=sockets,proto3" json:"sockets,omitempty"` Cores int32 `protobuf:"varint,3,opt,name=cores,proto3" json:"cores,omitempty"` Model string `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"` Mhz float32 `protobuf:"fixed32,5,opt,name=mhz,proto3" json:"mhz,omitempty"` Features []string `protobuf:"bytes,6,rep,name=features,proto3" json:"features,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CPUInfo) Descriptor ¶
func (*CPUInfo) GetFeatures ¶
func (*CPUInfo) GetSockets ¶
func (*CPUInfo) MarshalToSizedBuffer ¶
func (*CPUInfo) ProtoMessage ¶
func (*CPUInfo) ProtoMessage()
func (*CPUInfo) XXX_DiscardUnknown ¶
func (m *CPUInfo) XXX_DiscardUnknown()
func (*CPUInfo) XXX_Marshal ¶
func (*CPUInfo) XXX_Unmarshal ¶
type ClusterReport ¶
type ClusterReport struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` TakeMilliseconds uint64 `protobuf:"varint,3,opt,name=take_milliseconds,json=takeMilliseconds,proto3" json:"take_milliseconds,omitempty"` ExitCode int32 `protobuf:"varint,4,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` // only deploy and scale-out is setted: Topology string `protobuf:"bytes,5,opt,name=topology,proto3" json:"topology,omitempty"` Nodes []*NodeInfo `protobuf:"bytes,6,rep,name=nodes,proto3" json:"nodes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClusterReport) Descriptor ¶
func (*ClusterReport) Descriptor() ([]byte, []int)
func (*ClusterReport) GetCommand ¶
func (m *ClusterReport) GetCommand() string
func (*ClusterReport) GetExitCode ¶
func (m *ClusterReport) GetExitCode() int32
func (*ClusterReport) GetID ¶
func (m *ClusterReport) GetID() string
func (*ClusterReport) GetNodes ¶
func (m *ClusterReport) GetNodes() []*NodeInfo
func (*ClusterReport) GetTakeMilliseconds ¶
func (m *ClusterReport) GetTakeMilliseconds() uint64
func (*ClusterReport) GetTopology ¶
func (m *ClusterReport) GetTopology() string
func (*ClusterReport) Marshal ¶
func (m *ClusterReport) Marshal() (dAtA []byte, err error)
func (*ClusterReport) MarshalToSizedBuffer ¶
func (m *ClusterReport) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClusterReport) ProtoMessage ¶
func (*ClusterReport) ProtoMessage()
func (*ClusterReport) Reset ¶
func (m *ClusterReport) Reset()
func (*ClusterReport) Size ¶
func (m *ClusterReport) Size() (n int)
func (*ClusterReport) String ¶
func (m *ClusterReport) String() string
func (*ClusterReport) Unmarshal ¶
func (m *ClusterReport) Unmarshal(dAtA []byte) error
func (*ClusterReport) XXX_DiscardUnknown ¶
func (m *ClusterReport) XXX_DiscardUnknown()
func (*ClusterReport) XXX_Marshal ¶
func (m *ClusterReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterReport) XXX_Merge ¶
func (m *ClusterReport) XXX_Merge(src proto.Message)
func (*ClusterReport) XXX_Size ¶
func (m *ClusterReport) XXX_Size() int
func (*ClusterReport) XXX_Unmarshal ¶
func (m *ClusterReport) XXX_Unmarshal(b []byte) error
type HardwareInfo ¶
type HardwareInfo struct { Virtualization string `protobuf:"bytes,1,opt,name=virtualization,proto3" json:"virtualization,omitempty"` Cpu CPUInfo `protobuf:"bytes,2,opt,name=cpu,proto3" json:"cpu"` Mem MemInfo `protobuf:"bytes,3,opt,name=mem,proto3" json:"mem"` Loadavg15 float32 `protobuf:"fixed32,4,opt,name=loadavg15,proto3" json:"loadavg15,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func GetHardwareInfo ¶
func GetHardwareInfo(ctx context.Context) (info HardwareInfo, err error)
GetHardwareInfo get the HardwareInfo.
func (*HardwareInfo) Descriptor ¶
func (*HardwareInfo) Descriptor() ([]byte, []int)
func (*HardwareInfo) GetCpu ¶
func (m *HardwareInfo) GetCpu() CPUInfo
func (*HardwareInfo) GetLoadavg15 ¶
func (m *HardwareInfo) GetLoadavg15() float32
func (*HardwareInfo) GetMem ¶
func (m *HardwareInfo) GetMem() MemInfo
func (*HardwareInfo) GetVirtualization ¶
func (m *HardwareInfo) GetVirtualization() string
func (*HardwareInfo) Marshal ¶
func (m *HardwareInfo) Marshal() (dAtA []byte, err error)
func (*HardwareInfo) MarshalToSizedBuffer ¶
func (m *HardwareInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HardwareInfo) ProtoMessage ¶
func (*HardwareInfo) ProtoMessage()
func (*HardwareInfo) Reset ¶
func (m *HardwareInfo) Reset()
func (*HardwareInfo) Size ¶
func (m *HardwareInfo) Size() (n int)
func (*HardwareInfo) String ¶
func (m *HardwareInfo) String() string
func (*HardwareInfo) Unmarshal ¶
func (m *HardwareInfo) Unmarshal(dAtA []byte) error
func (*HardwareInfo) XXX_DiscardUnknown ¶
func (m *HardwareInfo) XXX_DiscardUnknown()
func (*HardwareInfo) XXX_Marshal ¶
func (m *HardwareInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HardwareInfo) XXX_Merge ¶
func (m *HardwareInfo) XXX_Merge(src proto.Message)
func (*HardwareInfo) XXX_Size ¶
func (m *HardwareInfo) XXX_Size() int
func (*HardwareInfo) XXX_Unmarshal ¶
func (m *HardwareInfo) XXX_Unmarshal(b []byte) error
type MemInfo ¶
type MemInfo struct { Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Available uint64 `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MemInfo) Descriptor ¶
func (*MemInfo) GetAvailable ¶
func (*MemInfo) MarshalToSizedBuffer ¶
func (*MemInfo) ProtoMessage ¶
func (*MemInfo) ProtoMessage()
func (*MemInfo) XXX_DiscardUnknown ¶
func (m *MemInfo) XXX_DiscardUnknown()
func (*MemInfo) XXX_Marshal ¶
func (*MemInfo) XXX_Unmarshal ¶
type Meta ¶
type Meta struct { UUID string `yaml:"uuid,omitempty"` Secret string `yaml:"secret,omitempty"` Status Status `yaml:"status,omitempty"` }
Meta data of telemetry.
func GetMeta ¶
func GetMeta(env *environment.Environment) (meta *Meta, fname string, err error)
GetMeta read the telemeta from disk
type NodeInfo ¶
type NodeInfo struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` Hardware HardwareInfo `protobuf:"bytes,6,opt,name=hardware,proto3" json:"hardware"` Os OSInfo `protobuf:"bytes,7,opt,name=os,proto3" json:"os"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NodeInfoFromText ¶
NodeInfoFromText get telemetry.NodeInfo from the text.
func (*NodeInfo) Descriptor ¶
func (*NodeInfo) GetHardware ¶
func (m *NodeInfo) GetHardware() HardwareInfo
func (*NodeInfo) MarshalToSizedBuffer ¶
func (*NodeInfo) ProtoMessage ¶
func (*NodeInfo) ProtoMessage()
func (*NodeInfo) XXX_DiscardUnknown ¶
func (m *NodeInfo) XXX_DiscardUnknown()
func (*NodeInfo) XXX_Marshal ¶
func (*NodeInfo) XXX_Unmarshal ¶
type OSInfo ¶
type OSInfo struct { Family string `protobuf:"bytes,1,opt,name=family,proto3" json:"family,omitempty"` Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OSInfo) Descriptor ¶
func (*OSInfo) GetPlatform ¶
func (*OSInfo) GetVersion ¶
func (*OSInfo) MarshalToSizedBuffer ¶
func (*OSInfo) ProtoMessage ¶
func (*OSInfo) ProtoMessage()
func (*OSInfo) XXX_DiscardUnknown ¶
func (m *OSInfo) XXX_DiscardUnknown()
func (*OSInfo) XXX_Marshal ¶
func (*OSInfo) XXX_Unmarshal ¶
type PlaygroundReport ¶
type PlaygroundReport struct { Topology string `protobuf:"bytes,1,opt,name=topology,proto3" json:"topology,omitempty"` TakeMilliseconds uint64 `protobuf:"varint,2,opt,name=take_milliseconds,json=takeMilliseconds,proto3" json:"take_milliseconds,omitempty"` ExitCode int32 `protobuf:"varint,3,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PlaygroundReport) Descriptor ¶
func (*PlaygroundReport) Descriptor() ([]byte, []int)
func (*PlaygroundReport) GetExitCode ¶
func (m *PlaygroundReport) GetExitCode() int32
func (*PlaygroundReport) GetTakeMilliseconds ¶
func (m *PlaygroundReport) GetTakeMilliseconds() uint64
func (*PlaygroundReport) GetTopology ¶
func (m *PlaygroundReport) GetTopology() string
func (*PlaygroundReport) Marshal ¶
func (m *PlaygroundReport) Marshal() (dAtA []byte, err error)
func (*PlaygroundReport) MarshalToSizedBuffer ¶
func (m *PlaygroundReport) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PlaygroundReport) ProtoMessage ¶
func (*PlaygroundReport) ProtoMessage()
func (*PlaygroundReport) Reset ¶
func (m *PlaygroundReport) Reset()
func (*PlaygroundReport) Size ¶
func (m *PlaygroundReport) Size() (n int)
func (*PlaygroundReport) String ¶
func (m *PlaygroundReport) String() string
func (*PlaygroundReport) Unmarshal ¶
func (m *PlaygroundReport) Unmarshal(dAtA []byte) error
func (*PlaygroundReport) XXX_DiscardUnknown ¶
func (m *PlaygroundReport) XXX_DiscardUnknown()
func (*PlaygroundReport) XXX_Marshal ¶
func (m *PlaygroundReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlaygroundReport) XXX_Merge ¶
func (m *PlaygroundReport) XXX_Merge(src proto.Message)
func (*PlaygroundReport) XXX_Size ¶
func (m *PlaygroundReport) XXX_Size() int
func (*PlaygroundReport) XXX_Unmarshal ¶
func (m *PlaygroundReport) XXX_Unmarshal(b []byte) error
type Report ¶
type Report struct { InstallationUUID string `protobuf:"bytes,1,opt,name=installationUUID,proto3" json:"installationUUID,omitempty"` EventUUID string `protobuf:"bytes,2,opt,name=eventUUID,proto3" json:"eventUUID,omitempty"` EventUnixTimestamp int64 `protobuf:"varint,3,opt,name=event_unix_timestamp,json=eventUnixTimestamp,proto3" json:"event_unix_timestamp,omitempty"` Version *TiUPInfo `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // Types that are valid to be assigned to EventDetail: // *Report_Tiup // *Report_Cluster // *Report_Playground EventDetail isReport_EventDetail `protobuf_oneof:"event_detail"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Report) Descriptor ¶
func (*Report) GetCluster ¶
func (m *Report) GetCluster() *ClusterReport
func (*Report) GetEventDetail ¶
func (m *Report) GetEventDetail() isReport_EventDetail
func (*Report) GetEventUUID ¶
func (*Report) GetEventUnixTimestamp ¶
func (*Report) GetInstallationUUID ¶
func (*Report) GetPlayground ¶
func (m *Report) GetPlayground() *PlaygroundReport
func (*Report) GetTiup ¶
func (m *Report) GetTiup() *TiUPReport
func (*Report) GetVersion ¶
func (*Report) MarshalToSizedBuffer ¶
func (*Report) ProtoMessage ¶
func (*Report) ProtoMessage()
func (*Report) XXX_DiscardUnknown ¶
func (m *Report) XXX_DiscardUnknown()
func (*Report) XXX_Marshal ¶
func (*Report) XXX_OneofWrappers ¶
func (*Report) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Report) XXX_Unmarshal ¶
type Report_Cluster ¶
type Report_Cluster struct {
Cluster *ClusterReport `protobuf:"bytes,6,opt,name=cluster,proto3,oneof" json:"cluster,omitempty"`
}
func (*Report_Cluster) MarshalToSizedBuffer ¶
func (m *Report_Cluster) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Report_Cluster) Size ¶
func (m *Report_Cluster) Size() (n int)
type Report_Playground ¶
type Report_Playground struct {
Playground *PlaygroundReport `protobuf:"bytes,7,opt,name=playground,proto3,oneof" json:"playground,omitempty"`
}
func (*Report_Playground) MarshalTo ¶
func (m *Report_Playground) MarshalTo(dAtA []byte) (int, error)
func (*Report_Playground) MarshalToSizedBuffer ¶
func (m *Report_Playground) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Report_Playground) Size ¶
func (m *Report_Playground) Size() (n int)
type Report_Tiup ¶
type Report_Tiup struct {
Tiup *TiUPReport `protobuf:"bytes,5,opt,name=tiup,proto3,oneof" json:"tiup,omitempty"`
}
func (*Report_Tiup) MarshalToSizedBuffer ¶
func (m *Report_Tiup) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Report_Tiup) Size ¶
func (m *Report_Tiup) Size() (n int)
type Telemetry ¶
type Telemetry struct {
// contains filtered or unexported fields
}
Telemetry control telemetry.
type TiUPInfo ¶
type TiUPInfo struct { TiUPVersion string `protobuf:"bytes,1,opt,name=TiUPVersion,proto3" json:"TiUPVersion,omitempty"` ComponentVersion string `protobuf:"bytes,2,opt,name=ComponentVersion,proto3" json:"ComponentVersion,omitempty"` GitRef string `protobuf:"bytes,3,opt,name=GitRef,proto3" json:"GitRef,omitempty"` GitCommit string `protobuf:"bytes,4,opt,name=GitCommit,proto3" json:"GitCommit,omitempty"` VerName string `protobuf:"bytes,5,opt,name=VerName,proto3" json:"VerName,omitempty"` Os string `protobuf:"bytes,6,opt,name=os,proto3" json:"os,omitempty"` Arch string `protobuf:"bytes,7,opt,name=arch,proto3" json:"arch,omitempty"` Go string `protobuf:"bytes,8,opt,name=go,proto3" json:"go,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TiUPInfo) Descriptor ¶
func (*TiUPInfo) GetComponentVersion ¶
func (*TiUPInfo) GetGitCommit ¶
func (*TiUPInfo) GetTiUPVersion ¶
func (*TiUPInfo) GetVerName ¶
func (*TiUPInfo) MarshalToSizedBuffer ¶
func (*TiUPInfo) ProtoMessage ¶
func (*TiUPInfo) ProtoMessage()
func (*TiUPInfo) XXX_DiscardUnknown ¶
func (m *TiUPInfo) XXX_DiscardUnknown()
func (*TiUPInfo) XXX_Marshal ¶
func (*TiUPInfo) XXX_Unmarshal ¶
type TiUPReport ¶
type TiUPReport struct { Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` TakeMilliseconds uint64 `protobuf:"varint,3,opt,name=take_milliseconds,json=takeMilliseconds,proto3" json:"take_milliseconds,omitempty"` ExitCode int32 `protobuf:"varint,4,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` CustomMirror bool `protobuf:"varint,5,opt,name=custom_mirror,json=customMirror,proto3" json:"custom_mirror,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TiUPReport) Descriptor ¶
func (*TiUPReport) Descriptor() ([]byte, []int)
func (*TiUPReport) GetCommand ¶
func (m *TiUPReport) GetCommand() string
func (*TiUPReport) GetCustomMirror ¶
func (m *TiUPReport) GetCustomMirror() bool
func (*TiUPReport) GetExitCode ¶
func (m *TiUPReport) GetExitCode() int32
func (*TiUPReport) GetTag ¶
func (m *TiUPReport) GetTag() string
func (*TiUPReport) GetTakeMilliseconds ¶
func (m *TiUPReport) GetTakeMilliseconds() uint64
func (*TiUPReport) Marshal ¶
func (m *TiUPReport) Marshal() (dAtA []byte, err error)
func (*TiUPReport) MarshalToSizedBuffer ¶
func (m *TiUPReport) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TiUPReport) ProtoMessage ¶
func (*TiUPReport) ProtoMessage()
func (*TiUPReport) Reset ¶
func (m *TiUPReport) Reset()
func (*TiUPReport) Size ¶
func (m *TiUPReport) Size() (n int)
func (*TiUPReport) String ¶
func (m *TiUPReport) String() string
func (*TiUPReport) Unmarshal ¶
func (m *TiUPReport) Unmarshal(dAtA []byte) error
func (*TiUPReport) XXX_DiscardUnknown ¶
func (m *TiUPReport) XXX_DiscardUnknown()
func (*TiUPReport) XXX_Marshal ¶
func (m *TiUPReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TiUPReport) XXX_Merge ¶
func (m *TiUPReport) XXX_Merge(src proto.Message)
func (*TiUPReport) XXX_Size ¶
func (m *TiUPReport) XXX_Size() int
func (*TiUPReport) XXX_Unmarshal ¶
func (m *TiUPReport) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.