Documentation ¶
Index ¶
- Constants
- func NewAuthServiceHandler(svc AuthServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- func NewStreamServiceHandler(svc StreamServiceHandler, 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 NewWebAuthnServiceHandler(svc WebAuthnServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- func NewWorkspaceServiceHandler(svc WorkspaceServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type AuthServiceClient
- type AuthServiceHandler
- type StreamServiceClient
- type StreamServiceHandler
- 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) ServiceAccountLogin(context.Context, *connect_go.Request[v1alpha1.ServiceAccountLoginRequest]) (*connect_go.Response[v1alpha1.LoginResponse], error)
- func (UnimplementedAuthServiceHandler) Verify(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.VerifyResponse], error)
- type UnimplementedStreamServiceHandler
- type UnimplementedTemplateServiceHandler
- func (UnimplementedTemplateServiceHandler) GetUserAddonTemplates(context.Context, *connect_go.Request[v1alpha1.GetUserAddonTemplatesRequest]) (*connect_go.Response[v1alpha1.GetUserAddonTemplatesResponse], error)
- func (UnimplementedTemplateServiceHandler) GetWorkspaceTemplates(context.Context, *connect_go.Request[v1alpha1.GetWorkspaceTemplatesRequest]) (*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) GetEvents(context.Context, *connect_go.Request[v1alpha1.GetEventsRequest]) (*connect_go.Response[v1alpha1.GetEventsResponse], 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[v1alpha1.GetUsersRequest]) (*connect_go.Response[v1alpha1.GetUsersResponse], error)
- func (UnimplementedUserServiceHandler) UpdateUserAddons(context.Context, *connect_go.Request[v1alpha1.UpdateUserAddonsRequest]) (*connect_go.Response[v1alpha1.UpdateUserAddonsResponse], 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 UnimplementedWebAuthnServiceHandler
- func (UnimplementedWebAuthnServiceHandler) BeginLogin(context.Context, *connect_go.Request[v1alpha1.BeginLoginRequest]) (*connect_go.Response[v1alpha1.BeginLoginResponse], error)
- func (UnimplementedWebAuthnServiceHandler) BeginRegistration(context.Context, *connect_go.Request[v1alpha1.BeginRegistrationRequest]) (*connect_go.Response[v1alpha1.BeginRegistrationResponse], error)
- func (UnimplementedWebAuthnServiceHandler) DeleteCredential(context.Context, *connect_go.Request[v1alpha1.DeleteCredentialRequest]) (*connect_go.Response[v1alpha1.DeleteCredentialResponse], error)
- func (UnimplementedWebAuthnServiceHandler) FinishLogin(context.Context, *connect_go.Request[v1alpha1.FinishLoginRequest]) (*connect_go.Response[v1alpha1.FinishLoginResponse], error)
- func (UnimplementedWebAuthnServiceHandler) FinishRegistration(context.Context, *connect_go.Request[v1alpha1.FinishRegistrationRequest]) (*connect_go.Response[v1alpha1.FinishRegistrationResponse], error)
- func (UnimplementedWebAuthnServiceHandler) ListCredentials(context.Context, *connect_go.Request[v1alpha1.ListCredentialsRequest]) (*connect_go.Response[v1alpha1.ListCredentialsResponse], error)
- func (UnimplementedWebAuthnServiceHandler) UpdateCredential(context.Context, *connect_go.Request[v1alpha1.UpdateCredentialRequest]) (*connect_go.Response[v1alpha1.UpdateCredentialResponse], 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 WebAuthnServiceClient
- type WebAuthnServiceHandler
- 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" // AuthServiceServiceAccountLoginProcedure is the fully-qualified name of the AuthService's // ServiceAccountLogin RPC. AuthServiceServiceAccountLoginProcedure = "/dashboard.v1alpha1.AuthService/ServiceAccountLogin" )
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" // UserServiceGetEventsProcedure is the fully-qualified name of the UserService's GetEvents RPC. UserServiceGetEventsProcedure = "/dashboard.v1alpha1.UserService/GetEvents" // 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" // UserServiceUpdateUserAddonsProcedure is the fully-qualified name of the UserService's // UpdateUserAddons RPC. UserServiceUpdateUserAddonsProcedure = "/dashboard.v1alpha1.UserService/UpdateUserAddons" )
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 ( // WebAuthnServiceBeginRegistrationProcedure is the fully-qualified name of the WebAuthnService's // BeginRegistration RPC. WebAuthnServiceBeginRegistrationProcedure = "/dashboard.v1alpha1.WebAuthnService/BeginRegistration" // WebAuthnServiceFinishRegistrationProcedure is the fully-qualified name of the WebAuthnService's // FinishRegistration RPC. WebAuthnServiceFinishRegistrationProcedure = "/dashboard.v1alpha1.WebAuthnService/FinishRegistration" // WebAuthnServiceBeginLoginProcedure is the fully-qualified name of the WebAuthnService's // BeginLogin RPC. WebAuthnServiceBeginLoginProcedure = "/dashboard.v1alpha1.WebAuthnService/BeginLogin" // WebAuthnServiceFinishLoginProcedure is the fully-qualified name of the WebAuthnService's // FinishLogin RPC. WebAuthnServiceFinishLoginProcedure = "/dashboard.v1alpha1.WebAuthnService/FinishLogin" // WebAuthnServiceListCredentialsProcedure is the fully-qualified name of the WebAuthnService's // ListCredentials RPC. WebAuthnServiceListCredentialsProcedure = "/dashboard.v1alpha1.WebAuthnService/ListCredentials" // WebAuthnServiceUpdateCredentialProcedure is the fully-qualified name of the WebAuthnService's // UpdateCredential RPC. WebAuthnServiceUpdateCredentialProcedure = "/dashboard.v1alpha1.WebAuthnService/UpdateCredential" // WebAuthnServiceDeleteCredentialProcedure is the fully-qualified name of the WebAuthnService's // DeleteCredential RPC. WebAuthnServiceDeleteCredentialProcedure = "/dashboard.v1alpha1.WebAuthnService/DeleteCredential" )
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 (
// StreamServiceName is the fully-qualified name of the StreamService service.
StreamServiceName = "dashboard.v1alpha1.StreamService"
)
const ( // StreamServiceStreamingEventsProcedure is the fully-qualified name of the StreamService's // StreamingEvents RPC. StreamServiceStreamingEventsProcedure = "/dashboard.v1alpha1.StreamService/StreamingEvents" )
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 (
// 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 (
// WebAuthnServiceName is the fully-qualified name of the WebAuthnService service.
WebAuthnServiceName = "dashboard.v1alpha1.WebAuthnService"
)
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 NewStreamServiceHandler ¶
func NewStreamServiceHandler(svc StreamServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewStreamServiceHandler 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 NewWebAuthnServiceHandler ¶
func NewWebAuthnServiceHandler(svc WebAuthnServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewWebAuthnServiceHandler 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) // Kubernetes ServiceAccount to login ServiceAccountLogin(context.Context, *connect_go.Request[v1alpha1.ServiceAccountLoginRequest]) (*connect_go.Response[v1alpha1.LoginResponse], 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) // Kubernetes ServiceAccount to login ServiceAccountLogin(context.Context, *connect_go.Request[v1alpha1.ServiceAccountLoginRequest]) (*connect_go.Response[v1alpha1.LoginResponse], error) }
AuthServiceHandler is an implementation of the dashboard.v1alpha1.AuthService service.
type StreamServiceClient ¶
type StreamServiceClient interface { // Streaming new events for user StreamingEvents(context.Context, *connect_go.Request[v1alpha1.GetEventsRequest]) (*connect_go.ServerStreamForClient[v1alpha1.GetEventsResponse], error) }
StreamServiceClient is a client for the dashboard.v1alpha1.StreamService service.
func NewStreamServiceClient ¶
func NewStreamServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) StreamServiceClient
NewStreamServiceClient constructs a client for the dashboard.v1alpha1.StreamService 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 StreamServiceHandler ¶
type StreamServiceHandler interface { // Streaming new events for user StreamingEvents(context.Context, *connect_go.Request[v1alpha1.GetEventsRequest], *connect_go.ServerStream[v1alpha1.GetEventsResponse]) error }
StreamServiceHandler is an implementation of the dashboard.v1alpha1.StreamService service.
type TemplateServiceClient ¶
type TemplateServiceClient interface { // List templates typed useraddon GetUserAddonTemplates(context.Context, *connect_go.Request[v1alpha1.GetUserAddonTemplatesRequest]) (*connect_go.Response[v1alpha1.GetUserAddonTemplatesResponse], error) // List templates typed workspace GetWorkspaceTemplates(context.Context, *connect_go.Request[v1alpha1.GetWorkspaceTemplatesRequest]) (*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[v1alpha1.GetUserAddonTemplatesRequest]) (*connect_go.Response[v1alpha1.GetUserAddonTemplatesResponse], error) // List templates typed workspace GetWorkspaceTemplates(context.Context, *connect_go.Request[v1alpha1.GetWorkspaceTemplatesRequest]) (*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) ServiceAccountLogin ¶
func (UnimplementedAuthServiceHandler) ServiceAccountLogin(context.Context, *connect_go.Request[v1alpha1.ServiceAccountLoginRequest]) (*connect_go.Response[v1alpha1.LoginResponse], error)
func (UnimplementedAuthServiceHandler) Verify ¶
func (UnimplementedAuthServiceHandler) Verify(context.Context, *connect_go.Request[emptypb.Empty]) (*connect_go.Response[v1alpha1.VerifyResponse], error)
type UnimplementedStreamServiceHandler ¶
type UnimplementedStreamServiceHandler struct{}
UnimplementedStreamServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedStreamServiceHandler) StreamingEvents ¶
func (UnimplementedStreamServiceHandler) StreamingEvents(context.Context, *connect_go.Request[v1alpha1.GetEventsRequest], *connect_go.ServerStream[v1alpha1.GetEventsResponse]) error
type UnimplementedTemplateServiceHandler ¶
type UnimplementedTemplateServiceHandler struct{}
UnimplementedTemplateServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedTemplateServiceHandler) GetUserAddonTemplates ¶
func (UnimplementedTemplateServiceHandler) GetUserAddonTemplates(context.Context, *connect_go.Request[v1alpha1.GetUserAddonTemplatesRequest]) (*connect_go.Response[v1alpha1.GetUserAddonTemplatesResponse], error)
func (UnimplementedTemplateServiceHandler) GetWorkspaceTemplates ¶
func (UnimplementedTemplateServiceHandler) GetWorkspaceTemplates(context.Context, *connect_go.Request[v1alpha1.GetWorkspaceTemplatesRequest]) (*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) GetEvents ¶
func (UnimplementedUserServiceHandler) GetEvents(context.Context, *connect_go.Request[v1alpha1.GetEventsRequest]) (*connect_go.Response[v1alpha1.GetEventsResponse], 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[v1alpha1.GetUsersRequest]) (*connect_go.Response[v1alpha1.GetUsersResponse], error)
func (UnimplementedUserServiceHandler) UpdateUserAddons ¶
func (UnimplementedUserServiceHandler) UpdateUserAddons(context.Context, *connect_go.Request[v1alpha1.UpdateUserAddonsRequest]) (*connect_go.Response[v1alpha1.UpdateUserAddonsResponse], 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 UnimplementedWebAuthnServiceHandler ¶
type UnimplementedWebAuthnServiceHandler struct{}
UnimplementedWebAuthnServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedWebAuthnServiceHandler) BeginLogin ¶
func (UnimplementedWebAuthnServiceHandler) BeginLogin(context.Context, *connect_go.Request[v1alpha1.BeginLoginRequest]) (*connect_go.Response[v1alpha1.BeginLoginResponse], error)
func (UnimplementedWebAuthnServiceHandler) BeginRegistration ¶
func (UnimplementedWebAuthnServiceHandler) BeginRegistration(context.Context, *connect_go.Request[v1alpha1.BeginRegistrationRequest]) (*connect_go.Response[v1alpha1.BeginRegistrationResponse], error)
func (UnimplementedWebAuthnServiceHandler) DeleteCredential ¶
func (UnimplementedWebAuthnServiceHandler) DeleteCredential(context.Context, *connect_go.Request[v1alpha1.DeleteCredentialRequest]) (*connect_go.Response[v1alpha1.DeleteCredentialResponse], error)
func (UnimplementedWebAuthnServiceHandler) FinishLogin ¶
func (UnimplementedWebAuthnServiceHandler) FinishLogin(context.Context, *connect_go.Request[v1alpha1.FinishLoginRequest]) (*connect_go.Response[v1alpha1.FinishLoginResponse], error)
func (UnimplementedWebAuthnServiceHandler) FinishRegistration ¶
func (UnimplementedWebAuthnServiceHandler) FinishRegistration(context.Context, *connect_go.Request[v1alpha1.FinishRegistrationRequest]) (*connect_go.Response[v1alpha1.FinishRegistrationResponse], error)
func (UnimplementedWebAuthnServiceHandler) ListCredentials ¶
func (UnimplementedWebAuthnServiceHandler) ListCredentials(context.Context, *connect_go.Request[v1alpha1.ListCredentialsRequest]) (*connect_go.Response[v1alpha1.ListCredentialsResponse], error)
func (UnimplementedWebAuthnServiceHandler) UpdateCredential ¶
func (UnimplementedWebAuthnServiceHandler) UpdateCredential(context.Context, *connect_go.Request[v1alpha1.UpdateCredentialRequest]) (*connect_go.Response[v1alpha1.UpdateCredentialResponse], 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[v1alpha1.GetUsersRequest]) (*connect_go.Response[v1alpha1.GetUsersResponse], error) // Returns events for User GetEvents(context.Context, *connect_go.Request[v1alpha1.GetEventsRequest]) (*connect_go.Response[v1alpha1.GetEventsResponse], 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) // Update a single User role UpdateUserAddons(context.Context, *connect_go.Request[v1alpha1.UpdateUserAddonsRequest]) (*connect_go.Response[v1alpha1.UpdateUserAddonsResponse], 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[v1alpha1.GetUsersRequest]) (*connect_go.Response[v1alpha1.GetUsersResponse], error) // Returns events for User GetEvents(context.Context, *connect_go.Request[v1alpha1.GetEventsRequest]) (*connect_go.Response[v1alpha1.GetEventsResponse], 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) // Update a single User role UpdateUserAddons(context.Context, *connect_go.Request[v1alpha1.UpdateUserAddonsRequest]) (*connect_go.Response[v1alpha1.UpdateUserAddonsResponse], error) }
UserServiceHandler is an implementation of the dashboard.v1alpha1.UserService service.
type WebAuthnServiceClient ¶
type WebAuthnServiceClient interface { // BeginRegistration returns CredentialCreateOptions to window.navigator.create() which is serialized as JSON string // Also `publicKey.user.id“ and `publicKey.challenge` are base64url encoded BeginRegistration(context.Context, *connect_go.Request[v1alpha1.BeginRegistrationRequest]) (*connect_go.Response[v1alpha1.BeginRegistrationResponse], error) // FinishRegistration check the result of window.navigator.create() // `rawId`, `response.clientDataJSON` and `response.attestationObject` in the result must be base64url encoded // and all JSON must be serialized as string FinishRegistration(context.Context, *connect_go.Request[v1alpha1.FinishRegistrationRequest]) (*connect_go.Response[v1alpha1.FinishRegistrationResponse], error) // BeginLogin returns CredentialRequestOptions to window.navigator.get() which is serialized as JSON string // Also `publicKey.allowCredentials[*].id` and `publicKey.challenge` are base64url encoded BeginLogin(context.Context, *connect_go.Request[v1alpha1.BeginLoginRequest]) (*connect_go.Response[v1alpha1.BeginLoginResponse], error) // FinishLogin check the result of window.navigator.get() // `rawId`, `response.clientDataJSON`, `response.authenticatorData`, `response.signature`, `response.userHandle` // in the result must be base64url encoded and all JSON must be serialized as string FinishLogin(context.Context, *connect_go.Request[v1alpha1.FinishLoginRequest]) (*connect_go.Response[v1alpha1.FinishLoginResponse], error) // ListCredentials returns registered credential ID list ListCredentials(context.Context, *connect_go.Request[v1alpha1.ListCredentialsRequest]) (*connect_go.Response[v1alpha1.ListCredentialsResponse], error) // UpdateCredential updates registed credential's human readable infomations UpdateCredential(context.Context, *connect_go.Request[v1alpha1.UpdateCredentialRequest]) (*connect_go.Response[v1alpha1.UpdateCredentialResponse], error) // DeleteCredential remove registered credential DeleteCredential(context.Context, *connect_go.Request[v1alpha1.DeleteCredentialRequest]) (*connect_go.Response[v1alpha1.DeleteCredentialResponse], error) }
WebAuthnServiceClient is a client for the dashboard.v1alpha1.WebAuthnService service.
func NewWebAuthnServiceClient ¶
func NewWebAuthnServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) WebAuthnServiceClient
NewWebAuthnServiceClient constructs a client for the dashboard.v1alpha1.WebAuthnService 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 WebAuthnServiceHandler ¶
type WebAuthnServiceHandler interface { // BeginRegistration returns CredentialCreateOptions to window.navigator.create() which is serialized as JSON string // Also `publicKey.user.id“ and `publicKey.challenge` are base64url encoded BeginRegistration(context.Context, *connect_go.Request[v1alpha1.BeginRegistrationRequest]) (*connect_go.Response[v1alpha1.BeginRegistrationResponse], error) // FinishRegistration check the result of window.navigator.create() // `rawId`, `response.clientDataJSON` and `response.attestationObject` in the result must be base64url encoded // and all JSON must be serialized as string FinishRegistration(context.Context, *connect_go.Request[v1alpha1.FinishRegistrationRequest]) (*connect_go.Response[v1alpha1.FinishRegistrationResponse], error) // BeginLogin returns CredentialRequestOptions to window.navigator.get() which is serialized as JSON string // Also `publicKey.allowCredentials[*].id` and `publicKey.challenge` are base64url encoded BeginLogin(context.Context, *connect_go.Request[v1alpha1.BeginLoginRequest]) (*connect_go.Response[v1alpha1.BeginLoginResponse], error) // FinishLogin check the result of window.navigator.get() // `rawId`, `response.clientDataJSON`, `response.authenticatorData`, `response.signature`, `response.userHandle` // in the result must be base64url encoded and all JSON must be serialized as string FinishLogin(context.Context, *connect_go.Request[v1alpha1.FinishLoginRequest]) (*connect_go.Response[v1alpha1.FinishLoginResponse], error) // ListCredentials returns registered credential ID list ListCredentials(context.Context, *connect_go.Request[v1alpha1.ListCredentialsRequest]) (*connect_go.Response[v1alpha1.ListCredentialsResponse], error) // UpdateCredential updates registed credential's human readable infomations UpdateCredential(context.Context, *connect_go.Request[v1alpha1.UpdateCredentialRequest]) (*connect_go.Response[v1alpha1.UpdateCredentialResponse], error) // DeleteCredential remove registered credential DeleteCredential(context.Context, *connect_go.Request[v1alpha1.DeleteCredentialRequest]) (*connect_go.Response[v1alpha1.DeleteCredentialResponse], error) }
WebAuthnServiceHandler is an implementation of the dashboard.v1alpha1.WebAuthnService 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.