workspace

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(workspaceId, email, role string, client *houston.Client, out io.Writer) error

Add a user to a workspace with specified role

func Create

func Create(label, desc string, client *houston.Client, out io.Writer) error

Create a workspace

func Delete

func Delete(id string, client *houston.Client, out io.Writer) 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(client *houston.Client, out io.Writer) error

List all workspaces

func ListRoles added in v0.9.0

func ListRoles(workspaceId string, client *houston.Client, out io.Writer) error

ListRoles print users and roles from a workspace

func Remove

func Remove(workspaceId, email string, client *houston.Client, out io.Writer) error

Remove a user from a workspace

func Switch added in v0.2.2

func Switch(id string, client *houston.Client, out io.Writer) error

Switch switches workspaces

func Update

func Update(id string, client *houston.Client, out io.Writer, args map[string]string) error

Update an astronomer workspace

func UpdateRole added in v0.9.0

func UpdateRole(workspaceId, email, role string, client *houston.Client, out io.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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