workspaces

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package workspaces handles the orchestration of workspace-related operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	API *api.Client
}

Service provides workspace management operations.

func NewService

func NewService(apiClient *api.Client) *Service

NewService creates a new workspaces service.

func (*Service) Create

func (s *Service) Create(name string) error

Create creates a new team workspace.

func (*Service) Invite

func (s *Service) Invite(workspaceID, email, role string) error

Invite adds a member to a workspace by encrypting the workspace key for them.

func (*Service) Members

func (s *Service) Members(workspaceID string) ([]WorkspaceMember, error)

Members lists all members of a workspace.

func (*Service) RemoveMember

func (s *Service) RemoveMember(workspaceID, email string) error

RemoveMember removes a member from a workspace.

type WorkspaceMember

type WorkspaceMember struct {
	Email  string `json:"email"`
	Role   string `json:"role"`
	Status string `json:"status"`
}

WorkspaceMember represents a member of a workspace.

Jump to

Keyboard shortcuts

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