project

package
v0.0.0-...-5b5d069 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectInterface_CreateNamespace_FullMethodName = "/clusterruntime.api.project.ProjectInterface/CreateNamespace"
	ProjectInterface_GetNamespaces_FullMethodName   = "/clusterruntime.api.project.ProjectInterface/GetNamespaces"
)

Variables

View Source
var File_internal_repository_clusterruntime_api_project_message_proto protoreflect.FileDescriptor
View Source
var File_internal_repository_clusterruntime_api_project_project_proto protoreflect.FileDescriptor
View Source
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.

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) GetNamespaces

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL