dashboardv1alpha1connect

package
v1.0.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 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"
	// 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.

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"
	// 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.

View Source
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.

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 (
	// StreamServiceName is the fully-qualified name of the StreamService service.
	StreamServiceName = "dashboard.v1alpha1.StreamService"
)
View Source
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.

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 (
	// WebAuthnServiceName is the fully-qualified name of the WebAuthnService service.
	WebAuthnServiceName = "dashboard.v1alpha1.WebAuthnService"
)
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 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.

type UnimplementedStreamServiceHandler

type UnimplementedStreamServiceHandler struct{}

UnimplementedStreamServiceHandler 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 UnimplementedWebAuthnServiceHandler

type UnimplementedWebAuthnServiceHandler struct{}

UnimplementedWebAuthnServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedWorkspaceServiceHandler

type UnimplementedWorkspaceServiceHandler struct{}

UnimplementedWorkspaceServiceHandler returns CodeUnimplemented from all methods.

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

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