Documentation
¶
Overview ¶
Package model is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterModelHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterModelHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ModelClient) error
- func RegisterModelHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterModelHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ModelServer) error
- func RegisterModelServer(s grpc.ServiceRegistrar, srv ModelServer)
- type Body
- func (m *Body) CloneMessageVT() proto.Message
- func (m *Body) CloneVT() *Body
- func (*Body) Descriptor() ([]byte, []int)deprecated
- func (this *Body) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Body) EqualVT(that *Body) bool
- func (x *Body) GetData() []byte
- func (m *Body) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Body) MarshalToVT(dAtA []byte) (int, error)
- func (m *Body) MarshalVT() (dAtA []byte, err error)
- func (*Body) ProtoMessage()
- func (x *Body) ProtoReflect() protoreflect.Message
- func (x *Body) Reset()
- func (m *Body) SizeVT() (n int)
- func (x *Body) String() string
- func (m *Body) UnmarshalVT(dAtA []byte) error
- type DeleteManifestRequest
- func (m *DeleteManifestRequest) CloneMessageVT() proto.Message
- func (m *DeleteManifestRequest) CloneVT() *DeleteManifestRequest
- func (*DeleteManifestRequest) Descriptor() ([]byte, []int)deprecated
- func (this *DeleteManifestRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *DeleteManifestRequest) EqualVT(that *DeleteManifestRequest) bool
- func (x *DeleteManifestRequest) GetEmpty() *emptypb.Empty
- func (m *DeleteManifestRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DeleteManifestRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *DeleteManifestRequest) MarshalVT() (dAtA []byte, err error)
- func (*DeleteManifestRequest) ProtoMessage()
- func (x *DeleteManifestRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteManifestRequest) Reset()
- func (m *DeleteManifestRequest) SizeVT() (n int)
- func (x *DeleteManifestRequest) String() string
- func (m *DeleteManifestRequest) UnmarshalVT(dAtA []byte) error
- type DeleteManifestResponse
- func (m *DeleteManifestResponse) CloneMessageVT() proto.Message
- func (m *DeleteManifestResponse) CloneVT() *DeleteManifestResponse
- func (*DeleteManifestResponse) Descriptor() ([]byte, []int)deprecated
- func (this *DeleteManifestResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *DeleteManifestResponse) EqualVT(that *DeleteManifestResponse) bool
- func (x *DeleteManifestResponse) GetResult() *emptypb.Empty
- func (m *DeleteManifestResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DeleteManifestResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *DeleteManifestResponse) MarshalVT() (dAtA []byte, err error)
- func (*DeleteManifestResponse) ProtoMessage()
- func (x *DeleteManifestResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteManifestResponse) Reset()
- func (m *DeleteManifestResponse) SizeVT() (n int)
- func (x *DeleteManifestResponse) String() string
- func (m *DeleteManifestResponse) UnmarshalVT(dAtA []byte) error
- type GetManifestRequest
- func (m *GetManifestRequest) CloneMessageVT() proto.Message
- func (m *GetManifestRequest) CloneVT() *GetManifestRequest
- func (*GetManifestRequest) Descriptor() ([]byte, []int)deprecated
- func (this *GetManifestRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *GetManifestRequest) EqualVT(that *GetManifestRequest) bool
- func (x *GetManifestRequest) GetEmpty() *emptypb.Empty
- func (m *GetManifestRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetManifestRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetManifestRequest) MarshalVT() (dAtA []byte, err error)
- func (*GetManifestRequest) ProtoMessage()
- func (x *GetManifestRequest) ProtoReflect() protoreflect.Message
- func (x *GetManifestRequest) Reset()
- func (m *GetManifestRequest) SizeVT() (n int)
- func (x *GetManifestRequest) String() string
- func (m *GetManifestRequest) UnmarshalVT(dAtA []byte) error
- type GetManifestResponse
- func (m *GetManifestResponse) CloneMessageVT() proto.Message
- func (m *GetManifestResponse) CloneVT() *GetManifestResponse
- func (*GetManifestResponse) Descriptor() ([]byte, []int)deprecated
- func (this *GetManifestResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *GetManifestResponse) EqualVT(that *GetManifestResponse) bool
- func (x *GetManifestResponse) GetBody() *Body
- func (x *GetManifestResponse) GetMetadata() *Metadata
- func (x *GetManifestResponse) GetModel() *structpb.Struct
- func (x *GetManifestResponse) GetMsg() isGetManifestResponse_Msg
- func (m *GetManifestResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetManifestResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetManifestResponse) MarshalVT() (dAtA []byte, err error)
- func (*GetManifestResponse) ProtoMessage()
- func (x *GetManifestResponse) ProtoReflect() protoreflect.Message
- func (x *GetManifestResponse) Reset()
- func (m *GetManifestResponse) SizeVT() (n int)
- func (x *GetManifestResponse) String() string
- func (m *GetManifestResponse) UnmarshalVT(dAtA []byte) error
- type GetManifestResponse_Body
- func (m *GetManifestResponse_Body) CloneVT() isGetManifestResponse_Msg
- func (this *GetManifestResponse_Body) EqualVT(thatIface isGetManifestResponse_Msg) bool
- func (m *GetManifestResponse_Body) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetManifestResponse_Body) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetManifestResponse_Body) SizeVT() (n int)
- type GetManifestResponse_Metadata
- func (m *GetManifestResponse_Metadata) CloneVT() isGetManifestResponse_Msg
- func (this *GetManifestResponse_Metadata) EqualVT(thatIface isGetManifestResponse_Msg) bool
- func (m *GetManifestResponse_Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetManifestResponse_Metadata) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetManifestResponse_Metadata) SizeVT() (n int)
- type GetManifestResponse_Model
- func (m *GetManifestResponse_Model) CloneVT() isGetManifestResponse_Msg
- func (this *GetManifestResponse_Model) EqualVT(thatIface isGetManifestResponse_Msg) bool
- func (m *GetManifestResponse_Model) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetManifestResponse_Model) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetManifestResponse_Model) SizeVT() (n int)
- type Metadata
- func (m *Metadata) CloneMessageVT() proto.Message
- func (m *Metadata) CloneVT() *Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (this *Metadata) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Metadata) EqualVT(that *Metadata) bool
- func (x *Metadata) GetEtag() string
- func (x *Metadata) GetUpdatedAt() *timestamppb.Timestamp
- func (m *Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Metadata) MarshalToVT(dAtA []byte) (int, error)
- func (m *Metadata) MarshalVT() (dAtA []byte, err error)
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (m *Metadata) SizeVT() (n int)
- func (x *Metadata) String() string
- func (m *Metadata) UnmarshalVT(dAtA []byte) error
- type ModelClient
- type ModelServer
- type Model_GetManifestClient
- type Model_GetManifestServer
- type Model_SetManifestClient
- type Model_SetManifestServer
- type SetManifestRequest
- func (m *SetManifestRequest) CloneMessageVT() proto.Message
- func (m *SetManifestRequest) CloneVT() *SetManifestRequest
- func (*SetManifestRequest) Descriptor() ([]byte, []int)deprecated
- func (this *SetManifestRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *SetManifestRequest) EqualVT(that *SetManifestRequest) bool
- func (x *SetManifestRequest) GetBody() *Body
- func (x *SetManifestRequest) GetMsg() isSetManifestRequest_Msg
- func (m *SetManifestRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SetManifestRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *SetManifestRequest) MarshalVT() (dAtA []byte, err error)
- func (*SetManifestRequest) ProtoMessage()
- func (x *SetManifestRequest) ProtoReflect() protoreflect.Message
- func (x *SetManifestRequest) Reset()
- func (m *SetManifestRequest) SizeVT() (n int)
- func (x *SetManifestRequest) String() string
- func (m *SetManifestRequest) UnmarshalVT(dAtA []byte) error
- type SetManifestRequest_Body
- func (m *SetManifestRequest_Body) CloneVT() isSetManifestRequest_Msg
- func (this *SetManifestRequest_Body) EqualVT(thatIface isSetManifestRequest_Msg) bool
- func (m *SetManifestRequest_Body) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SetManifestRequest_Body) MarshalToVT(dAtA []byte) (int, error)
- func (m *SetManifestRequest_Body) SizeVT() (n int)
- type SetManifestResponse
- func (m *SetManifestResponse) CloneMessageVT() proto.Message
- func (m *SetManifestResponse) CloneVT() *SetManifestResponse
- func (*SetManifestResponse) Descriptor() ([]byte, []int)deprecated
- func (this *SetManifestResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *SetManifestResponse) EqualVT(that *SetManifestResponse) bool
- func (x *SetManifestResponse) GetResult() *emptypb.Empty
- func (m *SetManifestResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SetManifestResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *SetManifestResponse) MarshalVT() (dAtA []byte, err error)
- func (*SetManifestResponse) ProtoMessage()
- func (x *SetManifestResponse) ProtoReflect() protoreflect.Message
- func (x *SetManifestResponse) Reset()
- func (m *SetManifestResponse) SizeVT() (n int)
- func (x *SetManifestResponse) String() string
- func (m *SetManifestResponse) UnmarshalVT(dAtA []byte) error
- type UnimplementedModelServer
- func (UnimplementedModelServer) DeleteManifest(context.Context, *DeleteManifestRequest) (*DeleteManifestResponse, error)
- func (UnimplementedModelServer) GetManifest(*GetManifestRequest, grpc.ServerStreamingServer[GetManifestResponse]) error
- func (UnimplementedModelServer) SetManifest(grpc.ClientStreamingServer[SetManifestRequest, SetManifestResponse]) error
- type UnsafeModelServer
Constants ¶
const ( Model_GetManifest_FullMethodName = "/aserto.directory.model.v3.Model/GetManifest" Model_SetManifest_FullMethodName = "/aserto.directory.model.v3.Model/SetManifest" Model_DeleteManifest_FullMethodName = "/aserto.directory.model.v3.Model/DeleteManifest" )
Variables ¶
var File_v3_model_model_proto protoreflect.FileDescriptor
var Model_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aserto.directory.model.v3.Model", HandlerType: (*ModelServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DeleteManifest", Handler: _Model_DeleteManifest_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetManifest", Handler: _Model_GetManifest_Handler, ServerStreams: true, }, { StreamName: "SetManifest", Handler: _Model_SetManifest_Handler, ClientStreams: true, }, }, Metadata: "v3/model/model.proto", }
Model_ServiceDesc is the grpc.ServiceDesc for Model service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterModelHandler ¶
RegisterModelHandler registers the http handlers for service Model to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterModelHandlerClient ¶
func RegisterModelHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ModelClient) error
RegisterModelHandlerClient registers the http handlers for service Model to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ModelClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ModelClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ModelClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterModelHandlerFromEndpoint ¶
func RegisterModelHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterModelHandlerFromEndpoint is same as RegisterModelHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterModelHandlerServer ¶
func RegisterModelHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ModelServer) error
RegisterModelHandlerServer registers the http handlers for service Model to "mux". UnaryRPC :call ModelServer 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 RegisterModelHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterModelServer ¶
func RegisterModelServer(s grpc.ServiceRegistrar, srv ModelServer)
Types ¶
type Body ¶
type Body struct {
// manifest content
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*Body) CloneMessageVT ¶
func (*Body) Descriptor
deprecated
func (*Body) MarshalToSizedBufferVT ¶
func (*Body) ProtoMessage ¶
func (*Body) ProtoMessage()
func (*Body) ProtoReflect ¶
func (x *Body) ProtoReflect() protoreflect.Message
func (*Body) UnmarshalVT ¶
type DeleteManifestRequest ¶
type DeleteManifestRequest struct {
// empty request
Empty *emptypb.Empty `protobuf:"bytes,1,opt,name=empty,proto3" json:"empty,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteManifestRequest) CloneMessageVT ¶
func (m *DeleteManifestRequest) CloneMessageVT() proto.Message
func (*DeleteManifestRequest) CloneVT ¶
func (m *DeleteManifestRequest) CloneVT() *DeleteManifestRequest
func (*DeleteManifestRequest) Descriptor
deprecated
func (*DeleteManifestRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteManifestRequest.ProtoReflect.Descriptor instead.
func (*DeleteManifestRequest) EqualMessageVT ¶
func (this *DeleteManifestRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*DeleteManifestRequest) EqualVT ¶
func (this *DeleteManifestRequest) EqualVT(that *DeleteManifestRequest) bool
func (*DeleteManifestRequest) GetEmpty ¶
func (x *DeleteManifestRequest) GetEmpty() *emptypb.Empty
func (*DeleteManifestRequest) MarshalToSizedBufferVT ¶
func (m *DeleteManifestRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DeleteManifestRequest) MarshalToVT ¶
func (m *DeleteManifestRequest) MarshalToVT(dAtA []byte) (int, error)
func (*DeleteManifestRequest) MarshalVT ¶
func (m *DeleteManifestRequest) MarshalVT() (dAtA []byte, err error)
func (*DeleteManifestRequest) ProtoMessage ¶
func (*DeleteManifestRequest) ProtoMessage()
func (*DeleteManifestRequest) ProtoReflect ¶
func (x *DeleteManifestRequest) ProtoReflect() protoreflect.Message
func (*DeleteManifestRequest) Reset ¶
func (x *DeleteManifestRequest) Reset()
func (*DeleteManifestRequest) SizeVT ¶
func (m *DeleteManifestRequest) SizeVT() (n int)
func (*DeleteManifestRequest) String ¶
func (x *DeleteManifestRequest) String() string
func (*DeleteManifestRequest) UnmarshalVT ¶
func (m *DeleteManifestRequest) UnmarshalVT(dAtA []byte) error
type DeleteManifestResponse ¶
type DeleteManifestResponse struct {
// empty result
Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteManifestResponse) CloneMessageVT ¶
func (m *DeleteManifestResponse) CloneMessageVT() proto.Message
func (*DeleteManifestResponse) CloneVT ¶
func (m *DeleteManifestResponse) CloneVT() *DeleteManifestResponse
func (*DeleteManifestResponse) Descriptor
deprecated
func (*DeleteManifestResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteManifestResponse.ProtoReflect.Descriptor instead.
func (*DeleteManifestResponse) EqualMessageVT ¶
func (this *DeleteManifestResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*DeleteManifestResponse) EqualVT ¶
func (this *DeleteManifestResponse) EqualVT(that *DeleteManifestResponse) bool
func (*DeleteManifestResponse) GetResult ¶
func (x *DeleteManifestResponse) GetResult() *emptypb.Empty
func (*DeleteManifestResponse) MarshalToSizedBufferVT ¶
func (m *DeleteManifestResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DeleteManifestResponse) MarshalToVT ¶
func (m *DeleteManifestResponse) MarshalToVT(dAtA []byte) (int, error)
func (*DeleteManifestResponse) MarshalVT ¶
func (m *DeleteManifestResponse) MarshalVT() (dAtA []byte, err error)
func (*DeleteManifestResponse) ProtoMessage ¶
func (*DeleteManifestResponse) ProtoMessage()
func (*DeleteManifestResponse) ProtoReflect ¶
func (x *DeleteManifestResponse) ProtoReflect() protoreflect.Message
func (*DeleteManifestResponse) Reset ¶
func (x *DeleteManifestResponse) Reset()
func (*DeleteManifestResponse) SizeVT ¶
func (m *DeleteManifestResponse) SizeVT() (n int)
func (*DeleteManifestResponse) String ¶
func (x *DeleteManifestResponse) String() string
func (*DeleteManifestResponse) UnmarshalVT ¶
func (m *DeleteManifestResponse) UnmarshalVT(dAtA []byte) error
type GetManifestRequest ¶
type GetManifestRequest struct {
// empty request
Empty *emptypb.Empty `protobuf:"bytes,1,opt,name=empty,proto3" json:"empty,omitempty"`
// contains filtered or unexported fields
}
func (*GetManifestRequest) CloneMessageVT ¶
func (m *GetManifestRequest) CloneMessageVT() proto.Message
func (*GetManifestRequest) CloneVT ¶
func (m *GetManifestRequest) CloneVT() *GetManifestRequest
func (*GetManifestRequest) Descriptor
deprecated
func (*GetManifestRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetManifestRequest.ProtoReflect.Descriptor instead.
func (*GetManifestRequest) EqualMessageVT ¶
func (this *GetManifestRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*GetManifestRequest) EqualVT ¶
func (this *GetManifestRequest) EqualVT(that *GetManifestRequest) bool
func (*GetManifestRequest) GetEmpty ¶
func (x *GetManifestRequest) GetEmpty() *emptypb.Empty
func (*GetManifestRequest) MarshalToSizedBufferVT ¶
func (m *GetManifestRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetManifestRequest) MarshalToVT ¶
func (m *GetManifestRequest) MarshalToVT(dAtA []byte) (int, error)
func (*GetManifestRequest) MarshalVT ¶
func (m *GetManifestRequest) MarshalVT() (dAtA []byte, err error)
func (*GetManifestRequest) ProtoMessage ¶
func (*GetManifestRequest) ProtoMessage()
func (*GetManifestRequest) ProtoReflect ¶
func (x *GetManifestRequest) ProtoReflect() protoreflect.Message
func (*GetManifestRequest) Reset ¶
func (x *GetManifestRequest) Reset()
func (*GetManifestRequest) SizeVT ¶
func (m *GetManifestRequest) SizeVT() (n int)
func (*GetManifestRequest) String ¶
func (x *GetManifestRequest) String() string
func (*GetManifestRequest) UnmarshalVT ¶
func (m *GetManifestRequest) UnmarshalVT(dAtA []byte) error
type GetManifestResponse ¶
type GetManifestResponse struct {
// Types that are valid to be assigned to Msg:
//
// *GetManifestResponse_Metadata
// *GetManifestResponse_Body
// *GetManifestResponse_Model
Msg isGetManifestResponse_Msg `protobuf_oneof:"msg"`
// contains filtered or unexported fields
}
func (*GetManifestResponse) CloneMessageVT ¶
func (m *GetManifestResponse) CloneMessageVT() proto.Message
func (*GetManifestResponse) CloneVT ¶
func (m *GetManifestResponse) CloneVT() *GetManifestResponse
func (*GetManifestResponse) Descriptor
deprecated
func (*GetManifestResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetManifestResponse.ProtoReflect.Descriptor instead.
func (*GetManifestResponse) EqualMessageVT ¶
func (this *GetManifestResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*GetManifestResponse) EqualVT ¶
func (this *GetManifestResponse) EqualVT(that *GetManifestResponse) bool
func (*GetManifestResponse) GetBody ¶
func (x *GetManifestResponse) GetBody() *Body
func (*GetManifestResponse) GetMetadata ¶
func (x *GetManifestResponse) GetMetadata() *Metadata
func (*GetManifestResponse) GetModel ¶
func (x *GetManifestResponse) GetModel() *structpb.Struct
func (*GetManifestResponse) GetMsg ¶
func (x *GetManifestResponse) GetMsg() isGetManifestResponse_Msg
func (*GetManifestResponse) MarshalToSizedBufferVT ¶
func (m *GetManifestResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetManifestResponse) MarshalToVT ¶
func (m *GetManifestResponse) MarshalToVT(dAtA []byte) (int, error)
func (*GetManifestResponse) MarshalVT ¶
func (m *GetManifestResponse) MarshalVT() (dAtA []byte, err error)
func (*GetManifestResponse) ProtoMessage ¶
func (*GetManifestResponse) ProtoMessage()
func (*GetManifestResponse) ProtoReflect ¶
func (x *GetManifestResponse) ProtoReflect() protoreflect.Message
func (*GetManifestResponse) Reset ¶
func (x *GetManifestResponse) Reset()
func (*GetManifestResponse) SizeVT ¶
func (m *GetManifestResponse) SizeVT() (n int)
func (*GetManifestResponse) String ¶
func (x *GetManifestResponse) String() string
func (*GetManifestResponse) UnmarshalVT ¶
func (m *GetManifestResponse) UnmarshalVT(dAtA []byte) error
type GetManifestResponse_Body ¶
type GetManifestResponse_Body struct {
// Manifest content
Body *Body `protobuf:"bytes,2,opt,name=body,proto3,oneof"`
}
func (*GetManifestResponse_Body) CloneVT ¶
func (m *GetManifestResponse_Body) CloneVT() isGetManifestResponse_Msg
func (*GetManifestResponse_Body) EqualVT ¶
func (this *GetManifestResponse_Body) EqualVT(thatIface isGetManifestResponse_Msg) bool
func (*GetManifestResponse_Body) MarshalToSizedBufferVT ¶
func (m *GetManifestResponse_Body) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetManifestResponse_Body) MarshalToVT ¶
func (m *GetManifestResponse_Body) MarshalToVT(dAtA []byte) (int, error)
func (*GetManifestResponse_Body) SizeVT ¶
func (m *GetManifestResponse_Body) SizeVT() (n int)
type GetManifestResponse_Metadata ¶
type GetManifestResponse_Metadata struct {
// Manifest metadata
Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"`
}
func (*GetManifestResponse_Metadata) CloneVT ¶
func (m *GetManifestResponse_Metadata) CloneVT() isGetManifestResponse_Msg
func (*GetManifestResponse_Metadata) EqualVT ¶
func (this *GetManifestResponse_Metadata) EqualVT(thatIface isGetManifestResponse_Msg) bool
func (*GetManifestResponse_Metadata) MarshalToSizedBufferVT ¶
func (m *GetManifestResponse_Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetManifestResponse_Metadata) MarshalToVT ¶
func (m *GetManifestResponse_Metadata) MarshalToVT(dAtA []byte) (int, error)
func (*GetManifestResponse_Metadata) SizeVT ¶
func (m *GetManifestResponse_Metadata) SizeVT() (n int)
type GetManifestResponse_Model ¶
type GetManifestResponse_Model struct {
// Model
Model *structpb.Struct `protobuf:"bytes,3,opt,name=model,proto3,oneof"`
}
func (*GetManifestResponse_Model) CloneVT ¶
func (m *GetManifestResponse_Model) CloneVT() isGetManifestResponse_Msg
func (*GetManifestResponse_Model) EqualVT ¶
func (this *GetManifestResponse_Model) EqualVT(thatIface isGetManifestResponse_Msg) bool
func (*GetManifestResponse_Model) MarshalToSizedBufferVT ¶
func (m *GetManifestResponse_Model) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetManifestResponse_Model) MarshalToVT ¶
func (m *GetManifestResponse_Model) MarshalToVT(dAtA []byte) (int, error)
func (*GetManifestResponse_Model) SizeVT ¶
func (m *GetManifestResponse_Model) SizeVT() (n int)
type Metadata ¶
type Metadata struct {
// last updated timestamp (UTC)
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// object instance etag (optional)
Etag string `protobuf:"bytes,23,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}
func (*Metadata) CloneMessageVT ¶
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetUpdatedAt ¶
func (x *Metadata) GetUpdatedAt() *timestamppb.Timestamp
func (*Metadata) MarshalToSizedBufferVT ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
func (*Metadata) UnmarshalVT ¶
type ModelClient ¶
type ModelClient interface {
// get manifest instance
GetManifest(ctx context.Context, in *GetManifestRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetManifestResponse], error)
// set manifest instance
SetManifest(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[SetManifestRequest, SetManifestResponse], error)
// delete manifest instance
DeleteManifest(ctx context.Context, in *DeleteManifestRequest, opts ...grpc.CallOption) (*DeleteManifestResponse, error)
}
ModelClient is the client API for Model 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 NewModelClient ¶
func NewModelClient(cc grpc.ClientConnInterface) ModelClient
type ModelServer ¶
type ModelServer interface {
// get manifest instance
GetManifest(*GetManifestRequest, grpc.ServerStreamingServer[GetManifestResponse]) error
// set manifest instance
SetManifest(grpc.ClientStreamingServer[SetManifestRequest, SetManifestResponse]) error
// delete manifest instance
DeleteManifest(context.Context, *DeleteManifestRequest) (*DeleteManifestResponse, error)
}
ModelServer is the server API for Model service. All implementations should embed UnimplementedModelServer for forward compatibility.
type Model_GetManifestClient ¶
type Model_GetManifestClient = grpc.ServerStreamingClient[GetManifestResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Model_GetManifestServer ¶
type Model_GetManifestServer = grpc.ServerStreamingServer[GetManifestResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Model_SetManifestClient ¶
type Model_SetManifestClient = grpc.ClientStreamingClient[SetManifestRequest, SetManifestResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Model_SetManifestServer ¶
type Model_SetManifestServer = grpc.ClientStreamingServer[SetManifestRequest, SetManifestResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SetManifestRequest ¶
type SetManifestRequest struct {
// manifest instance
//
// Types that are valid to be assigned to Msg:
//
// *SetManifestRequest_Body
Msg isSetManifestRequest_Msg `protobuf_oneof:"msg"`
// contains filtered or unexported fields
}
func (*SetManifestRequest) CloneMessageVT ¶
func (m *SetManifestRequest) CloneMessageVT() proto.Message
func (*SetManifestRequest) CloneVT ¶
func (m *SetManifestRequest) CloneVT() *SetManifestRequest
func (*SetManifestRequest) Descriptor
deprecated
func (*SetManifestRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetManifestRequest.ProtoReflect.Descriptor instead.
func (*SetManifestRequest) EqualMessageVT ¶
func (this *SetManifestRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*SetManifestRequest) EqualVT ¶
func (this *SetManifestRequest) EqualVT(that *SetManifestRequest) bool
func (*SetManifestRequest) GetBody ¶
func (x *SetManifestRequest) GetBody() *Body
func (*SetManifestRequest) GetMsg ¶
func (x *SetManifestRequest) GetMsg() isSetManifestRequest_Msg
func (*SetManifestRequest) MarshalToSizedBufferVT ¶
func (m *SetManifestRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SetManifestRequest) MarshalToVT ¶
func (m *SetManifestRequest) MarshalToVT(dAtA []byte) (int, error)
func (*SetManifestRequest) MarshalVT ¶
func (m *SetManifestRequest) MarshalVT() (dAtA []byte, err error)
func (*SetManifestRequest) ProtoMessage ¶
func (*SetManifestRequest) ProtoMessage()
func (*SetManifestRequest) ProtoReflect ¶
func (x *SetManifestRequest) ProtoReflect() protoreflect.Message
func (*SetManifestRequest) Reset ¶
func (x *SetManifestRequest) Reset()
func (*SetManifestRequest) SizeVT ¶
func (m *SetManifestRequest) SizeVT() (n int)
func (*SetManifestRequest) String ¶
func (x *SetManifestRequest) String() string
func (*SetManifestRequest) UnmarshalVT ¶
func (m *SetManifestRequest) UnmarshalVT(dAtA []byte) error
type SetManifestRequest_Body ¶
type SetManifestRequest_Body struct {
// Manifest content
Body *Body `protobuf:"bytes,1,opt,name=body,proto3,oneof"`
}
func (*SetManifestRequest_Body) CloneVT ¶
func (m *SetManifestRequest_Body) CloneVT() isSetManifestRequest_Msg
func (*SetManifestRequest_Body) EqualVT ¶
func (this *SetManifestRequest_Body) EqualVT(thatIface isSetManifestRequest_Msg) bool
func (*SetManifestRequest_Body) MarshalToSizedBufferVT ¶
func (m *SetManifestRequest_Body) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SetManifestRequest_Body) MarshalToVT ¶
func (m *SetManifestRequest_Body) MarshalToVT(dAtA []byte) (int, error)
func (*SetManifestRequest_Body) SizeVT ¶
func (m *SetManifestRequest_Body) SizeVT() (n int)
type SetManifestResponse ¶
type SetManifestResponse struct {
// empty result
Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
// contains filtered or unexported fields
}
func (*SetManifestResponse) CloneMessageVT ¶
func (m *SetManifestResponse) CloneMessageVT() proto.Message
func (*SetManifestResponse) CloneVT ¶
func (m *SetManifestResponse) CloneVT() *SetManifestResponse
func (*SetManifestResponse) Descriptor
deprecated
func (*SetManifestResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetManifestResponse.ProtoReflect.Descriptor instead.
func (*SetManifestResponse) EqualMessageVT ¶
func (this *SetManifestResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*SetManifestResponse) EqualVT ¶
func (this *SetManifestResponse) EqualVT(that *SetManifestResponse) bool
func (*SetManifestResponse) GetResult ¶
func (x *SetManifestResponse) GetResult() *emptypb.Empty
func (*SetManifestResponse) MarshalToSizedBufferVT ¶
func (m *SetManifestResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SetManifestResponse) MarshalToVT ¶
func (m *SetManifestResponse) MarshalToVT(dAtA []byte) (int, error)
func (*SetManifestResponse) MarshalVT ¶
func (m *SetManifestResponse) MarshalVT() (dAtA []byte, err error)
func (*SetManifestResponse) ProtoMessage ¶
func (*SetManifestResponse) ProtoMessage()
func (*SetManifestResponse) ProtoReflect ¶
func (x *SetManifestResponse) ProtoReflect() protoreflect.Message
func (*SetManifestResponse) Reset ¶
func (x *SetManifestResponse) Reset()
func (*SetManifestResponse) SizeVT ¶
func (m *SetManifestResponse) SizeVT() (n int)
func (*SetManifestResponse) String ¶
func (x *SetManifestResponse) String() string
func (*SetManifestResponse) UnmarshalVT ¶
func (m *SetManifestResponse) UnmarshalVT(dAtA []byte) error
type UnimplementedModelServer ¶
type UnimplementedModelServer struct{}
UnimplementedModelServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedModelServer) DeleteManifest ¶
func (UnimplementedModelServer) DeleteManifest(context.Context, *DeleteManifestRequest) (*DeleteManifestResponse, error)
func (UnimplementedModelServer) GetManifest ¶
func (UnimplementedModelServer) GetManifest(*GetManifestRequest, grpc.ServerStreamingServer[GetManifestResponse]) error
func (UnimplementedModelServer) SetManifest ¶
func (UnimplementedModelServer) SetManifest(grpc.ClientStreamingServer[SetManifestRequest, SetManifestResponse]) error
type UnsafeModelServer ¶
type UnsafeModelServer interface {
// contains filtered or unexported methods
}
UnsafeModelServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ModelServer will result in compilation errors.