Documentation ¶
Index ¶
- Variables
- func RegisterWatcherServiceServer(s grpc.ServiceRegistrar, srv WatcherServiceServer)
- type APIGroup
- type CRDKind
- type EventRequest
- func (*EventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EventRequest) GetEventTimestamp() *timestamppb.Timestamp
- func (x *EventRequest) GetMetadata() *Metadata
- func (x *EventRequest) GetObject() []byte
- func (*EventRequest) ProtoMessage()
- func (x *EventRequest) ProtoReflect() protoreflect.Message
- func (x *EventRequest) Reset()
- func (x *EventRequest) String() string
- type EventResponse
- type EventType
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetClusterName() string
- func (x *Metadata) GetNfdeployName() string
- func (x *Metadata) GetRequest() *RequestMetadata
- func (x *Metadata) GetType() EventType
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- type RequestMetadata
- func (*RequestMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *RequestMetadata) GetGroup() APIGroup
- func (x *RequestMetadata) GetKind() CRDKind
- func (x *RequestMetadata) GetNamespace() string
- func (x *RequestMetadata) GetVersion() Version
- func (*RequestMetadata) ProtoMessage()
- func (x *RequestMetadata) ProtoReflect() protoreflect.Message
- func (x *RequestMetadata) Reset()
- func (x *RequestMetadata) String() string
- type ResponseType
- func (ResponseType) Descriptor() protoreflect.EnumDescriptor
- func (x ResponseType) Enum() *ResponseType
- func (ResponseType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResponseType) Number() protoreflect.EnumNumber
- func (x ResponseType) String() string
- func (ResponseType) Type() protoreflect.EnumType
- type UnimplementedWatcherServiceServer
- type UnsafeWatcherServiceServer
- type Version
- type WatcherServiceClient
- type WatcherServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( CRDKind_name = map[int32]string{ 0: "UPFDeployment", 1: "SMFDeployment", 2: "AMFDeployment", } CRDKind_value = map[string]int32{ "UPFDeployment": 0, "SMFDeployment": 1, "AMFDeployment": 2, } )
Enum value maps for CRDKind.
var ( APIGroup_name = map[int32]string{ 0: "NFDeployNephioOrg", } APIGroup_value = map[string]int32{ "NFDeployNephioOrg": 0, } )
Enum value maps for APIGroup.
var ( Version_name = map[int32]string{ 0: "v1alpha1", } Version_value = map[string]int32{ "v1alpha1": 0, } )
Enum value maps for Version.
var ( EventType_name = map[int32]string{ 0: "Added", 1: "Modified", 2: "Deleted", 3: "List", } EventType_value = map[string]int32{ "Added": 0, "Modified": 1, "Deleted": 2, "List": 3, } )
Enum value maps for EventType.
var ( ResponseType_name = map[int32]string{ 0: "OK", 1: "RESET", } ResponseType_value = map[string]int32{ "OK": 0, "RESET": 1, } )
Enum value maps for ResponseType.
var File_protos_edgewatcher_proto protoreflect.FileDescriptor
var WatcherService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "watcher.WatcherService", HandlerType: (*WatcherServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ReportEvent", Handler: _WatcherService_ReportEvent_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protos/edgewatcher.proto", }
WatcherService_ServiceDesc is the grpc.ServiceDesc for WatcherService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWatcherServiceServer ¶
func RegisterWatcherServiceServer(s grpc.ServiceRegistrar, srv WatcherServiceServer)
Types ¶
type APIGroup ¶
type APIGroup int32
const (
APIGroup_NFDeployNephioOrg APIGroup = 0
)
func (APIGroup) Descriptor ¶
func (APIGroup) Descriptor() protoreflect.EnumDescriptor
func (APIGroup) EnumDescriptor
deprecated
func (APIGroup) Number ¶
func (x APIGroup) Number() protoreflect.EnumNumber
func (APIGroup) Type ¶
func (APIGroup) Type() protoreflect.EnumType
type CRDKind ¶
type CRDKind int32
func (CRDKind) Descriptor ¶
func (CRDKind) Descriptor() protoreflect.EnumDescriptor
func (CRDKind) EnumDescriptor
deprecated
func (CRDKind) Number ¶
func (x CRDKind) Number() protoreflect.EnumNumber
func (CRDKind) Type ¶
func (CRDKind) Type() protoreflect.EnumType
type EventRequest ¶
type EventRequest struct { Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof" json:"metadata,omitempty"` // event_timestamp is used to identify and discard stale events EventTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=event_timestamp,json=eventTimestamp,proto3,oneof" json:"event_timestamp,omitempty"` // object is serialized k8s resource from an edgecluster Object []byte `protobuf:"bytes,3,opt,name=object,proto3,oneof" json:"object,omitempty"` // contains filtered or unexported fields }
EventRequest contains metadata and serialized CR from an edge cluster
func (*EventRequest) Descriptor
deprecated
func (*EventRequest) Descriptor() ([]byte, []int)
Deprecated: Use EventRequest.ProtoReflect.Descriptor instead.
func (*EventRequest) GetEventTimestamp ¶
func (x *EventRequest) GetEventTimestamp() *timestamppb.Timestamp
func (*EventRequest) GetMetadata ¶
func (x *EventRequest) GetMetadata() *Metadata
func (*EventRequest) GetObject ¶
func (x *EventRequest) GetObject() []byte
func (*EventRequest) ProtoMessage ¶
func (*EventRequest) ProtoMessage()
func (*EventRequest) ProtoReflect ¶
func (x *EventRequest) ProtoReflect() protoreflect.Message
func (*EventRequest) Reset ¶
func (x *EventRequest) Reset()
func (*EventRequest) String ¶
func (x *EventRequest) String() string
type EventResponse ¶
type EventResponse struct { Response *ResponseType `protobuf:"varint,1,opt,name=Response,proto3,enum=watcher.ResponseType,oneof" json:"Response,omitempty"` // contains filtered or unexported fields }
func (*EventResponse) Descriptor
deprecated
func (*EventResponse) Descriptor() ([]byte, []int)
Deprecated: Use EventResponse.ProtoReflect.Descriptor instead.
func (*EventResponse) GetResponse ¶
func (x *EventResponse) GetResponse() ResponseType
func (*EventResponse) ProtoMessage ¶
func (*EventResponse) ProtoMessage()
func (*EventResponse) ProtoReflect ¶
func (x *EventResponse) ProtoReflect() protoreflect.Message
func (*EventResponse) Reset ¶
func (x *EventResponse) Reset()
func (*EventResponse) String ¶
func (x *EventResponse) String() string
type EventType ¶
type EventType int32
func (EventType) Descriptor ¶
func (EventType) Descriptor() protoreflect.EnumDescriptor
func (EventType) EnumDescriptor
deprecated
func (EventType) Number ¶
func (x EventType) Number() protoreflect.EnumNumber
func (EventType) Type ¶
func (EventType) Type() protoreflect.EnumType
type Metadata ¶
type Metadata struct { Type *EventType `protobuf:"varint,1,opt,name=Type,proto3,enum=watcher.EventType,oneof" json:"Type,omitempty"` Request *RequestMetadata `protobuf:"bytes,2,opt,name=request,proto3,oneof" json:"request,omitempty"` // cluster_name is canonical name from one platform api ClusterName *string `protobuf:"bytes,3,opt,name=cluster_name,json=clusterName,proto3,oneof" json:"cluster_name,omitempty"` NfdeployName *string `protobuf:"bytes,4,opt,name=nfdeploy_name,json=nfdeployName,proto3,oneof" json:"nfdeploy_name,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetClusterName ¶
func (*Metadata) GetNfdeployName ¶
func (*Metadata) GetRequest ¶
func (x *Metadata) GetRequest() *RequestMetadata
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type RequestMetadata ¶
type RequestMetadata struct { Namespace *string `protobuf:"bytes,1,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"` Kind *CRDKind `protobuf:"varint,2,opt,name=kind,proto3,enum=watcher.CRDKind,oneof" json:"kind,omitempty"` Group *APIGroup `protobuf:"varint,3,opt,name=group,proto3,enum=watcher.APIGroup,oneof" json:"group,omitempty"` Version *Version `protobuf:"varint,4,opt,name=version,proto3,enum=watcher.Version,oneof" json:"version,omitempty"` // contains filtered or unexported fields }
RequestMetadata contains watcheragent's request parameters which were used to to configure watcheragent
func (*RequestMetadata) Descriptor
deprecated
func (*RequestMetadata) Descriptor() ([]byte, []int)
Deprecated: Use RequestMetadata.ProtoReflect.Descriptor instead.
func (*RequestMetadata) GetGroup ¶
func (x *RequestMetadata) GetGroup() APIGroup
func (*RequestMetadata) GetKind ¶
func (x *RequestMetadata) GetKind() CRDKind
func (*RequestMetadata) GetNamespace ¶
func (x *RequestMetadata) GetNamespace() string
func (*RequestMetadata) GetVersion ¶
func (x *RequestMetadata) GetVersion() Version
func (*RequestMetadata) ProtoMessage ¶
func (*RequestMetadata) ProtoMessage()
func (*RequestMetadata) ProtoReflect ¶
func (x *RequestMetadata) ProtoReflect() protoreflect.Message
func (*RequestMetadata) Reset ¶
func (x *RequestMetadata) Reset()
func (*RequestMetadata) String ¶
func (x *RequestMetadata) String() string
type ResponseType ¶
type ResponseType int32
const ( // OK response signals that the Event was accepted by the edgewatcher ResponseType_OK ResponseType = 0 // RESET response signals that the watcher-agent should reset the watch, // which entails the List call followed by watch calls. // This mechanism can be used by clients in case the original list // gets lost due to a crash. ResponseType_RESET ResponseType = 1 )
func (ResponseType) Descriptor ¶
func (ResponseType) Descriptor() protoreflect.EnumDescriptor
func (ResponseType) Enum ¶
func (x ResponseType) Enum() *ResponseType
func (ResponseType) EnumDescriptor
deprecated
func (ResponseType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResponseType.Descriptor instead.
func (ResponseType) Number ¶
func (x ResponseType) Number() protoreflect.EnumNumber
func (ResponseType) String ¶
func (x ResponseType) String() string
func (ResponseType) Type ¶
func (ResponseType) Type() protoreflect.EnumType
type UnimplementedWatcherServiceServer ¶
type UnimplementedWatcherServiceServer struct { }
UnimplementedWatcherServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedWatcherServiceServer) ReportEvent ¶
func (UnimplementedWatcherServiceServer) ReportEvent(context.Context, *EventRequest) (*EventResponse, error)
type UnsafeWatcherServiceServer ¶
type UnsafeWatcherServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWatcherServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WatcherServiceServer will result in compilation errors.
type Version ¶
type Version int32
const (
Version_v1alpha1 Version = 0
)
func (Version) Descriptor ¶
func (Version) Descriptor() protoreflect.EnumDescriptor
func (Version) EnumDescriptor
deprecated
func (Version) Number ¶
func (x Version) Number() protoreflect.EnumNumber
func (Version) Type ¶
func (Version) Type() protoreflect.EnumType
type WatcherServiceClient ¶
type WatcherServiceClient interface {
ReportEvent(ctx context.Context, in *EventRequest, opts ...grpc.CallOption) (*EventResponse, error)
}
WatcherServiceClient is the client API for WatcherService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWatcherServiceClient ¶
func NewWatcherServiceClient(cc grpc.ClientConnInterface) WatcherServiceClient
type WatcherServiceServer ¶
type WatcherServiceServer interface { ReportEvent(context.Context, *EventRequest) (*EventResponse, error) // contains filtered or unexported methods }
WatcherServiceServer is the server API for WatcherService service. All implementations must embed UnimplementedWatcherServiceServer for forward compatibility