dashboardv1alpha1connect

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AuthServiceLoginProcedure is the fully-qualified name of the AuthService's Login RPC.
	AuthServiceLoginProcedure = "/dashboard.v1alpha1.AuthService/Login"
	// AuthServiceLogoutProcedure is the fully-qualified name of the AuthService's Logout RPC.
	AuthServiceLogoutProcedure = "/dashboard.v1alpha1.AuthService/Logout"
	// AuthServiceVerifyProcedure is the fully-qualified name of the AuthService's Verify RPC.
	AuthServiceVerifyProcedure = "/dashboard.v1alpha1.AuthService/Verify"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// TemplateServiceGetUserAddonTemplatesProcedure is the fully-qualified name of the
	// TemplateService's GetUserAddonTemplates RPC.
	TemplateServiceGetUserAddonTemplatesProcedure = "/dashboard.v1alpha1.TemplateService/GetUserAddonTemplates"
	// TemplateServiceGetWorkspaceTemplatesProcedure is the fully-qualified name of the
	// TemplateService's GetWorkspaceTemplates RPC.
	TemplateServiceGetWorkspaceTemplatesProcedure = "/dashboard.v1alpha1.TemplateService/GetWorkspaceTemplates"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// UserServiceDeleteUserProcedure is the fully-qualified name of the UserService's DeleteUser RPC.
	UserServiceDeleteUserProcedure = "/dashboard.v1alpha1.UserService/DeleteUser"
	// UserServiceGetUserProcedure is the fully-qualified name of the UserService's GetUser RPC.
	UserServiceGetUserProcedure = "/dashboard.v1alpha1.UserService/GetUser"
	// UserServiceGetUsersProcedure is the fully-qualified name of the UserService's GetUsers RPC.
	UserServiceGetUsersProcedure = "/dashboard.v1alpha1.UserService/GetUsers"
	// UserServiceCreateUserProcedure is the fully-qualified name of the UserService's CreateUser RPC.
	UserServiceCreateUserProcedure = "/dashboard.v1alpha1.UserService/CreateUser"
	// UserServiceUpdateUserDisplayNameProcedure is the fully-qualified name of the UserService's
	// UpdateUserDisplayName RPC.
	UserServiceUpdateUserDisplayNameProcedure = "/dashboard.v1alpha1.UserService/UpdateUserDisplayName"
	// UserServiceUpdateUserPasswordProcedure is the fully-qualified name of the UserService's
	// UpdateUserPassword RPC.
	UserServiceUpdateUserPasswordProcedure = "/dashboard.v1alpha1.UserService/UpdateUserPassword"
	// UserServiceUpdateUserRoleProcedure is the fully-qualified name of the UserService's
	// UpdateUserRole RPC.
	UserServiceUpdateUserRoleProcedure = "/dashboard.v1alpha1.UserService/UpdateUserRole"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// WorkspaceServiceCreateWorkspaceProcedure is the fully-qualified name of the WorkspaceService's
	// CreateWorkspace RPC.
	WorkspaceServiceCreateWorkspaceProcedure = "/dashboard.v1alpha1.WorkspaceService/CreateWorkspace"
	// WorkspaceServiceDeleteWorkspaceProcedure is the fully-qualified name of the WorkspaceService's
	// DeleteWorkspace RPC.
	WorkspaceServiceDeleteWorkspaceProcedure = "/dashboard.v1alpha1.WorkspaceService/DeleteWorkspace"
	// WorkspaceServiceUpdateWorkspaceProcedure is the fully-qualified name of the WorkspaceService's
	// UpdateWorkspace RPC.
	WorkspaceServiceUpdateWorkspaceProcedure = "/dashboard.v1alpha1.WorkspaceService/UpdateWorkspace"
	// WorkspaceServiceGetWorkspaceProcedure is the fully-qualified name of the WorkspaceService's
	// GetWorkspace RPC.
	WorkspaceServiceGetWorkspaceProcedure = "/dashboard.v1alpha1.WorkspaceService/GetWorkspace"
	// WorkspaceServiceGetWorkspacesProcedure is the fully-qualified name of the WorkspaceService's
	// GetWorkspaces RPC.
	WorkspaceServiceGetWorkspacesProcedure = "/dashboard.v1alpha1.WorkspaceService/GetWorkspaces"
	// WorkspaceServiceUpsertNetworkRuleProcedure is the fully-qualified name of the WorkspaceService's
	// UpsertNetworkRule RPC.
	WorkspaceServiceUpsertNetworkRuleProcedure = "/dashboard.v1alpha1.WorkspaceService/UpsertNetworkRule"
	// WorkspaceServiceDeleteNetworkRuleProcedure is the fully-qualified name of the WorkspaceService's
	// DeleteNetworkRule RPC.
	WorkspaceServiceDeleteNetworkRuleProcedure = "/dashboard.v1alpha1.WorkspaceService/DeleteNetworkRule"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// AuthServiceName is the fully-qualified name of the AuthService service.
	AuthServiceName = "dashboard.v1alpha1.AuthService"
)
View Source
const (
	// TemplateServiceName is the fully-qualified name of the TemplateService service.
	TemplateServiceName = "dashboard.v1alpha1.TemplateService"
)
View Source
const (
	// UserServiceName is the fully-qualified name of the UserService service.
	UserServiceName = "dashboard.v1alpha1.UserService"
)
View Source
const (
	// WorkspaceServiceName is the fully-qualified name of the WorkspaceService service.
	WorkspaceServiceName = "dashboard.v1alpha1.WorkspaceService"
)

Variables

This section is empty.

Functions

func NewAuthServiceHandler

func NewAuthServiceHandler(svc AuthServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewAuthServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewTemplateServiceHandler

func NewTemplateServiceHandler(svc TemplateServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewTemplateServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewUserServiceHandler

func NewUserServiceHandler(svc UserServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewUserServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewWorkspaceServiceHandler

func NewWorkspaceServiceHandler(svc WorkspaceServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewWorkspaceServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type AuthServiceClient

type AuthServiceClient interface {
	// ID and password to login
	Login(context.Context, *connect_go.Request[v1alpha1.LoginRequest]) (*connect_go.Response[v1alpha1.LoginResponse], error)
	// Delete session to logout
	Logout(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[emptypb.Empty], error)
	// Verify authorization
	Verify(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.VerifyResponse], error)
}

AuthServiceClient is a client for the dashboard.v1alpha1.AuthService service.

func NewAuthServiceClient

func NewAuthServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) AuthServiceClient

NewAuthServiceClient constructs a client for the dashboard.v1alpha1.AuthService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type AuthServiceHandler

type AuthServiceHandler interface {
	// ID and password to login
	Login(context.Context, *connect_go.Request[v1alpha1.LoginRequest]) (*connect_go.Response[v1alpha1.LoginResponse], error)
	// Delete session to logout
	Logout(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[emptypb.Empty], error)
	// Verify authorization
	Verify(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.VerifyResponse], error)
}

AuthServiceHandler is an implementation of the dashboard.v1alpha1.AuthService service.

type TemplateServiceClient

type TemplateServiceClient interface {
	// List templates typed useraddon
	GetUserAddonTemplates(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.GetUserAddonTemplatesResponse], error)
	// List templates typed workspace
	GetWorkspaceTemplates(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.GetWorkspaceTemplatesResponse], error)
}

TemplateServiceClient is a client for the dashboard.v1alpha1.TemplateService service.

func NewTemplateServiceClient

func NewTemplateServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) TemplateServiceClient

NewTemplateServiceClient constructs a client for the dashboard.v1alpha1.TemplateService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type TemplateServiceHandler

type TemplateServiceHandler interface {
	// List templates typed useraddon
	GetUserAddonTemplates(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.GetUserAddonTemplatesResponse], error)
	// List templates typed workspace
	GetWorkspaceTemplates(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.GetWorkspaceTemplatesResponse], error)
}

TemplateServiceHandler is an implementation of the dashboard.v1alpha1.TemplateService service.

type UnimplementedAuthServiceHandler

type UnimplementedAuthServiceHandler struct{}

UnimplementedAuthServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedTemplateServiceHandler

type UnimplementedTemplateServiceHandler struct{}

UnimplementedTemplateServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedUserServiceHandler

type UnimplementedUserServiceHandler struct{}

UnimplementedUserServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedWorkspaceServiceHandler

type UnimplementedWorkspaceServiceHandler struct{}

UnimplementedWorkspaceServiceHandler returns CodeUnimplemented from all methods.

type UserServiceClient

UserServiceClient is a client for the dashboard.v1alpha1.UserService service.

func NewUserServiceClient

func NewUserServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) UserServiceClient

NewUserServiceClient constructs a client for the dashboard.v1alpha1.UserService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type UserServiceHandler

UserServiceHandler is an implementation of the dashboard.v1alpha1.UserService service.

type WorkspaceServiceClient

WorkspaceServiceClient is a client for the dashboard.v1alpha1.WorkspaceService service.

func NewWorkspaceServiceClient

func NewWorkspaceServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) WorkspaceServiceClient

NewWorkspaceServiceClient constructs a client for the dashboard.v1alpha1.WorkspaceService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type WorkspaceServiceHandler

WorkspaceServiceHandler is an implementation of the dashboard.v1alpha1.WorkspaceService service.

Jump to

Keyboard shortcuts

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