workspace

package
v0.9.3-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(workspaceId, email, role string) error

Add a user to a workspace with specified role

func Create

func Create(label, desc string) error

Create a workspace

func Delete

func Delete(id string) error

Delete a workspace by id

func GetCurrentWorkspace added in v0.2.2

func GetCurrentWorkspace() (string, error)

GetCurrentWorkspace gets the current workspace set in context config Returns a string representing the current workspace and an error if it doesn't exist

func List

func List() error

List all workspaces

func ListRoles added in v0.9.0

func ListRoles(workspaceId string) error

ListRoles print users and roles from a workspace

func Remove

func Remove(workspaceId, email string) error

Remove a user from a workspace

func Switch added in v0.2.2

func Switch(id string) error

Switch switches workspaces

func Update

func Update(id string, args map[string]string) error

Update an astronomer workspace

func UpdateRole added in v0.9.0

func UpdateRole(workspaceId, email, role string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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