Documentation
¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterTenantServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTenantServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TenantServiceClient) error
- func RegisterTenantServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTenantServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TenantServiceServer) error
- func RegisterTenantServiceServer(s grpc.ServiceRegistrar, srv TenantServiceServer)
- type CreateTenantRequest
- func (*CreateTenantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTenantRequest) GetTenant() *v1alpha1.Tenant
- func (*CreateTenantRequest) ProtoMessage()
- func (x *CreateTenantRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTenantRequest) Reset()
- func (x *CreateTenantRequest) String() string
- type CreateTenantResponse
- type DeleteTenantRequest
- func (*DeleteTenantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTenantRequest) GetName() string
- func (x *DeleteTenantRequest) GetNamespace() string
- func (*DeleteTenantRequest) ProtoMessage()
- func (x *DeleteTenantRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteTenantRequest) Reset()
- func (x *DeleteTenantRequest) String() string
- type DeleteTenantResponse
- type GetTenantRequest
- func (*GetTenantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTenantRequest) GetName() string
- func (x *GetTenantRequest) GetNamespace() string
- func (*GetTenantRequest) ProtoMessage()
- func (x *GetTenantRequest) ProtoReflect() protoreflect.Message
- func (x *GetTenantRequest) Reset()
- func (x *GetTenantRequest) String() string
- type GetTenantResponse
- func (*GetTenantResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTenantResponse) GetAlerts() []*v1alpha1.Alert
- func (x *GetTenantResponse) GetDatasets() []*v1alpha11.Dataset
- func (x *GetTenantResponse) GetModels() []*v1alpha12.Model
- func (x *GetTenantResponse) GetPredictors() []*v1alpha13.Predictor
- func (x *GetTenantResponse) GetStudies() []*v1alpha12.Study
- func (x *GetTenantResponse) GetTenant() *v1alpha1.Tenant
- func (x *GetTenantResponse) GetYaml() string
- func (*GetTenantResponse) ProtoMessage()
- func (x *GetTenantResponse) ProtoReflect() protoreflect.Message
- func (x *GetTenantResponse) Reset()
- func (x *GetTenantResponse) String() string
- type ListTenantAlertsRequest
- func (*ListTenantAlertsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListTenantAlertsRequest) GetLabels() map[string]string
- func (x *ListTenantAlertsRequest) GetNamespace() string
- func (x *ListTenantAlertsRequest) GetOrderBy() string
- func (x *ListTenantAlertsRequest) GetPageSize() int32
- func (x *ListTenantAlertsRequest) GetPageToken() string
- func (*ListTenantAlertsRequest) ProtoMessage()
- func (x *ListTenantAlertsRequest) ProtoReflect() protoreflect.Message
- func (x *ListTenantAlertsRequest) Reset()
- func (x *ListTenantAlertsRequest) String() string
- type ListTenantAlertsResponse
- func (*ListTenantAlertsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTenantAlertsResponse) GetAlerts() *v1alpha1.AlertList
- func (x *ListTenantAlertsResponse) GetNextPageToken() string
- func (*ListTenantAlertsResponse) ProtoMessage()
- func (x *ListTenantAlertsResponse) ProtoReflect() protoreflect.Message
- func (x *ListTenantAlertsResponse) Reset()
- func (x *ListTenantAlertsResponse) String() string
- type ListTenantsRequest
- func (*ListTenantsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListTenantsRequest) GetLabels() map[string]string
- func (x *ListTenantsRequest) GetNamespace() string
- func (*ListTenantsRequest) ProtoMessage()
- func (x *ListTenantsRequest) ProtoReflect() protoreflect.Message
- func (x *ListTenantsRequest) Reset()
- func (x *ListTenantsRequest) String() string
- type ListTenantsResponse
- func (*ListTenantsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTenantsResponse) GetNextPageToken() string
- func (x *ListTenantsResponse) GetTenants() *v1alpha1.TenantList
- func (*ListTenantsResponse) ProtoMessage()
- func (x *ListTenantsResponse) ProtoReflect() protoreflect.Message
- func (x *ListTenantsResponse) Reset()
- func (x *ListTenantsResponse) String() string
- type TenantServiceClient
- type TenantServiceServer
- type UnimplementedTenantServiceServer
- func (UnimplementedTenantServiceServer) CreateTenant(context.Context, *CreateTenantRequest) (*CreateTenantResponse, error)
- func (UnimplementedTenantServiceServer) DeleteTenant(context.Context, *DeleteTenantRequest) (*DeleteTenantResponse, error)
- func (UnimplementedTenantServiceServer) GetTenant(context.Context, *GetTenantRequest) (*GetTenantResponse, error)
- func (UnimplementedTenantServiceServer) ListTenantAlerts(context.Context, *ListTenantAlertsRequest) (*ListTenantAlertsResponse, error)
- func (UnimplementedTenantServiceServer) ListTenants(context.Context, *ListTenantsRequest) (*ListTenantsResponse, error)
- func (UnimplementedTenantServiceServer) UpdateTenant(context.Context, *UpdateTenantRequest) (*UpdateTenantResponse, error)
- type UnsafeTenantServiceServer
- type UpdateTenantRequest
- func (*UpdateTenantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTenantRequest) GetFieldMask() *field_mask.FieldMask
- func (x *UpdateTenantRequest) GetTenant() *v1alpha1.Tenant
- func (*UpdateTenantRequest) ProtoMessage()
- func (x *UpdateTenantRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateTenantRequest) Reset()
- func (x *UpdateTenantRequest) String() string
- type UpdateTenantResponse
Constants ¶
This section is empty.
Variables ¶
var File_github_com_metaprov_modelaapi_services_tenant_v1_tenant_proto protoreflect.FileDescriptor
var TenantService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "github.com.metaprov.modelaapi.services.tenant.v1.TenantService", HandlerType: (*TenantServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListTenantAlerts", Handler: _TenantService_ListTenantAlerts_Handler, }, { MethodName: "ListTenants", Handler: _TenantService_ListTenants_Handler, }, { MethodName: "CreateTenant", Handler: _TenantService_CreateTenant_Handler, }, { MethodName: "GetTenant", Handler: _TenantService_GetTenant_Handler, }, { MethodName: "UpdateTenant", Handler: _TenantService_UpdateTenant_Handler, }, { MethodName: "DeleteTenant", Handler: _TenantService_DeleteTenant_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/metaprov/modelaapi/services/tenant/v1/tenant.proto", }
TenantService_ServiceDesc is the grpc.ServiceDesc for TenantService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTenantServiceHandler ¶ added in v0.4.687
func RegisterTenantServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTenantServiceHandler registers the http handlers for service TenantService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTenantServiceHandlerClient ¶ added in v0.4.687
func RegisterTenantServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TenantServiceClient) error
RegisterTenantServiceHandlerClient registers the http handlers for service TenantService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TenantServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TenantServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TenantServiceClient" to call the correct interceptors.
func RegisterTenantServiceHandlerFromEndpoint ¶ added in v0.4.687
func RegisterTenantServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTenantServiceHandlerFromEndpoint is same as RegisterTenantServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTenantServiceHandlerServer ¶ added in v0.4.687
func RegisterTenantServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TenantServiceServer) error
RegisterTenantServiceHandlerServer registers the http handlers for service TenantService to "mux". UnaryRPC :call TenantServiceServer 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 RegisterTenantServiceHandlerFromEndpoint instead.
func RegisterTenantServiceServer ¶
func RegisterTenantServiceServer(s grpc.ServiceRegistrar, srv TenantServiceServer)
Types ¶
type CreateTenantRequest ¶
type CreateTenantRequest struct { Tenant *v1alpha1.Tenant `protobuf:"bytes,4,opt,name=tenant,proto3" json:"tenant,omitempty"` // contains filtered or unexported fields }
func (*CreateTenantRequest) Descriptor
deprecated
func (*CreateTenantRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTenantRequest.ProtoReflect.Descriptor instead.
func (*CreateTenantRequest) GetTenant ¶ added in v0.4.472
func (x *CreateTenantRequest) GetTenant() *v1alpha1.Tenant
func (*CreateTenantRequest) ProtoMessage ¶
func (*CreateTenantRequest) ProtoMessage()
func (*CreateTenantRequest) ProtoReflect ¶
func (x *CreateTenantRequest) ProtoReflect() protoreflect.Message
func (*CreateTenantRequest) Reset ¶
func (x *CreateTenantRequest) Reset()
func (*CreateTenantRequest) String ¶
func (x *CreateTenantRequest) String() string
type CreateTenantResponse ¶
type CreateTenantResponse struct {
// contains filtered or unexported fields
}
func (*CreateTenantResponse) Descriptor
deprecated
func (*CreateTenantResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateTenantResponse.ProtoReflect.Descriptor instead.
func (*CreateTenantResponse) ProtoMessage ¶
func (*CreateTenantResponse) ProtoMessage()
func (*CreateTenantResponse) ProtoReflect ¶
func (x *CreateTenantResponse) ProtoReflect() protoreflect.Message
func (*CreateTenantResponse) Reset ¶
func (x *CreateTenantResponse) Reset()
func (*CreateTenantResponse) String ¶
func (x *CreateTenantResponse) String() string
type DeleteTenantRequest ¶
type DeleteTenantRequest 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 (*DeleteTenantRequest) Descriptor
deprecated
func (*DeleteTenantRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTenantRequest.ProtoReflect.Descriptor instead.
func (*DeleteTenantRequest) GetName ¶
func (x *DeleteTenantRequest) GetName() string
func (*DeleteTenantRequest) GetNamespace ¶
func (x *DeleteTenantRequest) GetNamespace() string
func (*DeleteTenantRequest) ProtoMessage ¶
func (*DeleteTenantRequest) ProtoMessage()
func (*DeleteTenantRequest) ProtoReflect ¶
func (x *DeleteTenantRequest) ProtoReflect() protoreflect.Message
func (*DeleteTenantRequest) Reset ¶
func (x *DeleteTenantRequest) Reset()
func (*DeleteTenantRequest) String ¶
func (x *DeleteTenantRequest) String() string
type DeleteTenantResponse ¶
type DeleteTenantResponse struct {
// contains filtered or unexported fields
}
func (*DeleteTenantResponse) Descriptor
deprecated
func (*DeleteTenantResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTenantResponse.ProtoReflect.Descriptor instead.
func (*DeleteTenantResponse) ProtoMessage ¶
func (*DeleteTenantResponse) ProtoMessage()
func (*DeleteTenantResponse) ProtoReflect ¶
func (x *DeleteTenantResponse) ProtoReflect() protoreflect.Message
func (*DeleteTenantResponse) Reset ¶
func (x *DeleteTenantResponse) Reset()
func (*DeleteTenantResponse) String ¶
func (x *DeleteTenantResponse) String() string
type GetTenantRequest ¶
type GetTenantRequest 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 (*GetTenantRequest) Descriptor
deprecated
func (*GetTenantRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTenantRequest.ProtoReflect.Descriptor instead.
func (*GetTenantRequest) GetName ¶
func (x *GetTenantRequest) GetName() string
func (*GetTenantRequest) GetNamespace ¶
func (x *GetTenantRequest) GetNamespace() string
func (*GetTenantRequest) ProtoMessage ¶
func (*GetTenantRequest) ProtoMessage()
func (*GetTenantRequest) ProtoReflect ¶
func (x *GetTenantRequest) ProtoReflect() protoreflect.Message
func (*GetTenantRequest) Reset ¶
func (x *GetTenantRequest) Reset()
func (*GetTenantRequest) String ¶
func (x *GetTenantRequest) String() string
type GetTenantResponse ¶
type GetTenantResponse struct { Tenant *v1alpha1.Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` Alerts []*v1alpha1.Alert `protobuf:"bytes,2,rep,name=alerts,proto3" json:"alerts,omitempty"` Datasets []*v1alpha11.Dataset `protobuf:"bytes,3,rep,name=datasets,proto3" json:"datasets,omitempty"` Studies []*v1alpha12.Study `protobuf:"bytes,4,rep,name=studies,proto3" json:"studies,omitempty"` Models []*v1alpha12.Model `protobuf:"bytes,5,rep,name=models,proto3" json:"models,omitempty"` Predictors []*v1alpha13.Predictor `protobuf:"bytes,6,rep,name=predictors,proto3" json:"predictors,omitempty"` Yaml string `protobuf:"bytes,7,opt,name=yaml,proto3" json:"yaml,omitempty"` // contains filtered or unexported fields }
func (*GetTenantResponse) Descriptor
deprecated
func (*GetTenantResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTenantResponse.ProtoReflect.Descriptor instead.
func (*GetTenantResponse) GetAlerts ¶
func (x *GetTenantResponse) GetAlerts() []*v1alpha1.Alert
func (*GetTenantResponse) GetDatasets ¶
func (x *GetTenantResponse) GetDatasets() []*v1alpha11.Dataset
func (*GetTenantResponse) GetModels ¶
func (x *GetTenantResponse) GetModels() []*v1alpha12.Model
func (*GetTenantResponse) GetPredictors ¶
func (x *GetTenantResponse) GetPredictors() []*v1alpha13.Predictor
func (*GetTenantResponse) GetStudies ¶
func (x *GetTenantResponse) GetStudies() []*v1alpha12.Study
func (*GetTenantResponse) GetTenant ¶ added in v0.4.472
func (x *GetTenantResponse) GetTenant() *v1alpha1.Tenant
func (*GetTenantResponse) GetYaml ¶
func (x *GetTenantResponse) GetYaml() string
func (*GetTenantResponse) ProtoMessage ¶
func (*GetTenantResponse) ProtoMessage()
func (*GetTenantResponse) ProtoReflect ¶
func (x *GetTenantResponse) ProtoReflect() protoreflect.Message
func (*GetTenantResponse) Reset ¶
func (x *GetTenantResponse) Reset()
func (*GetTenantResponse) String ¶
func (x *GetTenantResponse) String() string
type ListTenantAlertsRequest ¶ added in v0.4.664
type ListTenantAlertsRequest 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 (*ListTenantAlertsRequest) Descriptor
deprecated
added in
v0.4.664
func (*ListTenantAlertsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTenantAlertsRequest.ProtoReflect.Descriptor instead.
func (*ListTenantAlertsRequest) GetLabels ¶ added in v0.4.664
func (x *ListTenantAlertsRequest) GetLabels() map[string]string
func (*ListTenantAlertsRequest) GetNamespace ¶ added in v0.4.664
func (x *ListTenantAlertsRequest) GetNamespace() string
func (*ListTenantAlertsRequest) GetOrderBy ¶ added in v0.4.664
func (x *ListTenantAlertsRequest) GetOrderBy() string
func (*ListTenantAlertsRequest) GetPageSize ¶ added in v0.4.664
func (x *ListTenantAlertsRequest) GetPageSize() int32
func (*ListTenantAlertsRequest) GetPageToken ¶ added in v0.4.664
func (x *ListTenantAlertsRequest) GetPageToken() string
func (*ListTenantAlertsRequest) ProtoMessage ¶ added in v0.4.664
func (*ListTenantAlertsRequest) ProtoMessage()
func (*ListTenantAlertsRequest) ProtoReflect ¶ added in v0.4.664
func (x *ListTenantAlertsRequest) ProtoReflect() protoreflect.Message
func (*ListTenantAlertsRequest) Reset ¶ added in v0.4.664
func (x *ListTenantAlertsRequest) Reset()
func (*ListTenantAlertsRequest) String ¶ added in v0.4.664
func (x *ListTenantAlertsRequest) String() string
type ListTenantAlertsResponse ¶ added in v0.4.664
type ListTenantAlertsResponse struct { Alerts *v1alpha1.AlertList `protobuf:"bytes,1,opt,name=alerts,proto3" json:"alerts,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 (*ListTenantAlertsResponse) Descriptor
deprecated
added in
v0.4.664
func (*ListTenantAlertsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTenantAlertsResponse.ProtoReflect.Descriptor instead.
func (*ListTenantAlertsResponse) GetAlerts ¶ added in v0.4.664
func (x *ListTenantAlertsResponse) GetAlerts() *v1alpha1.AlertList
func (*ListTenantAlertsResponse) GetNextPageToken ¶ added in v0.4.664
func (x *ListTenantAlertsResponse) GetNextPageToken() string
func (*ListTenantAlertsResponse) ProtoMessage ¶ added in v0.4.664
func (*ListTenantAlertsResponse) ProtoMessage()
func (*ListTenantAlertsResponse) ProtoReflect ¶ added in v0.4.664
func (x *ListTenantAlertsResponse) ProtoReflect() protoreflect.Message
func (*ListTenantAlertsResponse) Reset ¶ added in v0.4.664
func (x *ListTenantAlertsResponse) Reset()
func (*ListTenantAlertsResponse) String ¶ added in v0.4.664
func (x *ListTenantAlertsResponse) String() string
type ListTenantsRequest ¶
type ListTenantsRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ListTenantsRequest) Descriptor
deprecated
func (*ListTenantsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTenantsRequest.ProtoReflect.Descriptor instead.
func (*ListTenantsRequest) GetLabels ¶
func (x *ListTenantsRequest) GetLabels() map[string]string
func (*ListTenantsRequest) GetNamespace ¶
func (x *ListTenantsRequest) GetNamespace() string
func (*ListTenantsRequest) ProtoMessage ¶
func (*ListTenantsRequest) ProtoMessage()
func (*ListTenantsRequest) ProtoReflect ¶
func (x *ListTenantsRequest) ProtoReflect() protoreflect.Message
func (*ListTenantsRequest) Reset ¶
func (x *ListTenantsRequest) Reset()
func (*ListTenantsRequest) String ¶
func (x *ListTenantsRequest) String() string
type ListTenantsResponse ¶
type ListTenantsResponse struct { Tenants *v1alpha1.TenantList `protobuf:"bytes,1,opt,name=tenants,proto3" json:"tenants,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 (*ListTenantsResponse) Descriptor
deprecated
func (*ListTenantsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTenantsResponse.ProtoReflect.Descriptor instead.
func (*ListTenantsResponse) GetNextPageToken ¶ added in v0.4.472
func (x *ListTenantsResponse) GetNextPageToken() string
func (*ListTenantsResponse) GetTenants ¶ added in v0.4.472
func (x *ListTenantsResponse) GetTenants() *v1alpha1.TenantList
func (*ListTenantsResponse) ProtoMessage ¶
func (*ListTenantsResponse) ProtoMessage()
func (*ListTenantsResponse) ProtoReflect ¶
func (x *ListTenantsResponse) ProtoReflect() protoreflect.Message
func (*ListTenantsResponse) Reset ¶
func (x *ListTenantsResponse) Reset()
func (*ListTenantsResponse) String ¶
func (x *ListTenantsResponse) String() string
type TenantServiceClient ¶
type TenantServiceClient interface { ListTenantAlerts(ctx context.Context, in *ListTenantAlertsRequest, opts ...grpc.CallOption) (*ListTenantAlertsResponse, error) ListTenants(ctx context.Context, in *ListTenantsRequest, opts ...grpc.CallOption) (*ListTenantsResponse, error) CreateTenant(ctx context.Context, in *CreateTenantRequest, opts ...grpc.CallOption) (*CreateTenantResponse, error) GetTenant(ctx context.Context, in *GetTenantRequest, opts ...grpc.CallOption) (*GetTenantResponse, error) UpdateTenant(ctx context.Context, in *UpdateTenantRequest, opts ...grpc.CallOption) (*UpdateTenantResponse, error) DeleteTenant(ctx context.Context, in *DeleteTenantRequest, opts ...grpc.CallOption) (*DeleteTenantResponse, error) }
TenantServiceClient is the client API for TenantService 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 NewTenantServiceClient ¶
func NewTenantServiceClient(cc grpc.ClientConnInterface) TenantServiceClient
type TenantServiceServer ¶
type TenantServiceServer interface { ListTenantAlerts(context.Context, *ListTenantAlertsRequest) (*ListTenantAlertsResponse, error) ListTenants(context.Context, *ListTenantsRequest) (*ListTenantsResponse, error) CreateTenant(context.Context, *CreateTenantRequest) (*CreateTenantResponse, error) GetTenant(context.Context, *GetTenantRequest) (*GetTenantResponse, error) UpdateTenant(context.Context, *UpdateTenantRequest) (*UpdateTenantResponse, error) DeleteTenant(context.Context, *DeleteTenantRequest) (*DeleteTenantResponse, error) // contains filtered or unexported methods }
TenantServiceServer is the server API for TenantService service. All implementations must embed UnimplementedTenantServiceServer for forward compatibility
type UnimplementedTenantServiceServer ¶
type UnimplementedTenantServiceServer struct { }
UnimplementedTenantServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTenantServiceServer) CreateTenant ¶
func (UnimplementedTenantServiceServer) CreateTenant(context.Context, *CreateTenantRequest) (*CreateTenantResponse, error)
func (UnimplementedTenantServiceServer) DeleteTenant ¶
func (UnimplementedTenantServiceServer) DeleteTenant(context.Context, *DeleteTenantRequest) (*DeleteTenantResponse, error)
func (UnimplementedTenantServiceServer) GetTenant ¶
func (UnimplementedTenantServiceServer) GetTenant(context.Context, *GetTenantRequest) (*GetTenantResponse, error)
func (UnimplementedTenantServiceServer) ListTenantAlerts ¶ added in v0.4.664
func (UnimplementedTenantServiceServer) ListTenantAlerts(context.Context, *ListTenantAlertsRequest) (*ListTenantAlertsResponse, error)
func (UnimplementedTenantServiceServer) ListTenants ¶
func (UnimplementedTenantServiceServer) ListTenants(context.Context, *ListTenantsRequest) (*ListTenantsResponse, error)
func (UnimplementedTenantServiceServer) UpdateTenant ¶
func (UnimplementedTenantServiceServer) UpdateTenant(context.Context, *UpdateTenantRequest) (*UpdateTenantResponse, error)
type UnsafeTenantServiceServer ¶ added in v0.4.687
type UnsafeTenantServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTenantServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TenantServiceServer will result in compilation errors.
type UpdateTenantRequest ¶
type UpdateTenantRequest struct { Tenant *v1alpha1.Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,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 (*UpdateTenantRequest) Descriptor
deprecated
func (*UpdateTenantRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTenantRequest.ProtoReflect.Descriptor instead.
func (*UpdateTenantRequest) GetFieldMask ¶ added in v0.4.422
func (x *UpdateTenantRequest) GetFieldMask() *field_mask.FieldMask
func (*UpdateTenantRequest) GetTenant ¶ added in v0.4.475
func (x *UpdateTenantRequest) GetTenant() *v1alpha1.Tenant
func (*UpdateTenantRequest) ProtoMessage ¶
func (*UpdateTenantRequest) ProtoMessage()
func (*UpdateTenantRequest) ProtoReflect ¶
func (x *UpdateTenantRequest) ProtoReflect() protoreflect.Message
func (*UpdateTenantRequest) Reset ¶
func (x *UpdateTenantRequest) Reset()
func (*UpdateTenantRequest) String ¶
func (x *UpdateTenantRequest) String() string
type UpdateTenantResponse ¶
type UpdateTenantResponse struct {
// contains filtered or unexported fields
}
func (*UpdateTenantResponse) Descriptor
deprecated
func (*UpdateTenantResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTenantResponse.ProtoReflect.Descriptor instead.
func (*UpdateTenantResponse) ProtoMessage ¶
func (*UpdateTenantResponse) ProtoMessage()
func (*UpdateTenantResponse) ProtoReflect ¶
func (x *UpdateTenantResponse) ProtoReflect() protoreflect.Message
func (*UpdateTenantResponse) Reset ¶
func (x *UpdateTenantResponse) Reset()
func (*UpdateTenantResponse) String ¶
func (x *UpdateTenantResponse) String() string