corev1alpha1grpc

package
v1.3.0-20230531113704-... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIService_Ping_FullMethodName                = "/nuntio.core.v1alpha1.APIService/Ping"
	APIService_Create_FullMethodName              = "/nuntio.core.v1alpha1.APIService/Create"
	APIService_DeleteAll_FullMethodName           = "/nuntio.core.v1alpha1.APIService/DeleteAll"
	APIService_Delete_FullMethodName              = "/nuntio.core.v1alpha1.APIService/Delete"
	APIService_GenerateAccessToken_FullMethodName = "/nuntio.core.v1alpha1.APIService/GenerateAccessToken"
	APIService_Get_FullMethodName                 = "/nuntio.core.v1alpha1.APIService/Get"
	APIService_List_FullMethodName                = "/nuntio.core.v1alpha1.APIService/List"
	APIService_ValidateAccessToken_FullMethodName = "/nuntio.core.v1alpha1.APIService/ValidateAccessToken"
	APIService_UpdateStatus_FullMethodName        = "/nuntio.core.v1alpha1.APIService/UpdateStatus"
	APIService_PublicKey_FullMethodName           = "/nuntio.core.v1alpha1.APIService/PublicKey"
)
View Source
const (
	MembersService_Ping_FullMethodName             = "/nuntio.core.v1alpha1.MembersService/Ping"
	MembersService_UpdateMemberType_FullMethodName = "/nuntio.core.v1alpha1.MembersService/UpdateMemberType"
)
View Source
const (
	ProjectsService_Ping_FullMethodName            = "/nuntio.core.v1alpha1.ProjectsService/Ping"
	ProjectsService_Create_FullMethodName          = "/nuntio.core.v1alpha1.ProjectsService/Create"
	ProjectsService_Delete_FullMethodName          = "/nuntio.core.v1alpha1.ProjectsService/Delete"
	ProjectsService_Update_FullMethodName          = "/nuntio.core.v1alpha1.ProjectsService/Update"
	ProjectsService_Get_FullMethodName             = "/nuntio.core.v1alpha1.ProjectsService/Get"
	ProjectsService_List_FullMethodName            = "/nuntio.core.v1alpha1.ProjectsService/List"
	ProjectsService_EnableStorage_FullMethodName   = "/nuntio.core.v1alpha1.ProjectsService/EnableStorage"
	ProjectsService_DisableStorage_FullMethodName  = "/nuntio.core.v1alpha1.ProjectsService/DisableStorage"
	ProjectsService_EnableUsers_FullMethodName     = "/nuntio.core.v1alpha1.ProjectsService/EnableUsers"
	ProjectsService_DisableUsers_FullMethodName    = "/nuntio.core.v1alpha1.ProjectsService/DisableUsers"
	ProjectsService_EnableMongo_FullMethodName     = "/nuntio.core.v1alpha1.ProjectsService/EnableMongo"
	ProjectsService_DisableMongo_FullMethodName    = "/nuntio.core.v1alpha1.ProjectsService/DisableMongo"
	ProjectsService_EnablePostgres_FullMethodName  = "/nuntio.core.v1alpha1.ProjectsService/EnablePostgres"
	ProjectsService_DisablePostgres_FullMethodName = "/nuntio.core.v1alpha1.ProjectsService/DisablePostgres"
)

Variables

View Source
var APIService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nuntio.core.v1alpha1.APIService",
	HandlerType: (*APIServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _APIService_Ping_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _APIService_Create_Handler,
		},
		{
			MethodName: "DeleteAll",
			Handler:    _APIService_DeleteAll_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _APIService_Delete_Handler,
		},
		{
			MethodName: "GenerateAccessToken",
			Handler:    _APIService_GenerateAccessToken_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _APIService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _APIService_List_Handler,
		},
		{
			MethodName: "ValidateAccessToken",
			Handler:    _APIService_ValidateAccessToken_Handler,
		},
		{
			MethodName: "UpdateStatus",
			Handler:    _APIService_UpdateStatus_Handler,
		},
		{
			MethodName: "PublicKey",
			Handler:    _APIService_PublicKey_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "nuntio/core/v1alpha1/core_api.proto",
}

APIService_ServiceDesc is the grpc.ServiceDesc for APIService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var MembersService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nuntio.core.v1alpha1.MembersService",
	HandlerType: (*MembersServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _MembersService_Ping_Handler,
		},
		{
			MethodName: "UpdateMemberType",
			Handler:    _MembersService_UpdateMemberType_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "nuntio/core/v1alpha1/core_members.proto",
}

MembersService_ServiceDesc is the grpc.ServiceDesc for MembersService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ProjectsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nuntio.core.v1alpha1.ProjectsService",
	HandlerType: (*ProjectsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _ProjectsService_Ping_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _ProjectsService_Create_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _ProjectsService_Delete_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _ProjectsService_Update_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _ProjectsService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _ProjectsService_List_Handler,
		},
		{
			MethodName: "EnableStorage",
			Handler:    _ProjectsService_EnableStorage_Handler,
		},
		{
			MethodName: "DisableStorage",
			Handler:    _ProjectsService_DisableStorage_Handler,
		},
		{
			MethodName: "EnableUsers",
			Handler:    _ProjectsService_EnableUsers_Handler,
		},
		{
			MethodName: "DisableUsers",
			Handler:    _ProjectsService_DisableUsers_Handler,
		},
		{
			MethodName: "EnableMongo",
			Handler:    _ProjectsService_EnableMongo_Handler,
		},
		{
			MethodName: "DisableMongo",
			Handler:    _ProjectsService_DisableMongo_Handler,
		},
		{
			MethodName: "EnablePostgres",
			Handler:    _ProjectsService_EnablePostgres_Handler,
		},
		{
			MethodName: "DisablePostgres",
			Handler:    _ProjectsService_DisablePostgres_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "nuntio/core/v1alpha1/core_projects.proto",
}

ProjectsService_ServiceDesc is the grpc.ServiceDesc for ProjectsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAPIServiceServer

func RegisterAPIServiceServer(s grpc.ServiceRegistrar, srv APIServiceServer)

func RegisterMembersServiceServer

func RegisterMembersServiceServer(s grpc.ServiceRegistrar, srv MembersServiceServer)

func RegisterProjectsServiceServer

func RegisterProjectsServiceServer(s grpc.ServiceRegistrar, srv ProjectsServiceServer)

Types

type APIServiceClient

type APIServiceClient interface {
	// Ping checks if a service is live
	Ping(ctx context.Context, in *v1alpha1.APIServicePingRequest, opts ...grpc.CallOption) (*v1alpha1.APIServicePingResponse, error)
	// Create inserts a new API key in the database used to auth requests
	Create(ctx context.Context, in *v1alpha1.APIServiceCreateRequest, opts ...grpc.CallOption) (*v1alpha1.APIServiceCreateResponse, error)
	// DeleteAll deletes all api keys in a namespace
	DeleteAll(ctx context.Context, in *v1alpha1.APIServiceDeleteAllRequest, opts ...grpc.CallOption) (*v1alpha1.APIServiceDeleteAllResponse, error)
	// Delete deletes an API key
	Delete(ctx context.Context, in *v1alpha1.APIServiceDeleteRequest, opts ...grpc.CallOption) (*v1alpha1.APIServiceDeleteResponse, error)
	// GenerateAccessToken uses an API key to generate a short lived access token
	GenerateAccessToken(ctx context.Context, in *v1alpha1.APIServiceGenerateAccessTokenRequest, opts ...grpc.CallOption) (*v1alpha1.APIServiceGenerateAccessTokenResponse, error)
	// Get returns the requested API key to the user
	Get(ctx context.Context, in *v1alpha1.APIServiceGetRequest, opts ...grpc.CallOption) (*v1alpha1.APIServiceGetResponse, error)
	// List returns the requested API key to the user
	List(ctx context.Context, in *v1alpha1.APIServiceListRequest, opts ...grpc.CallOption) (*v1alpha1.APIServiceListResponse, error)
	// ValidateAccessToken validates the requested acces token with the public key
	ValidateAccessToken(ctx context.Context, in *v1alpha1.APIServiceValidateAccessTokenRequest, opts ...grpc.CallOption) (*v1alpha1.APIServiceValidateAccessTokenResponse, error)
	// UpdateStatus updates the status of the api key
	UpdateStatus(ctx context.Context, in *v1alpha1.APIServiceUpdateStatusRequest, opts ...grpc.CallOption) (*v1alpha1.APIServiceUpdateStatusResponse, error)
	// Returns the public key for the service
	PublicKey(ctx context.Context, in *v1alpha1.APIServicePublicKeyRequest, opts ...grpc.CallOption) (*v1alpha1.APIServicePublicKeyResponse, error)
}

APIServiceClient is the client API for APIService 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 NewAPIServiceClient

func NewAPIServiceClient(cc grpc.ClientConnInterface) APIServiceClient

type APIServiceServer

type APIServiceServer interface {
	// Ping checks if a service is live
	Ping(context.Context, *v1alpha1.APIServicePingRequest) (*v1alpha1.APIServicePingResponse, error)
	// Create inserts a new API key in the database used to auth requests
	Create(context.Context, *v1alpha1.APIServiceCreateRequest) (*v1alpha1.APIServiceCreateResponse, error)
	// DeleteAll deletes all api keys in a namespace
	DeleteAll(context.Context, *v1alpha1.APIServiceDeleteAllRequest) (*v1alpha1.APIServiceDeleteAllResponse, error)
	// Delete deletes an API key
	Delete(context.Context, *v1alpha1.APIServiceDeleteRequest) (*v1alpha1.APIServiceDeleteResponse, error)
	// GenerateAccessToken uses an API key to generate a short lived access token
	GenerateAccessToken(context.Context, *v1alpha1.APIServiceGenerateAccessTokenRequest) (*v1alpha1.APIServiceGenerateAccessTokenResponse, error)
	// Get returns the requested API key to the user
	Get(context.Context, *v1alpha1.APIServiceGetRequest) (*v1alpha1.APIServiceGetResponse, error)
	// List returns the requested API key to the user
	List(context.Context, *v1alpha1.APIServiceListRequest) (*v1alpha1.APIServiceListResponse, error)
	// ValidateAccessToken validates the requested acces token with the public key
	ValidateAccessToken(context.Context, *v1alpha1.APIServiceValidateAccessTokenRequest) (*v1alpha1.APIServiceValidateAccessTokenResponse, error)
	// UpdateStatus updates the status of the api key
	UpdateStatus(context.Context, *v1alpha1.APIServiceUpdateStatusRequest) (*v1alpha1.APIServiceUpdateStatusResponse, error)
	// Returns the public key for the service
	PublicKey(context.Context, *v1alpha1.APIServicePublicKeyRequest) (*v1alpha1.APIServicePublicKeyResponse, error)
}

APIServiceServer is the server API for APIService service. All implementations should embed UnimplementedAPIServiceServer for forward compatibility

type MembersServiceClient

type MembersServiceClient interface {
	// Ping checks if a service is live
	Ping(ctx context.Context, in *v1alpha1.MembersServicePingRequest, opts ...grpc.CallOption) (*v1alpha1.MembersServicePingResponse, error)
	// UpdateMemberType updates the member type
	UpdateMemberType(ctx context.Context, in *v1alpha1.MembersServiceUpdateMemberTypeRequest, opts ...grpc.CallOption) (*v1alpha1.MembersServiceUpdateMemberTypeResponse, error)
}

MembersServiceClient is the client API for MembersService 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 NewMembersServiceClient

func NewMembersServiceClient(cc grpc.ClientConnInterface) MembersServiceClient

type MembersServiceServer

type MembersServiceServer interface {
	// Ping checks if a service is live
	Ping(context.Context, *v1alpha1.MembersServicePingRequest) (*v1alpha1.MembersServicePingResponse, error)
	// UpdateMemberType updates the member type
	UpdateMemberType(context.Context, *v1alpha1.MembersServiceUpdateMemberTypeRequest) (*v1alpha1.MembersServiceUpdateMemberTypeResponse, error)
}

MembersServiceServer is the server API for MembersService service. All implementations should embed UnimplementedMembersServiceServer for forward compatibility

type ProjectsServiceClient

type ProjectsServiceClient interface {
	// Ping returns an empty response used to check if the server is live
	Ping(ctx context.Context, in *v1alpha1.ProjectsServicePingRequest, opts ...grpc.CallOption) (*v1alpha1.ProjectsServicePingResponse, error)
	// Create initializes a new project and all relating ressources
	Create(ctx context.Context, in *v1alpha1.ProjectsServiceCreateRequest, opts ...grpc.CallOption) (*v1alpha1.ProjectsServiceCreateResponse, error)
	// Deletes deletes a project and all its ressources
	Delete(ctx context.Context, in *v1alpha1.ProjectsServiceDeleteRequest, opts ...grpc.CallOption) (*v1alpha1.ProjectsServiceDeleteResponse, error)
	// Update updates a project with a new name, logo etc.
	Update(ctx context.Context, in *v1alpha1.ProjectsServiceUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.ProjectsServiceUpdateResponse, error)
	// Get fetches a speicfic project
	Get(ctx context.Context, in *v1alpha1.ProjectsServiceGetRequest, opts ...grpc.CallOption) (*v1alpha1.ProjectsServiceGetResponse, error)
	// List returns a list of projects
	List(ctx context.Context, in *v1alpha1.ProjectsServiceListRequest, opts ...grpc.CallOption) (*v1alpha1.ProjectsServiceListResponse, error)
	// Enables storage for the project
	EnableStorage(ctx context.Context, in *v1alpha1.ProjectsServiceEnableStorageRequest, opts ...grpc.CallOption) (*v1alpha1.ProjectsServiceEnableStorageResponse, error)
	// Disables storage for the project
	DisableStorage(ctx context.Context, in *v1alpha1.ProjectsServiceDisableStorageRequest, opts ...grpc.CallOption) (*v1alpha1.ProjectsServiceDisableStorageResponse, error)
	// Enables USers for the project
	EnableUsers(ctx context.Context, in *v1alpha1.ProjectsServiceEnableUsersRequest, opts ...grpc.CallOption) (*v1alpha1.ProjectsServiceEnableUsersResponse, error)
	// Disables Users for the project
	DisableUsers(ctx context.Context, in *v1alpha1.ProjectsServiceDisableUsersRequest, opts ...grpc.CallOption) (*v1alpha1.ProjectsServiceDisableUsersResponse, error)
	// Enables Mongo for the project
	EnableMongo(ctx context.Context, in *v1alpha1.ProjectsServiceEnableMongoRequest, opts ...grpc.CallOption) (*v1alpha1.ProjectsServiceEnableMongoResponse, error)
	// Disables Mongo for the project
	DisableMongo(ctx context.Context, in *v1alpha1.ProjectsServiceDisableMongoRequest, opts ...grpc.CallOption) (*v1alpha1.ProjectsServiceDisableMongoResponse, error)
	// Enables Postgres for the project
	EnablePostgres(ctx context.Context, in *v1alpha1.ProjectsServiceEnablePostgresRequest, opts ...grpc.CallOption) (*v1alpha1.ProjectsServiceEnablePostgresResponse, error)
	// Disable Postgres for the project
	DisablePostgres(ctx context.Context, in *v1alpha1.ProjectsServiceDisablePostgresRequest, opts ...grpc.CallOption) (*v1alpha1.ProjectsServiceDisablePostgresResponse, error)
}

ProjectsServiceClient is the client API for ProjectsService 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 NewProjectsServiceClient

func NewProjectsServiceClient(cc grpc.ClientConnInterface) ProjectsServiceClient

type ProjectsServiceServer

type ProjectsServiceServer interface {
	// Ping returns an empty response used to check if the server is live
	Ping(context.Context, *v1alpha1.ProjectsServicePingRequest) (*v1alpha1.ProjectsServicePingResponse, error)
	// Create initializes a new project and all relating ressources
	Create(context.Context, *v1alpha1.ProjectsServiceCreateRequest) (*v1alpha1.ProjectsServiceCreateResponse, error)
	// Deletes deletes a project and all its ressources
	Delete(context.Context, *v1alpha1.ProjectsServiceDeleteRequest) (*v1alpha1.ProjectsServiceDeleteResponse, error)
	// Update updates a project with a new name, logo etc.
	Update(context.Context, *v1alpha1.ProjectsServiceUpdateRequest) (*v1alpha1.ProjectsServiceUpdateResponse, error)
	// Get fetches a speicfic project
	Get(context.Context, *v1alpha1.ProjectsServiceGetRequest) (*v1alpha1.ProjectsServiceGetResponse, error)
	// List returns a list of projects
	List(context.Context, *v1alpha1.ProjectsServiceListRequest) (*v1alpha1.ProjectsServiceListResponse, error)
	// Enables storage for the project
	EnableStorage(context.Context, *v1alpha1.ProjectsServiceEnableStorageRequest) (*v1alpha1.ProjectsServiceEnableStorageResponse, error)
	// Disables storage for the project
	DisableStorage(context.Context, *v1alpha1.ProjectsServiceDisableStorageRequest) (*v1alpha1.ProjectsServiceDisableStorageResponse, error)
	// Enables USers for the project
	EnableUsers(context.Context, *v1alpha1.ProjectsServiceEnableUsersRequest) (*v1alpha1.ProjectsServiceEnableUsersResponse, error)
	// Disables Users for the project
	DisableUsers(context.Context, *v1alpha1.ProjectsServiceDisableUsersRequest) (*v1alpha1.ProjectsServiceDisableUsersResponse, error)
	// Enables Mongo for the project
	EnableMongo(context.Context, *v1alpha1.ProjectsServiceEnableMongoRequest) (*v1alpha1.ProjectsServiceEnableMongoResponse, error)
	// Disables Mongo for the project
	DisableMongo(context.Context, *v1alpha1.ProjectsServiceDisableMongoRequest) (*v1alpha1.ProjectsServiceDisableMongoResponse, error)
	// Enables Postgres for the project
	EnablePostgres(context.Context, *v1alpha1.ProjectsServiceEnablePostgresRequest) (*v1alpha1.ProjectsServiceEnablePostgresResponse, error)
	// Disable Postgres for the project
	DisablePostgres(context.Context, *v1alpha1.ProjectsServiceDisablePostgresRequest) (*v1alpha1.ProjectsServiceDisablePostgresResponse, error)
}

ProjectsServiceServer is the server API for ProjectsService service. All implementations should embed UnimplementedProjectsServiceServer for forward compatibility

type UnimplementedAPIServiceServer

type UnimplementedAPIServiceServer struct {
}

UnimplementedAPIServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedAPIServiceServer) DeleteAll

func (UnimplementedAPIServiceServer) GenerateAccessToken

func (UnimplementedAPIServiceServer) PublicKey

func (UnimplementedAPIServiceServer) UpdateStatus

func (UnimplementedAPIServiceServer) ValidateAccessToken

type UnimplementedMembersServiceServer

type UnimplementedMembersServiceServer struct {
}

UnimplementedMembersServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedMembersServiceServer) UpdateMemberType

type UnimplementedProjectsServiceServer

type UnimplementedProjectsServiceServer struct {
}

UnimplementedProjectsServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedProjectsServiceServer) DisablePostgres

func (UnimplementedProjectsServiceServer) DisableStorage

func (UnimplementedProjectsServiceServer) EnablePostgres

type UnsafeAPIServiceServer

type UnsafeAPIServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAPIServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIServiceServer will result in compilation errors.

type UnsafeMembersServiceServer

type UnsafeMembersServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeMembersServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MembersServiceServer will result in compilation errors.

type UnsafeProjectsServiceServer

type UnsafeProjectsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeProjectsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProjectsServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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