diff --git a/protobuf/fleet.pb.go b/protobuf/fleet.pb.go index 9eb28e3bf..1aaab48fc 100644 --- a/protobuf/fleet.pb.go +++ b/protobuf/fleet.pb.go @@ -1,14 +1,16 @@ // Code generated by protoc-gen-gogo. -// source: github.com/coreos/fleet/rpc/fleet.proto +// source: fleet.proto // DO NOT EDIT! /* Package rpc is a generated protocol buffer package. It is generated from these files: - github.com/coreos/fleet/rpc/fleet.proto + fleet.proto It has these top-level messages: + HealthCheckRequest + HealthCheckResponse MachineProperties UpdatedState UnitStateFilter @@ -33,23 +35,20 @@ */ package rpc -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "github.com/gogo/protobuf/gogoproto" +import ( + "fmt" -import strconv "strconv" + proto "github.com/gogo/protobuf/proto" -import strings "strings" -import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" -import sort "sort" -import reflect "reflect" + math "math" -import ( context "golang.org/x/net/context" + grpc "google.golang.org/grpc" ) +import _ "github.com/gogo/protobuf/gogoproto" + import io "io" // Reference imports to suppress errors if they are not otherwise used. @@ -57,6 +56,10 @@ 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. +const _ = proto.GoGoProtoPackageIsVersion1 + type TargetState int32 const ( @@ -76,54 +79,115 @@ var TargetState_value = map[string]int32{ "LAUNCHED": 2, } +func (x TargetState) String() string { + return proto.EnumName(TargetState_name, int32(x)) +} +func (TargetState) EnumDescriptor() ([]byte, []int) { return fileDescriptorFleet, []int{0} } + +type HealthCheckResponse_ServingStatus int32 + +const ( + HealthCheckResponse_UNKNOWN HealthCheckResponse_ServingStatus = 0 + HealthCheckResponse_SERVING HealthCheckResponse_ServingStatus = 1 + HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2 +) + +var HealthCheckResponse_ServingStatus_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SERVING", + 2: "NOT_SERVING", +} +var HealthCheckResponse_ServingStatus_value = map[string]int32{ + "UNKNOWN": 0, + "SERVING": 1, + "NOT_SERVING": 2, +} + +func (x HealthCheckResponse_ServingStatus) String() string { + return proto.EnumName(HealthCheckResponse_ServingStatus_name, int32(x)) +} +func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptorFleet, []int{1, 0} +} + +type HealthCheckRequest struct { + Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` +} + +func (m *HealthCheckRequest) Reset() { *m = HealthCheckRequest{} } +func (m *HealthCheckRequest) String() string { return proto.CompactTextString(m) } +func (*HealthCheckRequest) ProtoMessage() {} +func (*HealthCheckRequest) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{0} } + +type HealthCheckResponse struct { + Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=rpc.HealthCheckResponse_ServingStatus" json:"status,omitempty"` +} + +func (m *HealthCheckResponse) Reset() { *m = HealthCheckResponse{} } +func (m *HealthCheckResponse) String() string { return proto.CompactTextString(m) } +func (*HealthCheckResponse) ProtoMessage() {} +func (*HealthCheckResponse) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{1} } + type MachineProperties struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *MachineProperties) Reset() { *m = MachineProperties{} } -func (*MachineProperties) ProtoMessage() {} +func (m *MachineProperties) Reset() { *m = MachineProperties{} } +func (m *MachineProperties) String() string { return proto.CompactTextString(m) } +func (*MachineProperties) ProtoMessage() {} +func (*MachineProperties) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{2} } type UpdatedState struct { - UnitIds []string `protobuf:"bytes,1,rep,name=unit_ids" json:"unit_ids,omitempty"` + UnitIds []string `protobuf:"bytes,1,rep,name=unit_ids,json=unitIds" json:"unit_ids,omitempty"` } -func (m *UpdatedState) Reset() { *m = UpdatedState{} } -func (*UpdatedState) ProtoMessage() {} +func (m *UpdatedState) Reset() { *m = UpdatedState{} } +func (m *UpdatedState) String() string { return proto.CompactTextString(m) } +func (*UpdatedState) ProtoMessage() {} +func (*UpdatedState) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{3} } type UnitStateFilter struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - LoadState string `protobuf:"bytes,3,opt,name=load_state,proto3" json:"load_state,omitempty"` - ActiveState string `protobuf:"bytes,4,opt,name=active_state,proto3" json:"active_state,omitempty"` - SubState string `protobuf:"bytes,5,opt,name=sub_state,proto3" json:"sub_state,omitempty"` - MachineID string `protobuf:"bytes,6,opt,name=machine_id,proto3" json:"machine_id,omitempty"` + LoadState string `protobuf:"bytes,3,opt,name=load_state,json=loadState,proto3" json:"load_state,omitempty"` + ActiveState string `protobuf:"bytes,4,opt,name=active_state,json=activeState,proto3" json:"active_state,omitempty"` + SubState string `protobuf:"bytes,5,opt,name=sub_state,json=subState,proto3" json:"sub_state,omitempty"` + MachineID string `protobuf:"bytes,6,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` } -func (m *UnitStateFilter) Reset() { *m = UnitStateFilter{} } -func (*UnitStateFilter) ProtoMessage() {} +func (m *UnitStateFilter) Reset() { *m = UnitStateFilter{} } +func (m *UnitStateFilter) String() string { return proto.CompactTextString(m) } +func (*UnitStateFilter) ProtoMessage() {} +func (*UnitStateFilter) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{4} } type UnitFilter struct { - MachineID string `protobuf:"bytes,1,opt,name=machine_id,proto3" json:"machine_id,omitempty"` + MachineID string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` } -func (m *UnitFilter) Reset() { *m = UnitFilter{} } -func (*UnitFilter) ProtoMessage() {} +func (m *UnitFilter) Reset() { *m = UnitFilter{} } +func (m *UnitFilter) String() string { return proto.CompactTextString(m) } +func (*UnitFilter) ProtoMessage() {} +func (*UnitFilter) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{5} } type ScheduleUnitRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - MachineID string `protobuf:"bytes,2,opt,name=machine_id,proto3" json:"machine_id,omitempty"` + MachineID string `protobuf:"bytes,2,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` } -func (m *ScheduleUnitRequest) Reset() { *m = ScheduleUnitRequest{} } -func (*ScheduleUnitRequest) ProtoMessage() {} +func (m *ScheduleUnitRequest) Reset() { *m = ScheduleUnitRequest{} } +func (m *ScheduleUnitRequest) String() string { return proto.CompactTextString(m) } +func (*ScheduleUnitRequest) ProtoMessage() {} +func (*ScheduleUnitRequest) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{6} } type UnscheduleUnitRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - MachineID string `protobuf:"bytes,2,opt,name=machine_id,proto3" json:"machine_id,omitempty"` + MachineID string `protobuf:"bytes,2,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` } -func (m *UnscheduleUnitRequest) Reset() { *m = UnscheduleUnitRequest{} } -func (*UnscheduleUnitRequest) ProtoMessage() {} +func (m *UnscheduleUnitRequest) Reset() { *m = UnscheduleUnitRequest{} } +func (m *UnscheduleUnitRequest) String() string { return proto.CompactTextString(m) } +func (*UnscheduleUnitRequest) ProtoMessage() {} +func (*UnscheduleUnitRequest) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{7} } type SaveUnitStateRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` @@ -131,8 +195,10 @@ type SaveUnitStateRequest struct { TTL int32 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"` } -func (m *SaveUnitStateRequest) Reset() { *m = SaveUnitStateRequest{} } -func (*SaveUnitStateRequest) ProtoMessage() {} +func (m *SaveUnitStateRequest) Reset() { *m = SaveUnitStateRequest{} } +func (m *SaveUnitStateRequest) String() string { return proto.CompactTextString(m) } +func (*SaveUnitStateRequest) ProtoMessage() {} +func (*SaveUnitStateRequest) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{8} } func (m *SaveUnitStateRequest) GetState() *UnitState { if m != nil { @@ -143,25 +209,31 @@ func (m *SaveUnitStateRequest) GetState() *UnitState { type Heartbeat struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - MachineID string `protobuf:"bytes,2,opt,name=machine_id,proto3" json:"machine_id,omitempty"` + MachineID string `protobuf:"bytes,2,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` TTL int32 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"` } -func (m *Heartbeat) Reset() { *m = Heartbeat{} } -func (*Heartbeat) ProtoMessage() {} +func (m *Heartbeat) Reset() { *m = Heartbeat{} } +func (m *Heartbeat) String() string { return proto.CompactTextString(m) } +func (*Heartbeat) ProtoMessage() {} +func (*Heartbeat) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{9} } type GenericReply struct { } -func (m *GenericReply) Reset() { *m = GenericReply{} } -func (*GenericReply) ProtoMessage() {} +func (m *GenericReply) Reset() { *m = GenericReply{} } +func (m *GenericReply) String() string { return proto.CompactTextString(m) } +func (*GenericReply) ProtoMessage() {} +func (*GenericReply) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{10} } type Units struct { Units []Unit `protobuf:"bytes,1,rep,name=units" json:"units"` } -func (m *Units) Reset() { *m = Units{} } -func (*Units) ProtoMessage() {} +func (m *Units) Reset() { *m = Units{} } +func (m *Units) String() string { return proto.CompactTextString(m) } +func (*Units) ProtoMessage() {} +func (*Units) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{11} } func (m *Units) GetUnits() []Unit { if m != nil { @@ -171,11 +243,13 @@ func (m *Units) GetUnits() []Unit { } type UnitStates struct { - UnitStates []*UnitState `protobuf:"bytes,1,rep,name=unit_states" json:"unit_states,omitempty"` + UnitStates []*UnitState `protobuf:"bytes,1,rep,name=unit_states,json=unitStates" json:"unit_states,omitempty"` } -func (m *UnitStates) Reset() { *m = UnitStates{} } -func (*UnitStates) ProtoMessage() {} +func (m *UnitStates) Reset() { *m = UnitStates{} } +func (m *UnitStates) String() string { return proto.CompactTextString(m) } +func (*UnitStates) ProtoMessage() {} +func (*UnitStates) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{12} } func (m *UnitStates) GetUnitStates() []*UnitState { if m != nil { @@ -187,21 +261,25 @@ func (m *UnitStates) GetUnitStates() []*UnitState { type UnitState struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - LoadState string `protobuf:"bytes,3,opt,name=load_state,proto3" json:"load_state,omitempty"` - ActiveState string `protobuf:"bytes,4,opt,name=active_state,proto3" json:"active_state,omitempty"` - SubState string `protobuf:"bytes,5,opt,name=sub_state,proto3" json:"sub_state,omitempty"` - MachineID string `protobuf:"bytes,6,opt,name=machine_id,proto3" json:"machine_id,omitempty"` + LoadState string `protobuf:"bytes,3,opt,name=load_state,json=loadState,proto3" json:"load_state,omitempty"` + ActiveState string `protobuf:"bytes,4,opt,name=active_state,json=activeState,proto3" json:"active_state,omitempty"` + SubState string `protobuf:"bytes,5,opt,name=sub_state,json=subState,proto3" json:"sub_state,omitempty"` + MachineID string `protobuf:"bytes,6,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` } -func (m *UnitState) Reset() { *m = UnitState{} } -func (*UnitState) ProtoMessage() {} +func (m *UnitState) Reset() { *m = UnitState{} } +func (m *UnitState) String() string { return proto.CompactTextString(m) } +func (*UnitState) ProtoMessage() {} +func (*UnitState) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{13} } type ScheduledUnits struct { Units []ScheduledUnit `protobuf:"bytes,1,rep,name=units" json:"units"` } -func (m *ScheduledUnits) Reset() { *m = ScheduledUnits{} } -func (*ScheduledUnits) ProtoMessage() {} +func (m *ScheduledUnits) Reset() { *m = ScheduledUnits{} } +func (m *ScheduledUnits) String() string { return proto.CompactTextString(m) } +func (*ScheduledUnits) ProtoMessage() {} +func (*ScheduledUnits) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{14} } func (m *ScheduledUnits) GetUnits() []ScheduledUnit { if m != nil { @@ -212,28 +290,34 @@ func (m *ScheduledUnits) GetUnits() []ScheduledUnit { type ScheduledUnit struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - CurrentState TargetState `protobuf:"varint,2,opt,name=current_state,proto3,enum=rpc.TargetState" json:"current_state,omitempty"` - MachineID string `protobuf:"bytes,3,opt,name=machine_id,proto3" json:"machine_id,omitempty"` + CurrentState TargetState `protobuf:"varint,2,opt,name=current_state,json=currentState,proto3,enum=rpc.TargetState" json:"current_state,omitempty"` + MachineID string `protobuf:"bytes,3,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"` } -func (m *ScheduledUnit) Reset() { *m = ScheduledUnit{} } -func (*ScheduledUnit) ProtoMessage() {} +func (m *ScheduledUnit) Reset() { *m = ScheduledUnit{} } +func (m *ScheduledUnit) String() string { return proto.CompactTextString(m) } +func (*ScheduledUnit) ProtoMessage() {} +func (*ScheduledUnit) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{15} } type UnitName struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (m *UnitName) Reset() { *m = UnitName{} } -func (*UnitName) ProtoMessage() {} +func (m *UnitName) Reset() { *m = UnitName{} } +func (m *UnitName) String() string { return proto.CompactTextString(m) } +func (*UnitName) ProtoMessage() {} +func (*UnitName) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{16} } type Unit struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Unit UnitFile `protobuf:"bytes,2,opt,name=unit" json:"unit"` - DesiredState TargetState `protobuf:"varint,3,opt,name=desired_state,proto3,enum=rpc.TargetState" json:"desired_state,omitempty"` + DesiredState TargetState `protobuf:"varint,3,opt,name=desired_state,json=desiredState,proto3,enum=rpc.TargetState" json:"desired_state,omitempty"` } -func (m *Unit) Reset() { *m = Unit{} } -func (*Unit) ProtoMessage() {} +func (m *Unit) Reset() { *m = Unit{} } +func (m *Unit) String() string { return proto.CompactTextString(m) } +func (*Unit) ProtoMessage() {} +func (*Unit) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{17} } func (m *Unit) GetUnit() UnitFile { if m != nil { @@ -249,12 +333,13 @@ type MaybeScheduledUnit struct { IsScheduled isMaybeScheduledUnit_IsScheduled `protobuf_oneof:"is_scheduled"` } -func (m *MaybeScheduledUnit) Reset() { *m = MaybeScheduledUnit{} } -func (*MaybeScheduledUnit) ProtoMessage() {} +func (m *MaybeScheduledUnit) Reset() { *m = MaybeScheduledUnit{} } +func (m *MaybeScheduledUnit) String() string { return proto.CompactTextString(m) } +func (*MaybeScheduledUnit) ProtoMessage() {} +func (*MaybeScheduledUnit) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{18} } type isMaybeScheduledUnit_IsScheduled interface { isMaybeScheduledUnit_IsScheduled() - Equal(interface{}) bool MarshalTo([]byte) (int, error) Size() int } @@ -291,8 +376,8 @@ func (m *MaybeScheduledUnit) GetNotfound() *NotFound { } // XXX_OneofFuncs is for the internal use of the proto package. -func (*MaybeScheduledUnit) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), []interface{}) { - return _MaybeScheduledUnit_OneofMarshaler, _MaybeScheduledUnit_OneofUnmarshaler, []interface{}{ +func (*MaybeScheduledUnit) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _MaybeScheduledUnit_OneofMarshaler, _MaybeScheduledUnit_OneofUnmarshaler, _MaybeScheduledUnit_OneofSizer, []interface{}{ (*MaybeScheduledUnit_Unit)(nil), (*MaybeScheduledUnit_Notfound)(nil), } @@ -343,6 +428,27 @@ func _MaybeScheduledUnit_OneofUnmarshaler(msg proto.Message, tag, wire int, b *p } } +func _MaybeScheduledUnit_OneofSizer(msg proto.Message) (n int) { + m := msg.(*MaybeScheduledUnit) + // is_scheduled + switch x := m.IsScheduled.(type) { + case *MaybeScheduledUnit_Unit: + s := proto.Size(x.Unit) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *MaybeScheduledUnit_Notfound: + s := proto.Size(x.Notfound) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + type MaybeUnit struct { // Types that are valid to be assigned to HasUnit: // *MaybeUnit_Unit @@ -350,12 +456,13 @@ type MaybeUnit struct { HasUnit isMaybeUnit_HasUnit `protobuf_oneof:"has_unit"` } -func (m *MaybeUnit) Reset() { *m = MaybeUnit{} } -func (*MaybeUnit) ProtoMessage() {} +func (m *MaybeUnit) Reset() { *m = MaybeUnit{} } +func (m *MaybeUnit) String() string { return proto.CompactTextString(m) } +func (*MaybeUnit) ProtoMessage() {} +func (*MaybeUnit) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{19} } type isMaybeUnit_HasUnit interface { isMaybeUnit_HasUnit() - Equal(interface{}) bool MarshalTo([]byte) (int, error) Size() int } @@ -392,8 +499,8 @@ func (m *MaybeUnit) GetNotfound() *NotFound { } // XXX_OneofFuncs is for the internal use of the proto package. -func (*MaybeUnit) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), []interface{}) { - return _MaybeUnit_OneofMarshaler, _MaybeUnit_OneofUnmarshaler, []interface{}{ +func (*MaybeUnit) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _MaybeUnit_OneofMarshaler, _MaybeUnit_OneofUnmarshaler, _MaybeUnit_OneofSizer, []interface{}{ (*MaybeUnit_Unit)(nil), (*MaybeUnit_Notfound)(nil), } @@ -444,18 +551,43 @@ func _MaybeUnit_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buff } } +func _MaybeUnit_OneofSizer(msg proto.Message) (n int) { + m := msg.(*MaybeUnit) + // has_unit + switch x := m.HasUnit.(type) { + case *MaybeUnit_Unit: + s := proto.Size(x.Unit) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *MaybeUnit_Notfound: + s := proto.Size(x.Notfound) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + type NotFound struct { } -func (m *NotFound) Reset() { *m = NotFound{} } -func (*NotFound) ProtoMessage() {} +func (m *NotFound) Reset() { *m = NotFound{} } +func (m *NotFound) String() string { return proto.CompactTextString(m) } +func (*NotFound) ProtoMessage() {} +func (*NotFound) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{20} } type UnitFile struct { - UnitOptions []UnitOption `protobuf:"bytes,1,rep,name=unit_options" json:"unit_options"` + UnitOptions []UnitOption `protobuf:"bytes,1,rep,name=unit_options,json=unitOptions" json:"unit_options"` } -func (m *UnitFile) Reset() { *m = UnitFile{} } -func (*UnitFile) ProtoMessage() {} +func (m *UnitFile) Reset() { *m = UnitFile{} } +func (m *UnitFile) String() string { return proto.CompactTextString(m) } +func (*UnitFile) ProtoMessage() {} +func (*UnitFile) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{21} } func (m *UnitFile) GetUnitOptions() []UnitOption { if m != nil { @@ -470,55 +602,14 @@ type UnitOption struct { Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` } -func (m *UnitOption) Reset() { *m = UnitOption{} } -func (*UnitOption) ProtoMessage() {} - -// Health chechk for the Registry serviceName -type HealthCheckResponse_ServingStatus int32 - -const ( - HealthCheckResponse_UNKNOWN HealthCheckResponse_ServingStatus = 0 - HealthCheckResponse_SERVING HealthCheckResponse_ServingStatus = 1 - HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2 -) - -var HealthCheckResponse_ServingStatus_name = map[int32]string{ - 0: "UNKNOWN", - 1: "SERVING", - 2: "NOT_SERVING", -} -var HealthCheckResponse_ServingStatus_value = map[string]int32{ - "UNKNOWN": 0, - "SERVING": 1, - "NOT_SERVING": 2, -} - -func (x HealthCheckResponse_ServingStatus) String() string { - return proto.EnumName(HealthCheckResponse_ServingStatus_name, int32(x)) -} -func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{1, 0} -} - -type HealthCheckRequest struct { - Service string `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"` -} - -func (m *HealthCheckRequest) Reset() { *m = HealthCheckRequest{} } -func (m *HealthCheckRequest) String() string { return proto.CompactTextString(m) } -func (*HealthCheckRequest) ProtoMessage() {} -func (*HealthCheckRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -type HealthCheckResponse struct { - Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,enum=rpc.HealthCheckResponse_ServingStatus" json:"status,omitempty"` -} - -func (m *HealthCheckResponse) Reset() { *m = HealthCheckResponse{} } -func (m *HealthCheckResponse) String() string { return proto.CompactTextString(m) } -func (*HealthCheckResponse) ProtoMessage() {} -func (*HealthCheckResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (m *UnitOption) Reset() { *m = UnitOption{} } +func (m *UnitOption) String() string { return proto.CompactTextString(m) } +func (*UnitOption) ProtoMessage() {} +func (*UnitOption) Descriptor() ([]byte, []int) { return fileDescriptorFleet, []int{22} } func init() { + proto.RegisterType((*HealthCheckRequest)(nil), "rpc.HealthCheckRequest") + proto.RegisterType((*HealthCheckResponse)(nil), "rpc.HealthCheckResponse") proto.RegisterType((*MachineProperties)(nil), "rpc.MachineProperties") proto.RegisterType((*UpdatedState)(nil), "rpc.UpdatedState") proto.RegisterType((*UnitStateFilter)(nil), "rpc.UnitStateFilter") @@ -541,1046 +632,17 @@ func init() { proto.RegisterType((*UnitFile)(nil), "rpc.UnitFile") proto.RegisterType((*UnitOption)(nil), "rpc.UnitOption") proto.RegisterEnum("rpc.TargetState", TargetState_name, TargetState_value) - - proto.RegisterType((*HealthCheckRequest)(nil), "rpc.HealthCheckRequest") - proto.RegisterType((*HealthCheckResponse)(nil), "rpc.HealthCheckResponse") proto.RegisterEnum("rpc.HealthCheckResponse_ServingStatus", HealthCheckResponse_ServingStatus_name, HealthCheckResponse_ServingStatus_value) } -func (x TargetState) String() string { - s, ok := TargetState_name[int32(x)] - if ok { - return s - } - return strconv.Itoa(int(x)) -} -func (this *MachineProperties) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*MachineProperties) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if this.Id != that1.Id { - return false - } - return true -} -func (this *UpdatedState) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*UpdatedState) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if len(this.UnitIds) != len(that1.UnitIds) { - return false - } - for i := range this.UnitIds { - if this.UnitIds[i] != that1.UnitIds[i] { - return false - } - } - return true -} -func (this *UnitStateFilter) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*UnitStateFilter) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - if this.Hash != that1.Hash { - return false - } - if this.LoadState != that1.LoadState { - return false - } - if this.ActiveState != that1.ActiveState { - return false - } - if this.SubState != that1.SubState { - return false - } - if this.MachineID != that1.MachineID { - return false - } - return true -} -func (this *UnitFilter) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*UnitFilter) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if this.MachineID != that1.MachineID { - return false - } - return true -} -func (this *ScheduleUnitRequest) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*ScheduleUnitRequest) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - if this.MachineID != that1.MachineID { - return false - } - return true -} -func (this *UnscheduleUnitRequest) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*UnscheduleUnitRequest) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - if this.MachineID != that1.MachineID { - return false - } - return true -} -func (this *SaveUnitStateRequest) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*SaveUnitStateRequest) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - if !this.State.Equal(that1.State) { - return false - } - if this.TTL != that1.TTL { - return false - } - return true -} -func (this *Heartbeat) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*Heartbeat) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - if this.MachineID != that1.MachineID { - return false - } - if this.TTL != that1.TTL { - return false - } - return true -} -func (this *GenericReply) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*GenericReply) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - return true -} -func (this *Units) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*Units) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if len(this.Units) != len(that1.Units) { - return false - } - for i := range this.Units { - if !this.Units[i].Equal(&that1.Units[i]) { - return false - } - } - return true -} -func (this *UnitStates) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*UnitStates) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if len(this.UnitStates) != len(that1.UnitStates) { - return false - } - for i := range this.UnitStates { - if !this.UnitStates[i].Equal(that1.UnitStates[i]) { - return false - } - } - return true -} -func (this *UnitState) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*UnitState) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - if this.Hash != that1.Hash { - return false - } - if this.LoadState != that1.LoadState { - return false - } - if this.ActiveState != that1.ActiveState { - return false - } - if this.SubState != that1.SubState { - return false - } - if this.MachineID != that1.MachineID { - return false - } - return true -} -func (this *ScheduledUnits) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*ScheduledUnits) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if len(this.Units) != len(that1.Units) { - return false - } - for i := range this.Units { - if !this.Units[i].Equal(&that1.Units[i]) { - return false - } - } - return true -} -func (this *ScheduledUnit) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*ScheduledUnit) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - if this.CurrentState != that1.CurrentState { - return false - } - if this.MachineID != that1.MachineID { - return false - } - return true -} -func (this *UnitName) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*UnitName) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - return true -} -func (this *Unit) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*Unit) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if this.Name != that1.Name { - return false - } - if !this.Unit.Equal(&that1.Unit) { - return false - } - if this.DesiredState != that1.DesiredState { - return false - } - return true -} -func (this *MaybeScheduledUnit) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*MaybeScheduledUnit) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if that1.IsScheduled == nil { - if this.IsScheduled != nil { - return false - } - } else if this.IsScheduled == nil { - return false - } else if !this.IsScheduled.Equal(that1.IsScheduled) { - return false - } - return true -} -func (this *MaybeScheduledUnit_Unit) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*MaybeScheduledUnit_Unit) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if !this.Unit.Equal(that1.Unit) { - return false - } - return true -} -func (this *MaybeScheduledUnit_Notfound) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*MaybeScheduledUnit_Notfound) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if !this.Notfound.Equal(that1.Notfound) { - return false - } - return true -} -func (this *MaybeUnit) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*MaybeUnit) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if that1.HasUnit == nil { - if this.HasUnit != nil { - return false - } - } else if this.HasUnit == nil { - return false - } else if !this.HasUnit.Equal(that1.HasUnit) { - return false - } - return true -} -func (this *MaybeUnit_Unit) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*MaybeUnit_Unit) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if !this.Unit.Equal(that1.Unit) { - return false - } - return true -} -func (this *MaybeUnit_Notfound) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*MaybeUnit_Notfound) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if !this.Notfound.Equal(that1.Notfound) { - return false - } - return true -} -func (this *NotFound) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*NotFound) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - return true -} -func (this *UnitFile) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*UnitFile) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if len(this.UnitOptions) != len(that1.UnitOptions) { - return false - } - for i := range this.UnitOptions { - if !this.UnitOptions[i].Equal(&that1.UnitOptions[i]) { - return false - } - } - return true -} -func (this *UnitOption) Equal(that interface{}) bool { - if that == nil { - if this == nil { - return true - } - return false - } - - that1, ok := that.(*UnitOption) - if !ok { - return false - } - if that1 == nil { - if this == nil { - return true - } - return false - } else if this == nil { - return false - } - if this.Section != that1.Section { - return false - } - if this.Name != that1.Name { - return false - } - if this.Value != that1.Value { - return false - } - return true -} -func (this *MachineProperties) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&rpc.MachineProperties{") - s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UpdatedState) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&rpc.UpdatedState{") - s = append(s, "UnitIds: "+fmt.Sprintf("%#v", this.UnitIds)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UnitStateFilter) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&rpc.UnitStateFilter{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "Hash: "+fmt.Sprintf("%#v", this.Hash)+",\n") - s = append(s, "LoadState: "+fmt.Sprintf("%#v", this.LoadState)+",\n") - s = append(s, "ActiveState: "+fmt.Sprintf("%#v", this.ActiveState)+",\n") - s = append(s, "SubState: "+fmt.Sprintf("%#v", this.SubState)+",\n") - s = append(s, "MachineID: "+fmt.Sprintf("%#v", this.MachineID)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UnitFilter) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&rpc.UnitFilter{") - s = append(s, "MachineID: "+fmt.Sprintf("%#v", this.MachineID)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ScheduleUnitRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&rpc.ScheduleUnitRequest{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "MachineID: "+fmt.Sprintf("%#v", this.MachineID)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UnscheduleUnitRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&rpc.UnscheduleUnitRequest{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "MachineID: "+fmt.Sprintf("%#v", this.MachineID)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SaveUnitStateRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&rpc.SaveUnitStateRequest{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - if this.State != nil { - s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n") - } - s = append(s, "TTL: "+fmt.Sprintf("%#v", this.TTL)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *Heartbeat) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&rpc.Heartbeat{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "MachineID: "+fmt.Sprintf("%#v", this.MachineID)+",\n") - s = append(s, "TTL: "+fmt.Sprintf("%#v", this.TTL)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GenericReply) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&rpc.GenericReply{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *Units) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&rpc.Units{") - if this.Units != nil { - s = append(s, "Units: "+strings.Replace(fmt.Sprintf("%#v", this.Units), `&`, ``, 1)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UnitStates) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&rpc.UnitStates{") - if this.UnitStates != nil { - s = append(s, "UnitStates: "+fmt.Sprintf("%#v", this.UnitStates)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UnitState) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 10) - s = append(s, "&rpc.UnitState{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "Hash: "+fmt.Sprintf("%#v", this.Hash)+",\n") - s = append(s, "LoadState: "+fmt.Sprintf("%#v", this.LoadState)+",\n") - s = append(s, "ActiveState: "+fmt.Sprintf("%#v", this.ActiveState)+",\n") - s = append(s, "SubState: "+fmt.Sprintf("%#v", this.SubState)+",\n") - s = append(s, "MachineID: "+fmt.Sprintf("%#v", this.MachineID)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ScheduledUnits) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&rpc.ScheduledUnits{") - if this.Units != nil { - s = append(s, "Units: "+strings.Replace(fmt.Sprintf("%#v", this.Units), `&`, ``, 1)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *ScheduledUnit) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&rpc.ScheduledUnit{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "CurrentState: "+fmt.Sprintf("%#v", this.CurrentState)+",\n") - s = append(s, "MachineID: "+fmt.Sprintf("%#v", this.MachineID)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UnitName) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&rpc.UnitName{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *Unit) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&rpc.Unit{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "Unit: "+strings.Replace(this.Unit.GoString(), `&`, ``, 1)+",\n") - s = append(s, "DesiredState: "+fmt.Sprintf("%#v", this.DesiredState)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *MaybeScheduledUnit) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&rpc.MaybeScheduledUnit{") - if this.IsScheduled != nil { - s = append(s, "IsScheduled: "+fmt.Sprintf("%#v", this.IsScheduled)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *MaybeScheduledUnit_Unit) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&rpc.MaybeScheduledUnit_Unit{` + - `Unit:` + fmt.Sprintf("%#v", this.Unit) + `}`}, ", ") - return s -} -func (this *MaybeScheduledUnit_Notfound) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&rpc.MaybeScheduledUnit_Notfound{` + - `Notfound:` + fmt.Sprintf("%#v", this.Notfound) + `}`}, ", ") - return s -} -func (this *MaybeUnit) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&rpc.MaybeUnit{") - if this.HasUnit != nil { - s = append(s, "HasUnit: "+fmt.Sprintf("%#v", this.HasUnit)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *MaybeUnit_Unit) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&rpc.MaybeUnit_Unit{` + - `Unit:` + fmt.Sprintf("%#v", this.Unit) + `}`}, ", ") - return s -} -func (this *MaybeUnit_Notfound) GoString() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&rpc.MaybeUnit_Notfound{` + - `Notfound:` + fmt.Sprintf("%#v", this.Notfound) + `}`}, ", ") - return s -} -func (this *NotFound) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 4) - s = append(s, "&rpc.NotFound{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UnitFile) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&rpc.UnitFile{") - if this.UnitOptions != nil { - s = append(s, "UnitOptions: "+strings.Replace(fmt.Sprintf("%#v", this.UnitOptions), `&`, ``, 1)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UnitOption) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 7) - s = append(s, "&rpc.UnitOption{") - s = append(s, "Section: "+fmt.Sprintf("%#v", this.Section)+",\n") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringFleet(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func extensionToGoStringFleet(e map[int32]github_com_gogo_protobuf_proto.Extension) string { - if e == nil { - return "nil" - } - s := "map[int32]proto.Extension{" - keys := make([]int, 0, len(e)) - for k := range e { - keys = append(keys, int(k)) - } - sort.Ints(keys) - ss := []string{} - for _, k := range keys { - ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) - } - s += strings.Join(ss, ",") + "}" - return s -} // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion3 + // Client API for Registry service type RegistryClient interface { @@ -1605,7 +667,7 @@ type RegistryClient interface { SetUnitTargetState(ctx context.Context, in *ScheduledUnit, opts ...grpc.CallOption) (*GenericReply, error) UnscheduleUnit(ctx context.Context, in *UnscheduleUnitRequest, opts ...grpc.CallOption) (*GenericReply, error) AgentEvents(ctx context.Context, in *MachineProperties, opts ...grpc.CallOption) (Registry_AgentEventsClient, error) - + // Health check Status(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) } @@ -1767,15 +829,6 @@ func (c *registryClient) AgentEvents(ctx context.Context, in *MachineProperties, return x, nil } -func (c *registryClient) Status(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) { - out := new(HealthCheckResponse) - err := grpc.Invoke(ctx, "/rpc.Registry/Status", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - type Registry_AgentEventsClient interface { Recv() (*UpdatedState, error) grpc.ClientStream @@ -1793,6 +846,15 @@ func (x *registryAgentEventsClient) Recv() (*UpdatedState, error) { return m, nil } +func (c *registryClient) Status(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) { + out := new(HealthCheckResponse) + err := grpc.Invoke(ctx, "/rpc.Registry/Status", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // Server API for Registry service type RegistryServer interface { @@ -1817,7 +879,7 @@ type RegistryServer interface { SetUnitTargetState(context.Context, *ScheduledUnit) (*GenericReply, error) UnscheduleUnit(context.Context, *UnscheduleUnitRequest) (*GenericReply, error) AgentEvents(*MachineProperties, Registry_AgentEventsServer) error - + // Health check Status(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) } @@ -1825,184 +887,274 @@ func RegisterRegistryServer(s *grpc.Server, srv RegistryServer) { s.RegisterService(&_Registry_serviceDesc, srv) } -func _Registry_GetScheduledUnits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_GetScheduledUnits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnitFilter) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).GetScheduledUnits(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).GetScheduledUnits(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/GetScheduledUnits", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).GetScheduledUnits(ctx, req.(*UnitFilter)) + } + return interceptor(ctx, in, info, handler) } -func _Registry_GetScheduledUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_GetScheduledUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnitName) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).GetScheduledUnit(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).GetScheduledUnit(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/GetScheduledUnit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).GetScheduledUnit(ctx, req.(*UnitName)) + } + return interceptor(ctx, in, info, handler) } -func _Registry_GetUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_GetUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnitName) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).GetUnit(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).GetUnit(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/GetUnit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).GetUnit(ctx, req.(*UnitName)) + } + return interceptor(ctx, in, info, handler) } -func _Registry_GetUnits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_GetUnits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnitFilter) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).GetUnits(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).GetUnits(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/GetUnits", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).GetUnits(ctx, req.(*UnitFilter)) + } + return interceptor(ctx, in, info, handler) } -func _Registry_GetUnitState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_GetUnitState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnitName) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).GetUnitState(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).GetUnitState(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/GetUnitState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).GetUnitState(ctx, req.(*UnitName)) + } + return interceptor(ctx, in, info, handler) } -func _Registry_GetUnitStates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_GetUnitStates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnitStateFilter) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).GetUnitStates(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).GetUnitStates(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/GetUnitStates", } - return out, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).GetUnitStates(ctx, req.(*UnitStateFilter)) + } + return interceptor(ctx, in, info, handler) } -func _Registry_ClearUnitHeartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_ClearUnitHeartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnitName) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).ClearUnitHeartbeat(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).ClearUnitHeartbeat(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/ClearUnitHeartbeat", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).ClearUnitHeartbeat(ctx, req.(*UnitName)) + } + return interceptor(ctx, in, info, handler) } -func _Registry_CreateUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_CreateUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(Unit) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).CreateUnit(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).CreateUnit(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/CreateUnit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).CreateUnit(ctx, req.(*Unit)) + } + return interceptor(ctx, in, info, handler) } -func _Registry_DestroyUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_DestroyUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnitName) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).DestroyUnit(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).DestroyUnit(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/DestroyUnit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).DestroyUnit(ctx, req.(*UnitName)) + } + return interceptor(ctx, in, info, handler) } -func _Registry_UnitHeartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_UnitHeartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(Heartbeat) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).UnitHeartbeat(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).UnitHeartbeat(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/UnitHeartbeat", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).UnitHeartbeat(ctx, req.(*Heartbeat)) + } + return interceptor(ctx, in, info, handler) } -func _Registry_RemoveUnitState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_RemoveUnitState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnitName) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).RemoveUnitState(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).RemoveUnitState(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/RemoveUnitState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).RemoveUnitState(ctx, req.(*UnitName)) + } + return interceptor(ctx, in, info, handler) } -func _Registry_SaveUnitState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_SaveUnitState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SaveUnitStateRequest) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).SaveUnitState(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).SaveUnitState(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/SaveUnitState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).SaveUnitState(ctx, req.(*SaveUnitStateRequest)) + } + return interceptor(ctx, in, info, handler) } -func _Registry_ScheduleUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_ScheduleUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ScheduleUnitRequest) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).ScheduleUnit(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).ScheduleUnit(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/ScheduleUnit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).ScheduleUnit(ctx, req.(*ScheduleUnitRequest)) + } + return interceptor(ctx, in, info, handler) } -func _Registry_SetUnitTargetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_SetUnitTargetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ScheduledUnit) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).SetUnitTargetState(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).SetUnitTargetState(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/SetUnitTargetState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).SetUnitTargetState(ctx, req.(*ScheduledUnit)) + } + return interceptor(ctx, in, info, handler) } -func _Registry_UnscheduleUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { +func _Registry_UnscheduleUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnscheduleUnitRequest) if err := dec(in); err != nil { return nil, err } - out, err := srv.(RegistryServer).UnscheduleUnit(ctx, in) - if err != nil { - return nil, err + if interceptor == nil { + return srv.(RegistryServer).UnscheduleUnit(ctx, in) } - return out, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/UnscheduleUnit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).UnscheduleUnit(ctx, req.(*UnscheduleUnitRequest)) + } + return interceptor(ctx, in, info, handler) } func _Registry_AgentEvents_Handler(srv interface{}, stream grpc.ServerStream) error { @@ -2013,18 +1165,6 @@ func _Registry_AgentEvents_Handler(srv interface{}, stream grpc.ServerStream) er return srv.(RegistryServer).AgentEvents(m, ®istryAgentEventsServer{stream}) } -func _Registry_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { - in := new(HealthCheckRequest) - if err := dec(in); err != nil { - return nil, err - } - out, err := srv.(RegistryServer).Status(ctx, in) - if err != nil { - return nil, err - } - return out, nil -} - type Registry_AgentEventsServer interface { Send(*UpdatedState) error grpc.ServerStream @@ -2038,6 +1178,24 @@ func (x *registryAgentEventsServer) Send(m *UpdatedState) error { return x.ServerStream.SendMsg(m) } +func _Registry_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(HealthCheckRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegistryServer).Status(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.Registry/Status", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegistryServer).Status(ctx, req.(*HealthCheckRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Registry_serviceDesc = grpc.ServiceDesc{ ServiceName: "rpc.Registry", HandlerType: (*RegistryServer)(nil), @@ -2114,6 +1272,54 @@ var _Registry_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, + Metadata: fileDescriptorFleet, +} + +func (m *HealthCheckRequest) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *HealthCheckRequest) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Service) > 0 { + data[i] = 0xa + i++ + i = encodeVarintFleet(data, i, uint64(len(m.Service))) + i += copy(data[i:], m.Service) + } + return i, nil +} + +func (m *HealthCheckResponse) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *HealthCheckResponse) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Status != 0 { + data[i] = 0x8 + i++ + i = encodeVarintFleet(data, i, uint64(m.Status)) + } + return i, nil } func (m *MachineProperties) Marshal() (data []byte, err error) { @@ -2860,6 +2066,25 @@ func encodeVarintFleet(data []byte, offset int, v uint64) int { data[offset] = uint8(v) return offset + 1 } +func (m *HealthCheckRequest) Size() (n int) { + var l int + _ = l + l = len(m.Service) + if l > 0 { + n += 1 + l + sovFleet(uint64(l)) + } + return n +} + +func (m *HealthCheckResponse) Size() (n int) { + var l int + _ = l + if m.Status != 0 { + n += 1 + sovFleet(uint64(m.Status)) + } + return n +} + func (m *MachineProperties) Size() (n int) { var l int _ = l @@ -3201,283 +2426,153 @@ func sovFleet(x uint64) (n int) { func sozFleet(x uint64) (n int) { return sovFleet(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (this *MachineProperties) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MachineProperties{`, - `Id:` + fmt.Sprintf("%v", this.Id) + `,`, - `}`, - }, "") - return s -} -func (this *UpdatedState) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UpdatedState{`, - `UnitIds:` + fmt.Sprintf("%v", this.UnitIds) + `,`, - `}`, - }, "") - return s -} -func (this *UnitStateFilter) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UnitStateFilter{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Hash:` + fmt.Sprintf("%v", this.Hash) + `,`, - `LoadState:` + fmt.Sprintf("%v", this.LoadState) + `,`, - `ActiveState:` + fmt.Sprintf("%v", this.ActiveState) + `,`, - `SubState:` + fmt.Sprintf("%v", this.SubState) + `,`, - `MachineID:` + fmt.Sprintf("%v", this.MachineID) + `,`, - `}`, - }, "") - return s -} -func (this *UnitFilter) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UnitFilter{`, - `MachineID:` + fmt.Sprintf("%v", this.MachineID) + `,`, - `}`, - }, "") - return s -} -func (this *ScheduleUnitRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScheduleUnitRequest{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `MachineID:` + fmt.Sprintf("%v", this.MachineID) + `,`, - `}`, - }, "") - return s -} -func (this *UnscheduleUnitRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UnscheduleUnitRequest{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `MachineID:` + fmt.Sprintf("%v", this.MachineID) + `,`, - `}`, - }, "") - return s -} -func (this *SaveUnitStateRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SaveUnitStateRequest{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `State:` + strings.Replace(fmt.Sprintf("%v", this.State), "UnitState", "UnitState", 1) + `,`, - `TTL:` + fmt.Sprintf("%v", this.TTL) + `,`, - `}`, - }, "") - return s -} -func (this *Heartbeat) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Heartbeat{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `MachineID:` + fmt.Sprintf("%v", this.MachineID) + `,`, - `TTL:` + fmt.Sprintf("%v", this.TTL) + `,`, - `}`, - }, "") - return s -} -func (this *GenericReply) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GenericReply{`, - `}`, - }, "") - return s -} -func (this *Units) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Units{`, - `Units:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Units), "Unit", "Unit", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *UnitStates) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UnitStates{`, - `UnitStates:` + strings.Replace(fmt.Sprintf("%v", this.UnitStates), "UnitState", "UnitState", 1) + `,`, - `}`, - }, "") - return s -} -func (this *UnitState) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UnitState{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Hash:` + fmt.Sprintf("%v", this.Hash) + `,`, - `LoadState:` + fmt.Sprintf("%v", this.LoadState) + `,`, - `ActiveState:` + fmt.Sprintf("%v", this.ActiveState) + `,`, - `SubState:` + fmt.Sprintf("%v", this.SubState) + `,`, - `MachineID:` + fmt.Sprintf("%v", this.MachineID) + `,`, - `}`, - }, "") - return s -} -func (this *ScheduledUnits) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScheduledUnits{`, - `Units:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Units), "ScheduledUnit", "ScheduledUnit", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ScheduledUnit) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScheduledUnit{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `CurrentState:` + fmt.Sprintf("%v", this.CurrentState) + `,`, - `MachineID:` + fmt.Sprintf("%v", this.MachineID) + `,`, - `}`, - }, "") - return s -} -func (this *UnitName) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UnitName{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *Unit) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Unit{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Unit:` + strings.Replace(strings.Replace(this.Unit.String(), "UnitFile", "UnitFile", 1), `&`, ``, 1) + `,`, - `DesiredState:` + fmt.Sprintf("%v", this.DesiredState) + `,`, - `}`, - }, "") - return s -} -func (this *MaybeScheduledUnit) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MaybeScheduledUnit{`, - `IsScheduled:` + fmt.Sprintf("%v", this.IsScheduled) + `,`, - `}`, - }, "") - return s -} -func (this *MaybeScheduledUnit_Unit) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MaybeScheduledUnit_Unit{`, - `Unit:` + strings.Replace(fmt.Sprintf("%v", this.Unit), "ScheduledUnit", "ScheduledUnit", 1) + `,`, - `}`, - }, "") - return s -} -func (this *MaybeScheduledUnit_Notfound) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MaybeScheduledUnit_Notfound{`, - `Notfound:` + strings.Replace(fmt.Sprintf("%v", this.Notfound), "NotFound", "NotFound", 1) + `,`, - `}`, - }, "") - return s -} -func (this *MaybeUnit) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MaybeUnit{`, - `HasUnit:` + fmt.Sprintf("%v", this.HasUnit) + `,`, - `}`, - }, "") - return s -} -func (this *MaybeUnit_Unit) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MaybeUnit_Unit{`, - `Unit:` + strings.Replace(fmt.Sprintf("%v", this.Unit), "Unit", "Unit", 1) + `,`, - `}`, - }, "") - return s -} -func (this *MaybeUnit_Notfound) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MaybeUnit_Notfound{`, - `Notfound:` + strings.Replace(fmt.Sprintf("%v", this.Notfound), "NotFound", "NotFound", 1) + `,`, - `}`, - }, "") - return s -} -func (this *NotFound) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NotFound{`, - `}`, - }, "") - return s -} -func (this *UnitFile) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UnitFile{`, - `UnitOptions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.UnitOptions), "UnitOption", "UnitOption", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *UnitOption) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UnitOption{`, - `Section:` + fmt.Sprintf("%v", this.Section) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Value:` + fmt.Sprintf("%v", this.Value) + `,`, - `}`, - }, "") - return s -} -func valueToStringFleet(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) +func (m *HealthCheckRequest) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFleet + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HealthCheckRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HealthCheckRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFleet + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFleet + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Service = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFleet(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFleet + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HealthCheckResponse) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFleet + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HealthCheckResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HealthCheckResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFleet + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.Status |= (HealthCheckResponse_ServingStatus(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipFleet(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFleet + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil } func (m *MachineProperties) Unmarshal(data []byte) error { l := len(data) @@ -5864,21 +4959,77 @@ func skipFleet(data []byte) (n int, err error) { var ( ErrInvalidLengthFleet = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFleet = fmt.Errorf("proto: integer overflow") - fileDescriptor0 = []byte{ - // 209 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0xc9, 0x48, 0x4d, 0xcc, - 0x29, 0xc9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x4e, 0x2f, 0x2a, 0x48, 0xd6, 0x83, - 0x0a, 0x95, 0x19, 0x26, 0xe6, 0x14, 0x64, 0x24, 0x2a, 0xe9, 0x71, 0x09, 0x79, 0x80, 0x45, 0x9c, - 0x33, 0x52, 0x93, 0xb3, 0x83, 0x52, 0x0b, 0x4b, 0x53, 0x8b, 0x4b, 0x84, 0x24, 0xb8, 0xd8, 0x8b, - 0x53, 0x8b, 0xca, 0x32, 0x93, 0x53, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x60, 0x5c, 0xa5, - 0x85, 0x8c, 0x5c, 0xc2, 0x28, 0x1a, 0x8a, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x85, 0xfc, 0xb8, 0xd8, - 0x8a, 0x4b, 0x12, 0x4b, 0x4a, 0x8b, 0xc1, 0x1a, 0xf8, 0x8c, 0xcc, 0xf4, 0xb0, 0xd8, 0xa6, 0x87, - 0x45, 0xa7, 0x5e, 0x30, 0xc8, 0xe4, 0xbc, 0xf4, 0x60, 0xb0, 0xee, 0x20, 0xa8, 0x29, 0x4a, 0x56, - 0x5c, 0xbc, 0x28, 0x12, 0x42, 0xdc, 0x5c, 0xec, 0xa1, 0x7e, 0xde, 0x7e, 0xfe, 0xe1, 0x7e, 0x02, - 0x0c, 0x20, 0x4e, 0xb0, 0x6b, 0x50, 0x98, 0xa7, 0x9f, 0xbb, 0x00, 0xa3, 0x10, 0x3f, 0x17, 0xb7, - 0x9f, 0x7f, 0x48, 0x3c, 0x4c, 0x80, 0xc9, 0x28, 0x85, 0x8b, 0x0d, 0x62, 0x91, 0x50, 0x14, 0x17, - 0x2b, 0xd8, 0x32, 0x21, 0x75, 0xc2, 0xce, 0x01, 0xfb, 0x5c, 0x4a, 0x83, 0x58, 0x77, 0x27, 0xb1, - 0x81, 0x43, 0xd5, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xe1, 0x3f, 0xd0, 0xe1, 0x65, 0x01, 0x00, - 0x00, - } ) + +var fileDescriptorFleet = []byte{ + // 1093 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x56, 0xd9, 0x6e, 0x1b, 0x55, + 0x18, 0xce, 0xd8, 0xb1, 0x63, 0xff, 0x5e, 0x73, 0x12, 0xa8, 0x13, 0x44, 0x02, 0xc3, 0xd2, 0x52, + 0xc0, 0x41, 0xae, 0x8a, 0x20, 0x55, 0x81, 0x24, 0xce, 0x62, 0x91, 0x3a, 0xd5, 0x38, 0x69, 0xc5, + 0x95, 0x35, 0x9e, 0xf9, 0x63, 0x8f, 0xea, 0xcc, 0x98, 0x39, 0x67, 0x22, 0x05, 0x5e, 0x80, 0x5b, + 0xde, 0x88, 0x2b, 0xd4, 0xcb, 0x3e, 0x41, 0x04, 0x7e, 0x0f, 0x24, 0x74, 0x96, 0x19, 0xcf, 0xb8, + 0xd3, 0xa6, 0x42, 0x70, 0xc1, 0xdd, 0xf9, 0x97, 0xef, 0xfc, 0xdb, 0x77, 0x16, 0x28, 0x9d, 0x8f, + 0x11, 0x59, 0x73, 0xe2, 0x7b, 0xcc, 0x23, 0x59, 0x7f, 0x62, 0xad, 0x7f, 0x3e, 0x74, 0xd8, 0x28, + 0x18, 0x34, 0x2d, 0xef, 0x62, 0x6b, 0xe8, 0x0d, 0xbd, 0x2d, 0x61, 0x1b, 0x04, 0xe7, 0x42, 0x12, + 0x82, 0x58, 0x49, 0x8c, 0xde, 0x04, 0x72, 0x84, 0xe6, 0x98, 0x8d, 0xf6, 0x46, 0x68, 0x3d, 0x33, + 0xf0, 0xc7, 0x00, 0x29, 0x23, 0x0d, 0x58, 0xa2, 0xe8, 0x5f, 0x3a, 0x16, 0x36, 0xb4, 0xf7, 0xb4, + 0x3b, 0x45, 0x23, 0x14, 0xf5, 0x5f, 0x35, 0x58, 0x49, 0x00, 0xe8, 0xc4, 0x73, 0x29, 0x92, 0x6f, + 0x20, 0x4f,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