Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterProjectInterfaceServer(s grpc.ServiceRegistrar, srv ProjectInterfaceServer)
- type CreateNamespaceReq
- func (*CreateNamespaceReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNamespaceReq) GetNamespace() string
- func (*CreateNamespaceReq) ProtoMessage()
- func (x *CreateNamespaceReq) ProtoReflect() protoreflect.Message
- func (x *CreateNamespaceReq) Reset()
- func (x *CreateNamespaceReq) String() string
- type Namesapces
- type ProjectInterfaceClient
- type ProjectInterfaceServer
- type UnimplementedProjectInterfaceServer
- type UnsafeProjectInterfaceServer
Constants ¶
const ( ProjectInterface_CreateNamespace_FullMethodName = "/clusterruntime.api.project.ProjectInterface/CreateNamespace" ProjectInterface_GetNamespaces_FullMethodName = "/clusterruntime.api.project.ProjectInterface/GetNamespaces" )
Variables ¶
var File_internal_repository_clusterruntime_api_project_message_proto protoreflect.FileDescriptor
var File_internal_repository_clusterruntime_api_project_project_proto protoreflect.FileDescriptor
var ProjectInterface_ServiceDesc = grpc.ServiceDesc{ ServiceName: "clusterruntime.api.project.ProjectInterface", HandlerType: (*ProjectInterfaceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateNamespace", Handler: _ProjectInterface_CreateNamespace_Handler, }, { MethodName: "GetNamespaces", Handler: _ProjectInterface_GetNamespaces_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/repository/clusterruntime/api/project/project.proto", }
ProjectInterface_ServiceDesc is the grpc.ServiceDesc for ProjectInterface service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProjectInterfaceServer ¶
func RegisterProjectInterfaceServer(s grpc.ServiceRegistrar, srv ProjectInterfaceServer)
Types ¶
type CreateNamespaceReq ¶
type CreateNamespaceReq struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*CreateNamespaceReq) Descriptor
deprecated
func (*CreateNamespaceReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateNamespaceReq.ProtoReflect.Descriptor instead.
func (*CreateNamespaceReq) GetNamespace ¶
func (x *CreateNamespaceReq) GetNamespace() string
func (*CreateNamespaceReq) ProtoMessage ¶
func (*CreateNamespaceReq) ProtoMessage()
func (*CreateNamespaceReq) ProtoReflect ¶
func (x *CreateNamespaceReq) ProtoReflect() protoreflect.Message
func (*CreateNamespaceReq) Reset ¶
func (x *CreateNamespaceReq) Reset()
func (*CreateNamespaceReq) String ¶
func (x *CreateNamespaceReq) String() string
type Namesapces ¶
type Namesapces struct { Namespaces []string `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` // contains filtered or unexported fields }
func (*Namesapces) Descriptor
deprecated
func (*Namesapces) Descriptor() ([]byte, []int)
Deprecated: Use Namesapces.ProtoReflect.Descriptor instead.
func (*Namesapces) GetNamespaces ¶
func (x *Namesapces) GetNamespaces() []string
func (*Namesapces) ProtoMessage ¶
func (*Namesapces) ProtoMessage()
func (*Namesapces) ProtoReflect ¶
func (x *Namesapces) ProtoReflect() protoreflect.Message
func (*Namesapces) Reset ¶
func (x *Namesapces) Reset()
func (*Namesapces) String ¶
func (x *Namesapces) String() string
type ProjectInterfaceClient ¶
type ProjectInterfaceClient interface { CreateNamespace(ctx context.Context, in *CreateNamespaceReq, opts ...grpc.CallOption) (*common.Msg, error) GetNamespaces(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Namesapces, error) }
ProjectInterfaceClient is the client API for ProjectInterface 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 NewProjectInterfaceClient ¶
func NewProjectInterfaceClient(cc grpc.ClientConnInterface) ProjectInterfaceClient
type ProjectInterfaceServer ¶
type ProjectInterfaceServer interface { CreateNamespace(context.Context, *CreateNamespaceReq) (*common.Msg, error) GetNamespaces(context.Context, *emptypb.Empty) (*Namesapces, error) // contains filtered or unexported methods }
ProjectInterfaceServer is the server API for ProjectInterface service. All implementations must embed UnimplementedProjectInterfaceServer for forward compatibility.
type UnimplementedProjectInterfaceServer ¶
type UnimplementedProjectInterfaceServer struct{}
UnimplementedProjectInterfaceServer must 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 (UnimplementedProjectInterfaceServer) CreateNamespace ¶
func (UnimplementedProjectInterfaceServer) CreateNamespace(context.Context, *CreateNamespaceReq) (*common.Msg, error)
func (UnimplementedProjectInterfaceServer) GetNamespaces ¶
func (UnimplementedProjectInterfaceServer) GetNamespaces(context.Context, *emptypb.Empty) (*Namesapces, error)
type UnsafeProjectInterfaceServer ¶
type UnsafeProjectInterfaceServer interface {
// contains filtered or unexported methods
}
UnsafeProjectInterfaceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProjectInterfaceServer will result in compilation errors.