Documentation ¶
Index ¶
- Constants
- func NewAuthServiceHandler(svc AuthServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- func NewTemplateServiceHandler(svc TemplateServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- func NewUserServiceHandler(svc UserServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- func NewWorkspaceServiceHandler(svc WorkspaceServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type AuthServiceClient
- type AuthServiceHandler
- type TemplateServiceClient
- type TemplateServiceHandler
- type UnimplementedAuthServiceHandler
- func (UnimplementedAuthServiceHandler) Login(context.Context, *connect_go.Request[v1alpha1.LoginRequest]) (*connect_go.Response[v1alpha1.LoginResponse], error)
- func (UnimplementedAuthServiceHandler) Logout(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[emptypb.Empty], error)
- func (UnimplementedAuthServiceHandler) Verify(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.VerifyResponse], error)
- type UnimplementedTemplateServiceHandler
- func (UnimplementedTemplateServiceHandler) GetUserAddonTemplates(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.GetUserAddonTemplatesResponse], error)
- func (UnimplementedTemplateServiceHandler) GetWorkspaceTemplates(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.GetWorkspaceTemplatesResponse], error)
- type UnimplementedUserServiceHandler
- func (UnimplementedUserServiceHandler) CreateUser(context.Context, *connect_go.Request[v1alpha1.CreateUserRequest]) (*connect_go.Response[v1alpha1.CreateUserResponse], error)
- func (UnimplementedUserServiceHandler) DeleteUser(context.Context, *connect_go.Request[v1alpha1.DeleteUserRequest]) (*connect_go.Response[v1alpha1.DeleteUserResponse], error)
- func (UnimplementedUserServiceHandler) GetUser(context.Context, *connect_go.Request[v1alpha1.GetUserRequest]) (*connect_go.Response[v1alpha1.GetUserResponse], error)
- func (UnimplementedUserServiceHandler) GetUsers(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.GetUsersResponse], error)
- func (UnimplementedUserServiceHandler) UpdateUserDisplayName(context.Context, *connect_go.Request[v1alpha1.UpdateUserDisplayNameRequest]) (*connect_go.Response[v1alpha1.UpdateUserDisplayNameResponse], error)
- func (UnimplementedUserServiceHandler) UpdateUserPassword(context.Context, *connect_go.Request[v1alpha1.UpdateUserPasswordRequest]) (*connect_go.Response[v1alpha1.UpdateUserPasswordResponse], error)
- func (UnimplementedUserServiceHandler) UpdateUserRole(context.Context, *connect_go.Request[v1alpha1.UpdateUserRoleRequest]) (*connect_go.Response[v1alpha1.UpdateUserRoleResponse], error)
- type UnimplementedWorkspaceServiceHandler
- func (UnimplementedWorkspaceServiceHandler) CreateWorkspace(context.Context, *connect_go.Request[v1alpha1.CreateWorkspaceRequest]) (*connect_go.Response[v1alpha1.CreateWorkspaceResponse], error)
- func (UnimplementedWorkspaceServiceHandler) DeleteNetworkRule(context.Context, *connect_go.Request[v1alpha1.DeleteNetworkRuleRequest]) (*connect_go.Response[v1alpha1.DeleteNetworkRuleResponse], error)
- func (UnimplementedWorkspaceServiceHandler) DeleteWorkspace(context.Context, *connect_go.Request[v1alpha1.DeleteWorkspaceRequest]) (*connect_go.Response[v1alpha1.DeleteWorkspaceResponse], error)
- func (UnimplementedWorkspaceServiceHandler) GetWorkspace(context.Context, *connect_go.Request[v1alpha1.GetWorkspaceRequest]) (*connect_go.Response[v1alpha1.GetWorkspaceResponse], error)
- func (UnimplementedWorkspaceServiceHandler) GetWorkspaces(context.Context, *connect_go.Request[v1alpha1.GetWorkspacesRequest]) (*connect_go.Response[v1alpha1.GetWorkspacesResponse], error)
- func (UnimplementedWorkspaceServiceHandler) UpdateWorkspace(context.Context, *connect_go.Request[v1alpha1.UpdateWorkspaceRequest]) (*connect_go.Response[v1alpha1.UpdateWorkspaceResponse], error)
- func (UnimplementedWorkspaceServiceHandler) UpsertNetworkRule(context.Context, *connect_go.Request[v1alpha1.UpsertNetworkRuleRequest]) (*connect_go.Response[v1alpha1.UpsertNetworkRuleResponse], error)
- type UserServiceClient
- type UserServiceHandler
- type WorkspaceServiceClient
- type WorkspaceServiceHandler
Constants ¶
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.
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.
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.
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.
const (
// AuthServiceName is the fully-qualified name of the AuthService service.
AuthServiceName = "dashboard.v1alpha1.AuthService"
)
const (
// TemplateServiceName is the fully-qualified name of the TemplateService service.
TemplateServiceName = "dashboard.v1alpha1.TemplateService"
)
const (
// UserServiceName is the fully-qualified name of the UserService service.
UserServiceName = "dashboard.v1alpha1.UserService"
)
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.
func (UnimplementedAuthServiceHandler) Login ¶
func (UnimplementedAuthServiceHandler) Login(context.Context, *connect_go.Request[v1alpha1.LoginRequest]) (*connect_go.Response[v1alpha1.LoginResponse], error)
func (UnimplementedAuthServiceHandler) Logout ¶
func (UnimplementedAuthServiceHandler) Logout(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[emptypb.Empty], error)
func (UnimplementedAuthServiceHandler) Verify ¶
func (UnimplementedAuthServiceHandler) Verify(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.VerifyResponse], error)
type UnimplementedTemplateServiceHandler ¶
type UnimplementedTemplateServiceHandler struct{}
UnimplementedTemplateServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedTemplateServiceHandler) GetUserAddonTemplates ¶
func (UnimplementedTemplateServiceHandler) GetUserAddonTemplates(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.GetUserAddonTemplatesResponse], error)
func (UnimplementedTemplateServiceHandler) GetWorkspaceTemplates ¶
func (UnimplementedTemplateServiceHandler) GetWorkspaceTemplates(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.GetWorkspaceTemplatesResponse], error)
type UnimplementedUserServiceHandler ¶
type UnimplementedUserServiceHandler struct{}
UnimplementedUserServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedUserServiceHandler) CreateUser ¶
func (UnimplementedUserServiceHandler) CreateUser(context.Context, *connect_go.Request[v1alpha1.CreateUserRequest]) (*connect_go.Response[v1alpha1.CreateUserResponse], error)
func (UnimplementedUserServiceHandler) DeleteUser ¶
func (UnimplementedUserServiceHandler) DeleteUser(context.Context, *connect_go.Request[v1alpha1.DeleteUserRequest]) (*connect_go.Response[v1alpha1.DeleteUserResponse], error)
func (UnimplementedUserServiceHandler) GetUser ¶
func (UnimplementedUserServiceHandler) GetUser(context.Context, *connect_go.Request[v1alpha1.GetUserRequest]) (*connect_go.Response[v1alpha1.GetUserResponse], error)
func (UnimplementedUserServiceHandler) GetUsers ¶
func (UnimplementedUserServiceHandler) GetUsers(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.GetUsersResponse], error)
func (UnimplementedUserServiceHandler) UpdateUserDisplayName ¶
func (UnimplementedUserServiceHandler) UpdateUserDisplayName(context.Context, *connect_go.Request[v1alpha1.UpdateUserDisplayNameRequest]) (*connect_go.Response[v1alpha1.UpdateUserDisplayNameResponse], error)
func (UnimplementedUserServiceHandler) UpdateUserPassword ¶
func (UnimplementedUserServiceHandler) UpdateUserPassword(context.Context, *connect_go.Request[v1alpha1.UpdateUserPasswordRequest]) (*connect_go.Response[v1alpha1.UpdateUserPasswordResponse], error)
func (UnimplementedUserServiceHandler) UpdateUserRole ¶
func (UnimplementedUserServiceHandler) UpdateUserRole(context.Context, *connect_go.Request[v1alpha1.UpdateUserRoleRequest]) (*connect_go.Response[v1alpha1.UpdateUserRoleResponse], error)
type UnimplementedWorkspaceServiceHandler ¶
type UnimplementedWorkspaceServiceHandler struct{}
UnimplementedWorkspaceServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedWorkspaceServiceHandler) CreateWorkspace ¶
func (UnimplementedWorkspaceServiceHandler) CreateWorkspace(context.Context, *connect_go.Request[v1alpha1.CreateWorkspaceRequest]) (*connect_go.Response[v1alpha1.CreateWorkspaceResponse], error)
func (UnimplementedWorkspaceServiceHandler) DeleteNetworkRule ¶
func (UnimplementedWorkspaceServiceHandler) DeleteNetworkRule(context.Context, *connect_go.Request[v1alpha1.DeleteNetworkRuleRequest]) (*connect_go.Response[v1alpha1.DeleteNetworkRuleResponse], error)
func (UnimplementedWorkspaceServiceHandler) DeleteWorkspace ¶
func (UnimplementedWorkspaceServiceHandler) DeleteWorkspace(context.Context, *connect_go.Request[v1alpha1.DeleteWorkspaceRequest]) (*connect_go.Response[v1alpha1.DeleteWorkspaceResponse], error)
func (UnimplementedWorkspaceServiceHandler) GetWorkspace ¶
func (UnimplementedWorkspaceServiceHandler) GetWorkspace(context.Context, *connect_go.Request[v1alpha1.GetWorkspaceRequest]) (*connect_go.Response[v1alpha1.GetWorkspaceResponse], error)
func (UnimplementedWorkspaceServiceHandler) GetWorkspaces ¶
func (UnimplementedWorkspaceServiceHandler) GetWorkspaces(context.Context, *connect_go.Request[v1alpha1.GetWorkspacesRequest]) (*connect_go.Response[v1alpha1.GetWorkspacesResponse], error)
func (UnimplementedWorkspaceServiceHandler) UpdateWorkspace ¶
func (UnimplementedWorkspaceServiceHandler) UpdateWorkspace(context.Context, *connect_go.Request[v1alpha1.UpdateWorkspaceRequest]) (*connect_go.Response[v1alpha1.UpdateWorkspaceResponse], error)
func (UnimplementedWorkspaceServiceHandler) UpsertNetworkRule ¶
func (UnimplementedWorkspaceServiceHandler) UpsertNetworkRule(context.Context, *connect_go.Request[v1alpha1.UpsertNetworkRuleRequest]) (*connect_go.Response[v1alpha1.UpsertNetworkRuleResponse], error)
type UserServiceClient ¶
type UserServiceClient interface { // Delete user by ID DeleteUser(context.Context, *connect_go.Request[v1alpha1.DeleteUserRequest]) (*connect_go.Response[v1alpha1.DeleteUserResponse], error) // Returns a single User model GetUser(context.Context, *connect_go.Request[v1alpha1.GetUserRequest]) (*connect_go.Response[v1alpha1.GetUserResponse], error) // Returns an array of User model GetUsers(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.GetUsersResponse], error) // Create a new User CreateUser(context.Context, *connect_go.Request[v1alpha1.CreateUserRequest]) (*connect_go.Response[v1alpha1.CreateUserResponse], error) // Update user display name UpdateUserDisplayName(context.Context, *connect_go.Request[v1alpha1.UpdateUserDisplayNameRequest]) (*connect_go.Response[v1alpha1.UpdateUserDisplayNameResponse], error) // Update a single User password UpdateUserPassword(context.Context, *connect_go.Request[v1alpha1.UpdateUserPasswordRequest]) (*connect_go.Response[v1alpha1.UpdateUserPasswordResponse], error) // Update a single User role UpdateUserRole(context.Context, *connect_go.Request[v1alpha1.UpdateUserRoleRequest]) (*connect_go.Response[v1alpha1.UpdateUserRoleResponse], error) }
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 ¶
type UserServiceHandler interface { // Delete user by ID DeleteUser(context.Context, *connect_go.Request[v1alpha1.DeleteUserRequest]) (*connect_go.Response[v1alpha1.DeleteUserResponse], error) // Returns a single User model GetUser(context.Context, *connect_go.Request[v1alpha1.GetUserRequest]) (*connect_go.Response[v1alpha1.GetUserResponse], error) // Returns an array of User model GetUsers(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.GetUsersResponse], error) // Create a new User CreateUser(context.Context, *connect_go.Request[v1alpha1.CreateUserRequest]) (*connect_go.Response[v1alpha1.CreateUserResponse], error) // Update user display name UpdateUserDisplayName(context.Context, *connect_go.Request[v1alpha1.UpdateUserDisplayNameRequest]) (*connect_go.Response[v1alpha1.UpdateUserDisplayNameResponse], error) // Update a single User password UpdateUserPassword(context.Context, *connect_go.Request[v1alpha1.UpdateUserPasswordRequest]) (*connect_go.Response[v1alpha1.UpdateUserPasswordResponse], error) // Update a single User role UpdateUserRole(context.Context, *connect_go.Request[v1alpha1.UpdateUserRoleRequest]) (*connect_go.Response[v1alpha1.UpdateUserRoleResponse], error) }
UserServiceHandler is an implementation of the dashboard.v1alpha1.UserService service.
type WorkspaceServiceClient ¶
type WorkspaceServiceClient interface { // Create a new Workspace CreateWorkspace(context.Context, *connect_go.Request[v1alpha1.CreateWorkspaceRequest]) (*connect_go.Response[v1alpha1.CreateWorkspaceResponse], error) // Delete workspace DeleteWorkspace(context.Context, *connect_go.Request[v1alpha1.DeleteWorkspaceRequest]) (*connect_go.Response[v1alpha1.DeleteWorkspaceResponse], error) // Update workspace UpdateWorkspace(context.Context, *connect_go.Request[v1alpha1.UpdateWorkspaceRequest]) (*connect_go.Response[v1alpha1.UpdateWorkspaceResponse], error) // Returns a single Workspace model GetWorkspace(context.Context, *connect_go.Request[v1alpha1.GetWorkspaceRequest]) (*connect_go.Response[v1alpha1.GetWorkspaceResponse], error) // Returns an array of Workspace model GetWorkspaces(context.Context, *connect_go.Request[v1alpha1.GetWorkspacesRequest]) (*connect_go.Response[v1alpha1.GetWorkspacesResponse], error) // Upsert workspace network rule UpsertNetworkRule(context.Context, *connect_go.Request[v1alpha1.UpsertNetworkRuleRequest]) (*connect_go.Response[v1alpha1.UpsertNetworkRuleResponse], error) // Remove workspace network rule DeleteNetworkRule(context.Context, *connect_go.Request[v1alpha1.DeleteNetworkRuleRequest]) (*connect_go.Response[v1alpha1.DeleteNetworkRuleResponse], error) }
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 ¶
type WorkspaceServiceHandler interface { // Create a new Workspace CreateWorkspace(context.Context, *connect_go.Request[v1alpha1.CreateWorkspaceRequest]) (*connect_go.Response[v1alpha1.CreateWorkspaceResponse], error) // Delete workspace DeleteWorkspace(context.Context, *connect_go.Request[v1alpha1.DeleteWorkspaceRequest]) (*connect_go.Response[v1alpha1.DeleteWorkspaceResponse], error) // Update workspace UpdateWorkspace(context.Context, *connect_go.Request[v1alpha1.UpdateWorkspaceRequest]) (*connect_go.Response[v1alpha1.UpdateWorkspaceResponse], error) // Returns a single Workspace model GetWorkspace(context.Context, *connect_go.Request[v1alpha1.GetWorkspaceRequest]) (*connect_go.Response[v1alpha1.GetWorkspaceResponse], error) // Returns an array of Workspace model GetWorkspaces(context.Context, *connect_go.Request[v1alpha1.GetWorkspacesRequest]) (*connect_go.Response[v1alpha1.GetWorkspacesResponse], error) // Upsert workspace network rule UpsertNetworkRule(context.Context, *connect_go.Request[v1alpha1.UpsertNetworkRuleRequest]) (*connect_go.Response[v1alpha1.UpsertNetworkRuleResponse], error) // Remove workspace network rule DeleteNetworkRule(context.Context, *connect_go.Request[v1alpha1.DeleteNetworkRuleRequest]) (*connect_go.Response[v1alpha1.DeleteNetworkRuleResponse], error) }
WorkspaceServiceHandler is an implementation of the dashboard.v1alpha1.WorkspaceService service.