Documentation ¶
Overview ¶
Code generated by protoc-gen-go-ttrpc. DO NOT EDIT. source: shim.proto
Index ¶
- Variables
- func RegisterShimService(srv *ttrpc.Server, svc ShimService)
- type ContainerPhase
- func (ContainerPhase) Descriptor() protoreflect.EnumDescriptor
- func (x ContainerPhase) Enum() *ContainerPhase
- func (ContainerPhase) EnumDescriptor() ([]byte, []int)deprecated
- func (x ContainerPhase) Number() protoreflect.EnumNumber
- func (x ContainerPhase) String() string
- func (ContainerPhase) Type() protoreflect.EnumType
- type ContainerRequest
- type ContainerStatus
- func (*ContainerStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerStatus) GetId() string
- func (x *ContainerStatus) GetName() string
- func (x *ContainerStatus) GetPhase() ContainerPhase
- func (x *ContainerStatus) GetPodName() string
- func (x *ContainerStatus) GetPodNamespace() string
- func (*ContainerStatus) ProtoMessage()
- func (x *ContainerStatus) ProtoReflect() protoreflect.Message
- func (x *ContainerStatus) Reset()
- func (x *ContainerStatus) String() string
- type MetricsRequest
- type MetricsResponse
- type ShimClient
- type ShimService
- type Shim_SubscribeStatusClient
- type Shim_SubscribeStatusServer
- type SubscribeStatusRequest
- func (*SubscribeStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeStatusRequest) GetEmpty() *emptypb.Empty
- func (*SubscribeStatusRequest) ProtoMessage()
- func (x *SubscribeStatusRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeStatusRequest) Reset()
- func (x *SubscribeStatusRequest) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ContainerPhase_name = map[int32]string{ 0: "SCALED_DOWN", 1: "RUNNING", } ContainerPhase_value = map[string]int32{ "SCALED_DOWN": 0, "RUNNING": 1, } )
Enum value maps for ContainerPhase.
View Source
var File_shim_proto protoreflect.FileDescriptor
Functions ¶
func RegisterShimService ¶
func RegisterShimService(srv *ttrpc.Server, svc ShimService)
Types ¶
type ContainerPhase ¶
type ContainerPhase int32
const ( ContainerPhase_SCALED_DOWN ContainerPhase = 0 ContainerPhase_RUNNING ContainerPhase = 1 )
func (ContainerPhase) Descriptor ¶
func (ContainerPhase) Descriptor() protoreflect.EnumDescriptor
func (ContainerPhase) Enum ¶
func (x ContainerPhase) Enum() *ContainerPhase
func (ContainerPhase) EnumDescriptor
deprecated
func (ContainerPhase) EnumDescriptor() ([]byte, []int)
Deprecated: Use ContainerPhase.Descriptor instead.
func (ContainerPhase) Number ¶
func (x ContainerPhase) Number() protoreflect.EnumNumber
func (ContainerPhase) String ¶
func (x ContainerPhase) String() string
func (ContainerPhase) Type ¶
func (ContainerPhase) Type() protoreflect.EnumType
type ContainerRequest ¶
type ContainerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ContainerRequest) Descriptor
deprecated
func (*ContainerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContainerRequest.ProtoReflect.Descriptor instead.
func (*ContainerRequest) GetId ¶
func (x *ContainerRequest) GetId() string
func (*ContainerRequest) ProtoMessage ¶
func (*ContainerRequest) ProtoMessage()
func (*ContainerRequest) ProtoReflect ¶
func (x *ContainerRequest) ProtoReflect() protoreflect.Message
func (*ContainerRequest) Reset ¶
func (x *ContainerRequest) Reset()
func (*ContainerRequest) String ¶
func (x *ContainerRequest) String() string
type ContainerStatus ¶
type ContainerStatus struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` PodName string `protobuf:"bytes,3,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` PodNamespace string `protobuf:"bytes,4,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` Phase ContainerPhase `protobuf:"varint,5,opt,name=phase,proto3,enum=zeropod.shim.v1.ContainerPhase" json:"phase,omitempty"` // contains filtered or unexported fields }
func (*ContainerStatus) Descriptor
deprecated
func (*ContainerStatus) Descriptor() ([]byte, []int)
Deprecated: Use ContainerStatus.ProtoReflect.Descriptor instead.
func (*ContainerStatus) GetId ¶
func (x *ContainerStatus) GetId() string
func (*ContainerStatus) GetName ¶
func (x *ContainerStatus) GetName() string
func (*ContainerStatus) GetPhase ¶
func (x *ContainerStatus) GetPhase() ContainerPhase
func (*ContainerStatus) GetPodName ¶
func (x *ContainerStatus) GetPodName() string
func (*ContainerStatus) GetPodNamespace ¶
func (x *ContainerStatus) GetPodNamespace() string
func (*ContainerStatus) ProtoMessage ¶
func (*ContainerStatus) ProtoMessage()
func (*ContainerStatus) ProtoReflect ¶
func (x *ContainerStatus) ProtoReflect() protoreflect.Message
func (*ContainerStatus) Reset ¶
func (x *ContainerStatus) Reset()
func (*ContainerStatus) String ¶
func (x *ContainerStatus) String() string
type MetricsRequest ¶
type MetricsRequest struct { Empty *emptypb.Empty `protobuf:"bytes,1,opt,name=empty,proto3" json:"empty,omitempty"` // contains filtered or unexported fields }
func (*MetricsRequest) Descriptor
deprecated
func (*MetricsRequest) Descriptor() ([]byte, []int)
Deprecated: Use MetricsRequest.ProtoReflect.Descriptor instead.
func (*MetricsRequest) GetEmpty ¶
func (x *MetricsRequest) GetEmpty() *emptypb.Empty
func (*MetricsRequest) ProtoMessage ¶
func (*MetricsRequest) ProtoMessage()
func (*MetricsRequest) ProtoReflect ¶
func (x *MetricsRequest) ProtoReflect() protoreflect.Message
func (*MetricsRequest) Reset ¶
func (x *MetricsRequest) Reset()
func (*MetricsRequest) String ¶
func (x *MetricsRequest) String() string
type MetricsResponse ¶
type MetricsResponse struct { Metrics []*_go.MetricFamily `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"` // contains filtered or unexported fields }
func (*MetricsResponse) Descriptor
deprecated
func (*MetricsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MetricsResponse.ProtoReflect.Descriptor instead.
func (*MetricsResponse) GetMetrics ¶
func (x *MetricsResponse) GetMetrics() []*_go.MetricFamily
func (*MetricsResponse) ProtoMessage ¶
func (*MetricsResponse) ProtoMessage()
func (*MetricsResponse) ProtoReflect ¶
func (x *MetricsResponse) ProtoReflect() protoreflect.Message
func (*MetricsResponse) Reset ¶
func (x *MetricsResponse) Reset()
func (*MetricsResponse) String ¶
func (x *MetricsResponse) String() string
type ShimClient ¶
type ShimClient interface { Metrics(context.Context, *MetricsRequest) (*MetricsResponse, error) GetStatus(context.Context, *ContainerRequest) (*ContainerStatus, error) SubscribeStatus(context.Context, *SubscribeStatusRequest) (Shim_SubscribeStatusClient, error) }
func NewShimClient ¶
func NewShimClient(client *ttrpc.Client) ShimClient
type ShimService ¶
type ShimService interface { Metrics(context.Context, *MetricsRequest) (*MetricsResponse, error) GetStatus(context.Context, *ContainerRequest) (*ContainerStatus, error) SubscribeStatus(context.Context, *SubscribeStatusRequest, Shim_SubscribeStatusServer) error }
type Shim_SubscribeStatusClient ¶
type Shim_SubscribeStatusClient interface { Recv() (*ContainerStatus, error) ttrpc.ClientStream }
type Shim_SubscribeStatusServer ¶
type Shim_SubscribeStatusServer interface { Send(*ContainerStatus) error ttrpc.StreamServer }
type SubscribeStatusRequest ¶
type SubscribeStatusRequest struct { Empty *emptypb.Empty `protobuf:"bytes,1,opt,name=empty,proto3" json:"empty,omitempty"` // contains filtered or unexported fields }
func (*SubscribeStatusRequest) Descriptor
deprecated
func (*SubscribeStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeStatusRequest.ProtoReflect.Descriptor instead.
func (*SubscribeStatusRequest) GetEmpty ¶
func (x *SubscribeStatusRequest) GetEmpty() *emptypb.Empty
func (*SubscribeStatusRequest) ProtoMessage ¶
func (*SubscribeStatusRequest) ProtoMessage()
func (*SubscribeStatusRequest) ProtoReflect ¶
func (x *SubscribeStatusRequest) ProtoReflect() protoreflect.Message
func (*SubscribeStatusRequest) Reset ¶
func (x *SubscribeStatusRequest) Reset()
func (*SubscribeStatusRequest) String ¶
func (x *SubscribeStatusRequest) String() string
Click to show internal directories.
Click to hide internal directories.