Documentation ¶
Index ¶
- Variables
- func ExecCommandInPod(client kubernetes.Interface, restconfig *rest.Config, ...) (stdout, stderr *bytes.Buffer, err error)
- func GetCurrentUserUID(token string, clientProvider ClientProvider) (string, error)
- func GetCurrentWorkspacePod(client kubernetes.Interface) (*corev1.Pod, error)
- func StopDevWorkspace(devworkspaceClient dynamic.Interface) error
- type ClientProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var NewSPDYExecutor = remotecommand.NewSPDYExecutor
NewSPDYExecutor is the function used to create a new SPDY Executor, with default value remotecommand.NewSPDYExecutor. Exposed only to enable testing code that uses the operations package.
Functions ¶
func ExecCommandInPod ¶
func GetCurrentUserUID ¶
func GetCurrentUserUID(token string, clientProvider ClientProvider) (string, error)
func GetCurrentWorkspacePod ¶
func GetCurrentWorkspacePod(client kubernetes.Interface) (*corev1.Pod, error)
func StopDevWorkspace ¶
Types ¶
type ClientProvider ¶
type ClientProvider interface { NewDevWorkspaceClient() (dynamic.Interface, *rest.Config, error) NewClientWithToken(token string) (kubernetes.Interface, *rest.Config, error) NewOpenShiftUserClient(token string) (dynamic.Interface, *rest.Config, error) }
func DefaultClientProvider ¶
func DefaultClientProvider() ClientProvider
Click to show internal directories.
Click to hide internal directories.