Documentation ¶
Index ¶
- Variables
- func CreateWorkspace(c client.Client, w *tenantv1alpha2.WorkspaceTemplate) (*tenantv1alpha2.WorkspaceTemplate, error)
- func DeleteWorkspace(c client.Client, name string, opts ...client.DeleteOption) (*tenantv1alpha1.Workspace, error)
- func GetWorkspace(c client.Client, name string) (*tenantv1alpha1.Workspace, error)
- func NewWorkspaceTemplate(name string, manager string, hosts ...string) *tenantv1alpha2.WorkspaceTemplate
Constants ¶
This section is empty.
Variables ¶
View Source
var URLOptions = client.URLOptions{
Group: "tenant.kubesphere.io",
Version: "v1alpha2",
}
Functions ¶
func CreateWorkspace ¶
func CreateWorkspace(c client.Client, w *tenantv1alpha2.WorkspaceTemplate) (*tenantv1alpha2.WorkspaceTemplate, error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.