mirror of https://github.com/linkerd/linkerd2.git
150 lines
5.7 KiB
Go
150 lines
5.7 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: common/healthcheck/healthcheck.proto
|
|
|
|
/*
|
|
Package conduit_common_healthcheck is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
common/healthcheck/healthcheck.proto
|
|
|
|
It has these top-level messages:
|
|
CheckResult
|
|
SelfCheckRequest
|
|
SelfCheckResponse
|
|
*/
|
|
package conduit_common_healthcheck
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type CheckStatus int32
|
|
|
|
const (
|
|
CheckStatus_OK CheckStatus = 0
|
|
CheckStatus_FAIL CheckStatus = 1
|
|
CheckStatus_ERROR CheckStatus = 2
|
|
)
|
|
|
|
var CheckStatus_name = map[int32]string{
|
|
0: "OK",
|
|
1: "FAIL",
|
|
2: "ERROR",
|
|
}
|
|
var CheckStatus_value = map[string]int32{
|
|
"OK": 0,
|
|
"FAIL": 1,
|
|
"ERROR": 2,
|
|
}
|
|
|
|
func (x CheckStatus) String() string {
|
|
return proto.EnumName(CheckStatus_name, int32(x))
|
|
}
|
|
func (CheckStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
type CheckResult struct {
|
|
SubsystemName string `protobuf:"bytes,1,opt,name=SubsystemName" json:"SubsystemName,omitempty"`
|
|
CheckDescription string `protobuf:"bytes,2,opt,name=CheckDescription" json:"CheckDescription,omitempty"`
|
|
Status CheckStatus `protobuf:"varint,3,opt,name=Status,enum=conduit.common.healthcheck.CheckStatus" json:"Status,omitempty"`
|
|
FriendlyMessageToUser string `protobuf:"bytes,4,opt,name=FriendlyMessageToUser" json:"FriendlyMessageToUser,omitempty"`
|
|
}
|
|
|
|
func (m *CheckResult) Reset() { *m = CheckResult{} }
|
|
func (m *CheckResult) String() string { return proto.CompactTextString(m) }
|
|
func (*CheckResult) ProtoMessage() {}
|
|
func (*CheckResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
func (m *CheckResult) GetSubsystemName() string {
|
|
if m != nil {
|
|
return m.SubsystemName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CheckResult) GetCheckDescription() string {
|
|
if m != nil {
|
|
return m.CheckDescription
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CheckResult) GetStatus() CheckStatus {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return CheckStatus_OK
|
|
}
|
|
|
|
func (m *CheckResult) GetFriendlyMessageToUser() string {
|
|
if m != nil {
|
|
return m.FriendlyMessageToUser
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SelfCheckRequest struct {
|
|
}
|
|
|
|
func (m *SelfCheckRequest) Reset() { *m = SelfCheckRequest{} }
|
|
func (m *SelfCheckRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*SelfCheckRequest) ProtoMessage() {}
|
|
func (*SelfCheckRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
type SelfCheckResponse struct {
|
|
Results []*CheckResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
|
|
}
|
|
|
|
func (m *SelfCheckResponse) Reset() { *m = SelfCheckResponse{} }
|
|
func (m *SelfCheckResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*SelfCheckResponse) ProtoMessage() {}
|
|
func (*SelfCheckResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
|
|
|
func (m *SelfCheckResponse) GetResults() []*CheckResult {
|
|
if m != nil {
|
|
return m.Results
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*CheckResult)(nil), "conduit.common.healthcheck.CheckResult")
|
|
proto.RegisterType((*SelfCheckRequest)(nil), "conduit.common.healthcheck.SelfCheckRequest")
|
|
proto.RegisterType((*SelfCheckResponse)(nil), "conduit.common.healthcheck.SelfCheckResponse")
|
|
proto.RegisterEnum("conduit.common.healthcheck.CheckStatus", CheckStatus_name, CheckStatus_value)
|
|
}
|
|
|
|
func init() { proto.RegisterFile("common/healthcheck/healthcheck.proto", fileDescriptor0) }
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 276 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xcf, 0x4b, 0xfb, 0x40,
|
|
0x10, 0xc5, 0xbf, 0x9b, 0xf6, 0x1b, 0xed, 0x14, 0x25, 0x2e, 0x08, 0xc1, 0x53, 0x08, 0x05, 0x43,
|
|
0x0e, 0x11, 0xd4, 0xbb, 0x14, 0xb5, 0x20, 0xfe, 0x28, 0x6c, 0xd4, 0x7b, 0x9a, 0x8e, 0x26, 0x98,
|
|
0x64, 0xe3, 0xce, 0xee, 0xa1, 0xff, 0xa8, 0x7f, 0x8f, 0xb8, 0x89, 0x10, 0x51, 0xc1, 0xdb, 0xf0,
|
|
0xf6, 0x7d, 0xd8, 0x37, 0x6f, 0x60, 0x96, 0xcb, 0xba, 0x96, 0xcd, 0x51, 0x81, 0x59, 0xa5, 0x8b,
|
|
0xbc, 0xc0, 0xfc, 0x65, 0x38, 0x27, 0xad, 0x92, 0x5a, 0xf2, 0x83, 0x5c, 0x36, 0x6b, 0x53, 0xea,
|
|
0xa4, 0x73, 0x27, 0x03, 0x47, 0xf8, 0xc6, 0x60, 0x7a, 0xfe, 0x31, 0x09, 0x24, 0x53, 0x69, 0x3e,
|
|
0x83, 0x9d, 0xd4, 0xac, 0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