workspace

package
v0.0.310 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var URLOptions = client.URLOptions{
	Group:   "tenant.kubesphere.io",
	Version: "v1alpha2",
}

Functions

func CreateWorkspace

CreateWorkSpace uses c to create Workspace. If the returned error is nil, the returned Workspace is valid and has been created.

func DeleteWorkspace

func DeleteWorkspace(c client.Client, name string, opts ...client.DeleteOption) (*tenantv1alpha1.Workspace, error)

DeleteWorkspace uses c to delete the Workspace by name. If the returned error is nil, the returned Workspace is valid.

func GetWorkspace

func GetWorkspace(c client.Client, name string) (*tenantv1alpha1.Workspace, error)

GetJob uses c to get the Workspace by name. If the returned error is nil, the returned Workspace is valid.

func NewWorkspaceTemplate

func NewWorkspaceTemplate(name string, manager string, hosts ...string) *tenantv1alpha2.WorkspaceTemplate

NewWorkspaceTemplate returns a WorkspaceTemplate spec with the specified argument.

Types

This section is empty.

Jump to

Keyboard shortcuts

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