Documentation ¶
Overview ¶
Package events defines the event pushing and subscription service.
Index ¶
- Variables
- func RegisterEventsService(srv *github_com_containerd_ttrpc.Server, svc EventsService)
- type Envelope
- func (*Envelope) Descriptor() ([]byte, []int)
- func (m *Envelope) Field(fieldpath []string) (string, bool)
- func (m *Envelope) Marshal() (dAtA []byte, err error)
- func (m *Envelope) MarshalTo(dAtA []byte) (int, error)
- func (m *Envelope) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Envelope) ProtoMessage()
- func (m *Envelope) Reset()
- func (m *Envelope) Size() (n int)
- func (this *Envelope) String() string
- func (m *Envelope) Unmarshal(dAtA []byte) error
- func (m *Envelope) XXX_DiscardUnknown()
- func (m *Envelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Envelope) XXX_Merge(src proto.Message)
- func (m *Envelope) XXX_Size() int
- func (m *Envelope) XXX_Unmarshal(b []byte) error
- type EventsService
- type ForwardRequest
- func (*ForwardRequest) Descriptor() ([]byte, []int)
- func (m *ForwardRequest) Marshal() (dAtA []byte, err error)
- func (m *ForwardRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ForwardRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ForwardRequest) ProtoMessage()
- func (m *ForwardRequest) Reset()
- func (m *ForwardRequest) Size() (n int)
- func (this *ForwardRequest) String() string
- func (m *ForwardRequest) Unmarshal(dAtA []byte) error
- func (m *ForwardRequest) XXX_DiscardUnknown()
- func (m *ForwardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ForwardRequest) XXX_Merge(src proto.Message)
- func (m *ForwardRequest) XXX_Size() int
- func (m *ForwardRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterEventsService ¶
func RegisterEventsService(srv *github_com_containerd_ttrpc.Server, svc EventsService)
Types ¶
type Envelope ¶
type Envelope struct { Timestamp time.Time `protobuf:"bytes,1,opt,name=timestamp,proto3,stdtime" json:"timestamp"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` Event *types.Any `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Envelope) Descriptor ¶
func (*Envelope) Field ¶
Field returns the value for the given fieldpath as a string, if defined. If the value is not defined, the second value will be false.
func (*Envelope) MarshalToSizedBuffer ¶ added in v1.4.0
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
func (*Envelope) XXX_DiscardUnknown ¶
func (m *Envelope) XXX_DiscardUnknown()
func (*Envelope) XXX_Marshal ¶
func (*Envelope) XXX_Unmarshal ¶
type EventsService ¶
type EventsService interface {
Forward(ctx context.Context, req *ForwardRequest) (*types.Empty, error)
}
func NewEventsClient ¶
func NewEventsClient(client *github_com_containerd_ttrpc.Client) EventsService
type ForwardRequest ¶
type ForwardRequest struct { Envelope *Envelope `protobuf:"bytes,1,opt,name=envelope,proto3" json:"envelope,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ForwardRequest) Descriptor ¶
func (*ForwardRequest) Descriptor() ([]byte, []int)
func (*ForwardRequest) Marshal ¶
func (m *ForwardRequest) Marshal() (dAtA []byte, err error)
func (*ForwardRequest) MarshalToSizedBuffer ¶ added in v1.4.0
func (m *ForwardRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ForwardRequest) ProtoMessage ¶
func (*ForwardRequest) ProtoMessage()
func (*ForwardRequest) Reset ¶
func (m *ForwardRequest) Reset()
func (*ForwardRequest) Size ¶
func (m *ForwardRequest) Size() (n int)
func (*ForwardRequest) String ¶
func (this *ForwardRequest) String() string
func (*ForwardRequest) Unmarshal ¶
func (m *ForwardRequest) Unmarshal(dAtA []byte) error
func (*ForwardRequest) XXX_DiscardUnknown ¶
func (m *ForwardRequest) XXX_DiscardUnknown()
func (*ForwardRequest) XXX_Marshal ¶
func (m *ForwardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ForwardRequest) XXX_Merge ¶
func (m *ForwardRequest) XXX_Merge(src proto.Message)
func (*ForwardRequest) XXX_Size ¶
func (m *ForwardRequest) XXX_Size() int
func (*ForwardRequest) XXX_Unmarshal ¶
func (m *ForwardRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.