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 (m *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 (m *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_aserto_directory_model_v3_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: "aserto/directory/model/v3/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 ¶ added in v0.33.2
func (*Body) Descriptor
deprecated
func (*Body) EqualMessageVT ¶ added in v0.33.2
func (*Body) MarshalToSizedBufferVT ¶ added in v0.33.2
func (*Body) ProtoMessage ¶
func (*Body) ProtoMessage()
func (*Body) ProtoReflect ¶
func (x *Body) ProtoReflect() protoreflect.Message
func (*Body) UnmarshalVT ¶ added in v0.33.2
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 ¶ added in v0.33.2
func (m *DeleteManifestRequest) CloneMessageVT() proto.Message
func (*DeleteManifestRequest) CloneVT ¶ added in v0.33.2
func (m *DeleteManifestRequest) CloneVT() *DeleteManifestRequest
func (*DeleteManifestRequest) Descriptor
deprecated
func (*DeleteManifestRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteManifestRequest.ProtoReflect.Descriptor instead.
func (*DeleteManifestRequest) EqualMessageVT ¶ added in v0.33.2
func (this *DeleteManifestRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*DeleteManifestRequest) EqualVT ¶ added in v0.33.2
func (this *DeleteManifestRequest) EqualVT(that *DeleteManifestRequest) bool
func (*DeleteManifestRequest) GetEmpty ¶
func (x *DeleteManifestRequest) GetEmpty() *emptypb.Empty
func (*DeleteManifestRequest) MarshalToSizedBufferVT ¶ added in v0.33.2
func (m *DeleteManifestRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DeleteManifestRequest) MarshalToVT ¶ added in v0.33.2
func (m *DeleteManifestRequest) MarshalToVT(dAtA []byte) (int, error)
func (*DeleteManifestRequest) MarshalVT ¶ added in v0.33.2
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 ¶ added in v0.33.2
func (m *DeleteManifestRequest) SizeVT() (n int)
func (*DeleteManifestRequest) String ¶
func (x *DeleteManifestRequest) String() string
func (*DeleteManifestRequest) UnmarshalVT ¶ added in v0.33.2
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 ¶ added in v0.33.2
func (m *DeleteManifestResponse) CloneMessageVT() proto.Message
func (*DeleteManifestResponse) CloneVT ¶ added in v0.33.2
func (m *DeleteManifestResponse) CloneVT() *DeleteManifestResponse
func (*DeleteManifestResponse) Descriptor
deprecated
func (*DeleteManifestResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteManifestResponse.ProtoReflect.Descriptor instead.
func (*DeleteManifestResponse) EqualMessageVT ¶ added in v0.33.2
func (this *DeleteManifestResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*DeleteManifestResponse) EqualVT ¶ added in v0.33.2
func (this *DeleteManifestResponse) EqualVT(that *DeleteManifestResponse) bool
func (*DeleteManifestResponse) GetResult ¶
func (x *DeleteManifestResponse) GetResult() *emptypb.Empty
func (*DeleteManifestResponse) MarshalToSizedBufferVT ¶ added in v0.33.2
func (m *DeleteManifestResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DeleteManifestResponse) MarshalToVT ¶ added in v0.33.2
func (m *DeleteManifestResponse) MarshalToVT(dAtA []byte) (int, error)
func (*DeleteManifestResponse) MarshalVT ¶ added in v0.33.2
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 ¶ added in v0.33.2
func (m *DeleteManifestResponse) SizeVT() (n int)
func (*DeleteManifestResponse) String ¶
func (x *DeleteManifestResponse) String() string
func (*DeleteManifestResponse) UnmarshalVT ¶ added in v0.33.2
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 ¶ added in v0.33.2
func (m *GetManifestRequest) CloneMessageVT() proto.Message
func (*GetManifestRequest) CloneVT ¶ added in v0.33.2
func (m *GetManifestRequest) CloneVT() *GetManifestRequest
func (*GetManifestRequest) Descriptor
deprecated
func (*GetManifestRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetManifestRequest.ProtoReflect.Descriptor instead.
func (*GetManifestRequest) EqualMessageVT ¶ added in v0.33.2
func (this *GetManifestRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*GetManifestRequest) EqualVT ¶ added in v0.33.2
func (this *GetManifestRequest) EqualVT(that *GetManifestRequest) bool
func (*GetManifestRequest) GetEmpty ¶
func (x *GetManifestRequest) GetEmpty() *emptypb.Empty
func (*GetManifestRequest) MarshalToSizedBufferVT ¶ added in v0.33.2
func (m *GetManifestRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetManifestRequest) MarshalToVT ¶ added in v0.33.2
func (m *GetManifestRequest) MarshalToVT(dAtA []byte) (int, error)
func (*GetManifestRequest) MarshalVT ¶ added in v0.33.2
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 ¶ added in v0.33.2
func (m *GetManifestRequest) SizeVT() (n int)
func (*GetManifestRequest) String ¶
func (x *GetManifestRequest) String() string
func (*GetManifestRequest) UnmarshalVT ¶ added in v0.33.2
func (m *GetManifestRequest) UnmarshalVT(dAtA []byte) error
type GetManifestResponse ¶
type GetManifestResponse struct { // Types that are assignable to Msg: // // *GetManifestResponse_Metadata // *GetManifestResponse_Body // *GetManifestResponse_Model Msg isGetManifestResponse_Msg `protobuf_oneof:"msg"` // contains filtered or unexported fields }
func (*GetManifestResponse) CloneMessageVT ¶ added in v0.33.2
func (m *GetManifestResponse) CloneMessageVT() proto.Message
func (*GetManifestResponse) CloneVT ¶ added in v0.33.2
func (m *GetManifestResponse) CloneVT() *GetManifestResponse
func (*GetManifestResponse) Descriptor
deprecated
func (*GetManifestResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetManifestResponse.ProtoReflect.Descriptor instead.
func (*GetManifestResponse) EqualMessageVT ¶ added in v0.33.2
func (this *GetManifestResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*GetManifestResponse) EqualVT ¶ added in v0.33.2
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 (m *GetManifestResponse) GetMsg() isGetManifestResponse_Msg
func (*GetManifestResponse) MarshalToSizedBufferVT ¶ added in v0.33.2
func (m *GetManifestResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetManifestResponse) MarshalToVT ¶ added in v0.33.2
func (m *GetManifestResponse) MarshalToVT(dAtA []byte) (int, error)
func (*GetManifestResponse) MarshalVT ¶ added in v0.33.2
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 ¶ added in v0.33.2
func (m *GetManifestResponse) SizeVT() (n int)
func (*GetManifestResponse) String ¶
func (x *GetManifestResponse) String() string
func (*GetManifestResponse) UnmarshalVT ¶ added in v0.33.2
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 ¶ added in v0.33.2
func (m *GetManifestResponse_Body) CloneVT() isGetManifestResponse_Msg
func (*GetManifestResponse_Body) EqualVT ¶ added in v0.33.2
func (this *GetManifestResponse_Body) EqualVT(thatIface isGetManifestResponse_Msg) bool
func (*GetManifestResponse_Body) MarshalToSizedBufferVT ¶ added in v0.33.2
func (m *GetManifestResponse_Body) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetManifestResponse_Body) MarshalToVT ¶ added in v0.33.2
func (m *GetManifestResponse_Body) MarshalToVT(dAtA []byte) (int, error)
func (*GetManifestResponse_Body) SizeVT ¶ added in v0.33.2
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 ¶ added in v0.33.2
func (m *GetManifestResponse_Metadata) CloneVT() isGetManifestResponse_Msg
func (*GetManifestResponse_Metadata) EqualVT ¶ added in v0.33.2
func (this *GetManifestResponse_Metadata) EqualVT(thatIface isGetManifestResponse_Msg) bool
func (*GetManifestResponse_Metadata) MarshalToSizedBufferVT ¶ added in v0.33.2
func (m *GetManifestResponse_Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetManifestResponse_Metadata) MarshalToVT ¶ added in v0.33.2
func (m *GetManifestResponse_Metadata) MarshalToVT(dAtA []byte) (int, error)
func (*GetManifestResponse_Metadata) SizeVT ¶ added in v0.33.2
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 ¶ added in v0.33.2
func (m *GetManifestResponse_Model) CloneVT() isGetManifestResponse_Msg
func (*GetManifestResponse_Model) EqualVT ¶ added in v0.33.2
func (this *GetManifestResponse_Model) EqualVT(thatIface isGetManifestResponse_Msg) bool
func (*GetManifestResponse_Model) MarshalToSizedBufferVT ¶ added in v0.33.2
func (m *GetManifestResponse_Model) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetManifestResponse_Model) MarshalToVT ¶ added in v0.33.2
func (m *GetManifestResponse_Model) MarshalToVT(dAtA []byte) (int, error)
func (*GetManifestResponse_Model) SizeVT ¶ added in v0.33.2
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 Etag string `protobuf:"bytes,23,opt,name=etag,proto3" json:"etag,omitempty"` // contains filtered or unexported fields }
func (*Metadata) CloneMessageVT ¶ added in v0.33.2
func (*Metadata) Descriptor
deprecated
func (*Metadata) EqualMessageVT ¶ added in v0.33.2
func (*Metadata) GetUpdatedAt ¶
func (x *Metadata) GetUpdatedAt() *timestamppb.Timestamp
func (*Metadata) MarshalToSizedBufferVT ¶ added in v0.33.2
func (*Metadata) MarshalToVT ¶ added in v0.33.2
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
func (*Metadata) UnmarshalVT ¶ added in v0.33.2
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 assignable to Msg: // // *SetManifestRequest_Body Msg isSetManifestRequest_Msg `protobuf_oneof:"msg"` // contains filtered or unexported fields }
func (*SetManifestRequest) CloneMessageVT ¶ added in v0.33.2
func (m *SetManifestRequest) CloneMessageVT() proto.Message
func (*SetManifestRequest) CloneVT ¶ added in v0.33.2
func (m *SetManifestRequest) CloneVT() *SetManifestRequest
func (*SetManifestRequest) Descriptor
deprecated
func (*SetManifestRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetManifestRequest.ProtoReflect.Descriptor instead.
func (*SetManifestRequest) EqualMessageVT ¶ added in v0.33.2
func (this *SetManifestRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*SetManifestRequest) EqualVT ¶ added in v0.33.2
func (this *SetManifestRequest) EqualVT(that *SetManifestRequest) bool
func (*SetManifestRequest) GetBody ¶
func (x *SetManifestRequest) GetBody() *Body
func (*SetManifestRequest) GetMsg ¶
func (m *SetManifestRequest) GetMsg() isSetManifestRequest_Msg
func (*SetManifestRequest) MarshalToSizedBufferVT ¶ added in v0.33.2
func (m *SetManifestRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SetManifestRequest) MarshalToVT ¶ added in v0.33.2
func (m *SetManifestRequest) MarshalToVT(dAtA []byte) (int, error)
func (*SetManifestRequest) MarshalVT ¶ added in v0.33.2
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 ¶ added in v0.33.2
func (m *SetManifestRequest) SizeVT() (n int)
func (*SetManifestRequest) String ¶
func (x *SetManifestRequest) String() string
func (*SetManifestRequest) UnmarshalVT ¶ added in v0.33.2
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 ¶ added in v0.33.2
func (m *SetManifestRequest_Body) CloneVT() isSetManifestRequest_Msg
func (*SetManifestRequest_Body) EqualVT ¶ added in v0.33.2
func (this *SetManifestRequest_Body) EqualVT(thatIface isSetManifestRequest_Msg) bool
func (*SetManifestRequest_Body) MarshalToSizedBufferVT ¶ added in v0.33.2
func (m *SetManifestRequest_Body) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SetManifestRequest_Body) MarshalToVT ¶ added in v0.33.2
func (m *SetManifestRequest_Body) MarshalToVT(dAtA []byte) (int, error)
func (*SetManifestRequest_Body) SizeVT ¶ added in v0.33.2
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 ¶ added in v0.33.2
func (m *SetManifestResponse) CloneMessageVT() proto.Message
func (*SetManifestResponse) CloneVT ¶ added in v0.33.2
func (m *SetManifestResponse) CloneVT() *SetManifestResponse
func (*SetManifestResponse) Descriptor
deprecated
func (*SetManifestResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetManifestResponse.ProtoReflect.Descriptor instead.
func (*SetManifestResponse) EqualMessageVT ¶ added in v0.33.2
func (this *SetManifestResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*SetManifestResponse) EqualVT ¶ added in v0.33.2
func (this *SetManifestResponse) EqualVT(that *SetManifestResponse) bool
func (*SetManifestResponse) GetResult ¶
func (x *SetManifestResponse) GetResult() *emptypb.Empty
func (*SetManifestResponse) MarshalToSizedBufferVT ¶ added in v0.33.2
func (m *SetManifestResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SetManifestResponse) MarshalToVT ¶ added in v0.33.2
func (m *SetManifestResponse) MarshalToVT(dAtA []byte) (int, error)
func (*SetManifestResponse) MarshalVT ¶ added in v0.33.2
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 ¶ added in v0.33.2
func (m *SetManifestResponse) SizeVT() (n int)
func (*SetManifestResponse) String ¶
func (x *SetManifestResponse) String() string
func (*SetManifestResponse) UnmarshalVT ¶ added in v0.33.2
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.