Documentation
¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterNotifierServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNotifierServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NotifierServiceClient) error
- func RegisterNotifierServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNotifierServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NotifierServiceServer) error
- func RegisterNotifierServiceServer(s grpc.ServiceRegistrar, srv NotifierServiceServer)
- type CreateNotifierRequest
- func (*CreateNotifierRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNotifierRequest) GetNotifier() *v1alpha1.Notifier
- func (*CreateNotifierRequest) ProtoMessage()
- func (x *CreateNotifierRequest) ProtoReflect() protoreflect.Message
- func (x *CreateNotifierRequest) Reset()
- func (x *CreateNotifierRequest) String() string
- type CreateNotifierResponse
- type DeleteNotifierRequest
- func (*DeleteNotifierRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteNotifierRequest) GetName() string
- func (x *DeleteNotifierRequest) GetNamespace() string
- func (*DeleteNotifierRequest) ProtoMessage()
- func (x *DeleteNotifierRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteNotifierRequest) Reset()
- func (x *DeleteNotifierRequest) String() string
- type DeleteNotifierResponse
- type GetNotifierRequest
- func (*GetNotifierRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNotifierRequest) GetName() string
- func (x *GetNotifierRequest) GetNamespace() string
- func (*GetNotifierRequest) ProtoMessage()
- func (x *GetNotifierRequest) ProtoReflect() protoreflect.Message
- func (x *GetNotifierRequest) Reset()
- func (x *GetNotifierRequest) String() string
- type GetNotifierResponse
- func (*GetNotifierResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNotifierResponse) GetNotifier() *v1alpha1.Notifier
- func (x *GetNotifierResponse) GetYaml() string
- func (*GetNotifierResponse) ProtoMessage()
- func (x *GetNotifierResponse) ProtoReflect() protoreflect.Message
- func (x *GetNotifierResponse) Reset()
- func (x *GetNotifierResponse) String() string
- type ListNotifiersRequest
- func (*ListNotifiersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListNotifiersRequest) GetLabels() map[string]string
- func (x *ListNotifiersRequest) GetNamespace() string
- func (x *ListNotifiersRequest) GetOrderBy() string
- func (x *ListNotifiersRequest) GetPageSize() int32
- func (x *ListNotifiersRequest) GetPageToken() string
- func (*ListNotifiersRequest) ProtoMessage()
- func (x *ListNotifiersRequest) ProtoReflect() protoreflect.Message
- func (x *ListNotifiersRequest) Reset()
- func (x *ListNotifiersRequest) String() string
- type ListNotifiersResponse
- func (*ListNotifiersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListNotifiersResponse) GetNextPageToken() string
- func (x *ListNotifiersResponse) GetNotifiers() *v1alpha1.NotifierList
- func (*ListNotifiersResponse) ProtoMessage()
- func (x *ListNotifiersResponse) ProtoReflect() protoreflect.Message
- func (x *ListNotifiersResponse) Reset()
- func (x *ListNotifiersResponse) String() string
- type NotifierResponse
- type NotifierServiceClient
- type NotifierServiceServer
- type UnimplementedNotifierServiceServer
- func (UnimplementedNotifierServiceServer) CreateNotifier(context.Context, *CreateNotifierRequest) (*CreateNotifierResponse, error)
- func (UnimplementedNotifierServiceServer) DeleteNotifier(context.Context, *DeleteNotifierRequest) (*DeleteNotifierResponse, error)
- func (UnimplementedNotifierServiceServer) GetNotifier(context.Context, *GetNotifierRequest) (*GetNotifierResponse, error)
- func (UnimplementedNotifierServiceServer) ListNotifiers(context.Context, *ListNotifiersRequest) (*ListNotifiersResponse, error)
- func (UnimplementedNotifierServiceServer) UpdateNotifier(context.Context, *UpdateNotifierRequest) (*UpdateNotifierResponse, error)
- type UnsafeNotifierServiceServer
- type UpdateNotifierRequest
- func (*UpdateNotifierRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNotifierRequest) GetFieldMask() *field_mask.FieldMask
- func (x *UpdateNotifierRequest) GetNotifier() *v1alpha1.Notifier
- func (*UpdateNotifierRequest) ProtoMessage()
- func (x *UpdateNotifierRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateNotifierRequest) Reset()
- func (x *UpdateNotifierRequest) String() string
- type UpdateNotifierResponse
Constants ¶
This section is empty.
Variables ¶
var File_github_com_metaprov_modelaapi_services_notifier_v1_notifier_proto protoreflect.FileDescriptor
var NotifierService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "github.com.metaprov.modelaapi.services.notifier.v1.NotifierService", HandlerType: (*NotifierServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListNotifiers", Handler: _NotifierService_ListNotifiers_Handler, }, { MethodName: "CreateNotifier", Handler: _NotifierService_CreateNotifier_Handler, }, { MethodName: "GetNotifier", Handler: _NotifierService_GetNotifier_Handler, }, { MethodName: "UpdateNotifier", Handler: _NotifierService_UpdateNotifier_Handler, }, { MethodName: "DeleteNotifier", Handler: _NotifierService_DeleteNotifier_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/metaprov/modelaapi/services/notifier/v1/notifier.proto", }
NotifierService_ServiceDesc is the grpc.ServiceDesc for NotifierService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNotifierServiceHandler ¶ added in v0.4.687
func RegisterNotifierServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterNotifierServiceHandler registers the http handlers for service NotifierService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNotifierServiceHandlerClient ¶ added in v0.4.687
func RegisterNotifierServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NotifierServiceClient) error
RegisterNotifierServiceHandlerClient registers the http handlers for service NotifierService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NotifierServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NotifierServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NotifierServiceClient" to call the correct interceptors.
func RegisterNotifierServiceHandlerFromEndpoint ¶ added in v0.4.687
func RegisterNotifierServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNotifierServiceHandlerFromEndpoint is same as RegisterNotifierServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNotifierServiceHandlerServer ¶ added in v0.4.687
func RegisterNotifierServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NotifierServiceServer) error
RegisterNotifierServiceHandlerServer registers the http handlers for service NotifierService to "mux". UnaryRPC :call NotifierServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNotifierServiceHandlerFromEndpoint instead.
func RegisterNotifierServiceServer ¶
func RegisterNotifierServiceServer(s grpc.ServiceRegistrar, srv NotifierServiceServer)
Types ¶
type CreateNotifierRequest ¶
type CreateNotifierRequest struct { Notifier *v1alpha1.Notifier `protobuf:"bytes,1,opt,name=notifier,proto3" json:"notifier,omitempty"` // contains filtered or unexported fields }
func (*CreateNotifierRequest) Descriptor
deprecated
func (*CreateNotifierRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateNotifierRequest.ProtoReflect.Descriptor instead.
func (*CreateNotifierRequest) GetNotifier ¶ added in v0.4.472
func (x *CreateNotifierRequest) GetNotifier() *v1alpha1.Notifier
func (*CreateNotifierRequest) ProtoMessage ¶
func (*CreateNotifierRequest) ProtoMessage()
func (*CreateNotifierRequest) ProtoReflect ¶
func (x *CreateNotifierRequest) ProtoReflect() protoreflect.Message
func (*CreateNotifierRequest) Reset ¶
func (x *CreateNotifierRequest) Reset()
func (*CreateNotifierRequest) String ¶
func (x *CreateNotifierRequest) String() string
type CreateNotifierResponse ¶
type CreateNotifierResponse struct {
// contains filtered or unexported fields
}
func (*CreateNotifierResponse) Descriptor
deprecated
func (*CreateNotifierResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateNotifierResponse.ProtoReflect.Descriptor instead.
func (*CreateNotifierResponse) ProtoMessage ¶
func (*CreateNotifierResponse) ProtoMessage()
func (*CreateNotifierResponse) ProtoReflect ¶
func (x *CreateNotifierResponse) ProtoReflect() protoreflect.Message
func (*CreateNotifierResponse) Reset ¶
func (x *CreateNotifierResponse) Reset()
func (*CreateNotifierResponse) String ¶
func (x *CreateNotifierResponse) String() string
type DeleteNotifierRequest ¶
type DeleteNotifierRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteNotifierRequest) Descriptor
deprecated
func (*DeleteNotifierRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNotifierRequest.ProtoReflect.Descriptor instead.
func (*DeleteNotifierRequest) GetName ¶
func (x *DeleteNotifierRequest) GetName() string
func (*DeleteNotifierRequest) GetNamespace ¶
func (x *DeleteNotifierRequest) GetNamespace() string
func (*DeleteNotifierRequest) ProtoMessage ¶
func (*DeleteNotifierRequest) ProtoMessage()
func (*DeleteNotifierRequest) ProtoReflect ¶
func (x *DeleteNotifierRequest) ProtoReflect() protoreflect.Message
func (*DeleteNotifierRequest) Reset ¶
func (x *DeleteNotifierRequest) Reset()
func (*DeleteNotifierRequest) String ¶
func (x *DeleteNotifierRequest) String() string
type DeleteNotifierResponse ¶
type DeleteNotifierResponse struct {
// contains filtered or unexported fields
}
func (*DeleteNotifierResponse) Descriptor
deprecated
func (*DeleteNotifierResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNotifierResponse.ProtoReflect.Descriptor instead.
func (*DeleteNotifierResponse) ProtoMessage ¶
func (*DeleteNotifierResponse) ProtoMessage()
func (*DeleteNotifierResponse) ProtoReflect ¶
func (x *DeleteNotifierResponse) ProtoReflect() protoreflect.Message
func (*DeleteNotifierResponse) Reset ¶
func (x *DeleteNotifierResponse) Reset()
func (*DeleteNotifierResponse) String ¶
func (x *DeleteNotifierResponse) String() string
type GetNotifierRequest ¶
type GetNotifierRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetNotifierRequest) Descriptor
deprecated
func (*GetNotifierRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNotifierRequest.ProtoReflect.Descriptor instead.
func (*GetNotifierRequest) GetName ¶
func (x *GetNotifierRequest) GetName() string
func (*GetNotifierRequest) GetNamespace ¶
func (x *GetNotifierRequest) GetNamespace() string
func (*GetNotifierRequest) ProtoMessage ¶
func (*GetNotifierRequest) ProtoMessage()
func (*GetNotifierRequest) ProtoReflect ¶
func (x *GetNotifierRequest) ProtoReflect() protoreflect.Message
func (*GetNotifierRequest) Reset ¶
func (x *GetNotifierRequest) Reset()
func (*GetNotifierRequest) String ¶
func (x *GetNotifierRequest) String() string
type GetNotifierResponse ¶
type GetNotifierResponse struct { Notifier *v1alpha1.Notifier `protobuf:"bytes,1,opt,name=notifier,proto3" json:"notifier,omitempty"` Yaml string `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"` // contains filtered or unexported fields }
func (*GetNotifierResponse) Descriptor
deprecated
func (*GetNotifierResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNotifierResponse.ProtoReflect.Descriptor instead.
func (*GetNotifierResponse) GetNotifier ¶ added in v0.4.472
func (x *GetNotifierResponse) GetNotifier() *v1alpha1.Notifier
func (*GetNotifierResponse) GetYaml ¶
func (x *GetNotifierResponse) GetYaml() string
func (*GetNotifierResponse) ProtoMessage ¶
func (*GetNotifierResponse) ProtoMessage()
func (*GetNotifierResponse) ProtoReflect ¶
func (x *GetNotifierResponse) ProtoReflect() protoreflect.Message
func (*GetNotifierResponse) Reset ¶
func (x *GetNotifierResponse) Reset()
func (*GetNotifierResponse) String ¶
func (x *GetNotifierResponse) String() string
type ListNotifiersRequest ¶
type ListNotifiersRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // contains filtered or unexported fields }
func (*ListNotifiersRequest) Descriptor
deprecated
func (*ListNotifiersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNotifiersRequest.ProtoReflect.Descriptor instead.
func (*ListNotifiersRequest) GetLabels ¶
func (x *ListNotifiersRequest) GetLabels() map[string]string
func (*ListNotifiersRequest) GetNamespace ¶
func (x *ListNotifiersRequest) GetNamespace() string
func (*ListNotifiersRequest) GetOrderBy ¶ added in v0.4.414
func (x *ListNotifiersRequest) GetOrderBy() string
func (*ListNotifiersRequest) GetPageSize ¶ added in v0.4.414
func (x *ListNotifiersRequest) GetPageSize() int32
func (*ListNotifiersRequest) GetPageToken ¶ added in v0.4.414
func (x *ListNotifiersRequest) GetPageToken() string
func (*ListNotifiersRequest) ProtoMessage ¶
func (*ListNotifiersRequest) ProtoMessage()
func (*ListNotifiersRequest) ProtoReflect ¶
func (x *ListNotifiersRequest) ProtoReflect() protoreflect.Message
func (*ListNotifiersRequest) Reset ¶
func (x *ListNotifiersRequest) Reset()
func (*ListNotifiersRequest) String ¶
func (x *ListNotifiersRequest) String() string
type ListNotifiersResponse ¶
type ListNotifiersResponse struct { Notifiers *v1alpha1.NotifierList `protobuf:"bytes,1,opt,name=notifiers,proto3" json:"notifiers,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListNotifiersResponse) Descriptor
deprecated
func (*ListNotifiersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNotifiersResponse.ProtoReflect.Descriptor instead.
func (*ListNotifiersResponse) GetNextPageToken ¶ added in v0.4.472
func (x *ListNotifiersResponse) GetNextPageToken() string
func (*ListNotifiersResponse) GetNotifiers ¶ added in v0.4.472
func (x *ListNotifiersResponse) GetNotifiers() *v1alpha1.NotifierList
func (*ListNotifiersResponse) ProtoMessage ¶
func (*ListNotifiersResponse) ProtoMessage()
func (*ListNotifiersResponse) ProtoReflect ¶
func (x *ListNotifiersResponse) ProtoReflect() protoreflect.Message
func (*ListNotifiersResponse) Reset ¶
func (x *ListNotifiersResponse) Reset()
func (*ListNotifiersResponse) String ¶
func (x *ListNotifiersResponse) String() string
type NotifierResponse ¶
type NotifierResponse struct {
// contains filtered or unexported fields
}
func (*NotifierResponse) Descriptor
deprecated
func (*NotifierResponse) Descriptor() ([]byte, []int)
Deprecated: Use NotifierResponse.ProtoReflect.Descriptor instead.
func (*NotifierResponse) ProtoMessage ¶
func (*NotifierResponse) ProtoMessage()
func (*NotifierResponse) ProtoReflect ¶
func (x *NotifierResponse) ProtoReflect() protoreflect.Message
func (*NotifierResponse) Reset ¶
func (x *NotifierResponse) Reset()
func (*NotifierResponse) String ¶
func (x *NotifierResponse) String() string
type NotifierServiceClient ¶
type NotifierServiceClient interface { ListNotifiers(ctx context.Context, in *ListNotifiersRequest, opts ...grpc.CallOption) (*ListNotifiersResponse, error) CreateNotifier(ctx context.Context, in *CreateNotifierRequest, opts ...grpc.CallOption) (*CreateNotifierResponse, error) GetNotifier(ctx context.Context, in *GetNotifierRequest, opts ...grpc.CallOption) (*GetNotifierResponse, error) UpdateNotifier(ctx context.Context, in *UpdateNotifierRequest, opts ...grpc.CallOption) (*UpdateNotifierResponse, error) DeleteNotifier(ctx context.Context, in *DeleteNotifierRequest, opts ...grpc.CallOption) (*DeleteNotifierResponse, error) }
NotifierServiceClient is the client API for NotifierService 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 NewNotifierServiceClient ¶
func NewNotifierServiceClient(cc grpc.ClientConnInterface) NotifierServiceClient
type NotifierServiceServer ¶
type NotifierServiceServer interface { ListNotifiers(context.Context, *ListNotifiersRequest) (*ListNotifiersResponse, error) CreateNotifier(context.Context, *CreateNotifierRequest) (*CreateNotifierResponse, error) GetNotifier(context.Context, *GetNotifierRequest) (*GetNotifierResponse, error) UpdateNotifier(context.Context, *UpdateNotifierRequest) (*UpdateNotifierResponse, error) DeleteNotifier(context.Context, *DeleteNotifierRequest) (*DeleteNotifierResponse, error) // contains filtered or unexported methods }
NotifierServiceServer is the server API for NotifierService service. All implementations must embed UnimplementedNotifierServiceServer for forward compatibility
type UnimplementedNotifierServiceServer ¶
type UnimplementedNotifierServiceServer struct { }
UnimplementedNotifierServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedNotifierServiceServer) CreateNotifier ¶
func (UnimplementedNotifierServiceServer) CreateNotifier(context.Context, *CreateNotifierRequest) (*CreateNotifierResponse, error)
func (UnimplementedNotifierServiceServer) DeleteNotifier ¶
func (UnimplementedNotifierServiceServer) DeleteNotifier(context.Context, *DeleteNotifierRequest) (*DeleteNotifierResponse, error)
func (UnimplementedNotifierServiceServer) GetNotifier ¶
func (UnimplementedNotifierServiceServer) GetNotifier(context.Context, *GetNotifierRequest) (*GetNotifierResponse, error)
func (UnimplementedNotifierServiceServer) ListNotifiers ¶
func (UnimplementedNotifierServiceServer) ListNotifiers(context.Context, *ListNotifiersRequest) (*ListNotifiersResponse, error)
func (UnimplementedNotifierServiceServer) UpdateNotifier ¶
func (UnimplementedNotifierServiceServer) UpdateNotifier(context.Context, *UpdateNotifierRequest) (*UpdateNotifierResponse, error)
type UnsafeNotifierServiceServer ¶ added in v0.4.687
type UnsafeNotifierServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNotifierServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NotifierServiceServer will result in compilation errors.
type UpdateNotifierRequest ¶
type UpdateNotifierRequest struct { Notifier *v1alpha1.Notifier `protobuf:"bytes,1,opt,name=notifier,proto3" json:"notifier,omitempty"` FieldMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateNotifierRequest) Descriptor
deprecated
func (*UpdateNotifierRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNotifierRequest.ProtoReflect.Descriptor instead.
func (*UpdateNotifierRequest) GetFieldMask ¶ added in v0.4.422
func (x *UpdateNotifierRequest) GetFieldMask() *field_mask.FieldMask
func (*UpdateNotifierRequest) GetNotifier ¶ added in v0.4.472
func (x *UpdateNotifierRequest) GetNotifier() *v1alpha1.Notifier
func (*UpdateNotifierRequest) ProtoMessage ¶
func (*UpdateNotifierRequest) ProtoMessage()
func (*UpdateNotifierRequest) ProtoReflect ¶
func (x *UpdateNotifierRequest) ProtoReflect() protoreflect.Message
func (*UpdateNotifierRequest) Reset ¶
func (x *UpdateNotifierRequest) Reset()
func (*UpdateNotifierRequest) String ¶
func (x *UpdateNotifierRequest) String() string
type UpdateNotifierResponse ¶
type UpdateNotifierResponse struct {
// contains filtered or unexported fields
}
func (*UpdateNotifierResponse) Descriptor
deprecated
func (*UpdateNotifierResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNotifierResponse.ProtoReflect.Descriptor instead.
func (*UpdateNotifierResponse) ProtoMessage ¶
func (*UpdateNotifierResponse) ProtoMessage()
func (*UpdateNotifierResponse) ProtoReflect ¶
func (x *UpdateNotifierResponse) ProtoReflect() protoreflect.Message
func (*UpdateNotifierResponse) Reset ¶
func (x *UpdateNotifierResponse) Reset()
func (*UpdateNotifierResponse) String ¶
func (x *UpdateNotifierResponse) String() string