Documentation ¶
Index ¶
- func BuildDefaultHostClient() (client.Client, error)
- func BuildDefaultRESTMapper() (meta.RESTMapper, error)
- func BuildRESTMapper(cfg *rest.Config) (meta.RESTMapper, error)
- func BuildWorkspacesClient(ctx context.Context) (client.Client, error)
- func BuildWorkspacesClientForUser(ctx context.Context, user toolchainv1alpha1.UserSignup) (client.Client, error)
- func BuildWorkspacesClientWithToken(ctx context.Context, t string) (client.Client, error)
- func NewDefaultClientConfig() (*rest.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDefaultHostClient ¶
BuildDefaultHostClient builds the default host client. It uses NewDefaultClientConfig for retrieving the client configuration.
func BuildDefaultRESTMapper ¶
func BuildDefaultRESTMapper() (meta.RESTMapper, error)
BuildDefaultRESTMapper builds a RESTMapper from the default client configuration.
func BuildRESTMapper ¶
func BuildRESTMapper(cfg *rest.Config) (meta.RESTMapper, error)
BuildRESTMapper builds a RESTMapper from a given configuration.
func BuildWorkspacesClient ¶
BuildWorkspacesClient builds a client that targets the Workspaces REST API server. It also builds a valid JWT token for authenticating the requests.
func BuildWorkspacesClientForUser ¶
func BuildWorkspacesClientForUser(ctx context.Context, user toolchainv1alpha1.UserSignup) (client.Client, error)
func NewDefaultClientConfig ¶
NewDefaultClientConfig retrieves the client configuration from the process environment using the "k8s.io/client-go/tools/clientcmd" utilities
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.