rest

package
v0.0.0-...-cb42e1a Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDefaultHostClient

func BuildDefaultHostClient() (client.Client, error)

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

func BuildWorkspacesClient(ctx context.Context) (client.Client, error)

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 BuildWorkspacesClientWithToken

func BuildWorkspacesClientWithToken(ctx context.Context, t string) (client.Client, error)

func NewDefaultClientConfig

func NewDefaultClientConfig() (*rest.Config, error)

NewDefaultClientConfig retrieves the client configuration from the process environment using the "k8s.io/client-go/tools/clientcmd" utilities

Types

This section is empty.

Jump to

Keyboard shortcuts

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