invites

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invite

type Invite struct {
	Links   lowlevel.LinkList `json:"_links"`
	Actions lowlevel.LinkList `json:"_actions"`

	ID           string    `json:"id"`
	IssuedAt     time.Time `json:"issuedAt"`
	Message      string    `json:"message"`
	State        string    `json:"state"`
	Inviter      *UserRef  `json:"inviter"`
	Invitee      *UserRef  `json:"invitee"`
	InviteeEmail string    `json:"inviteeEmail"`
	Team         *TeamRef  `json:"team"`
}

type InvitesClient

type InvitesClient interface {
	ListIncoming() ([]Invite, error)
	ListOutgoing() ([]Invite, error)
	Accept(inviteID string) error
	//Decline(inviteID string) (error)
	Revoke(inviteID string) error
}

func NewInvitesClient

func NewInvitesClient(client *lowlevel.SpacesLowlevelClient) InvitesClient

type TeamRef

type TeamRef struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type UserRef

type UserRef struct {
	ID        string `json:"id"`
	Email     string `json:"email"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
}

Jump to

Keyboard shortcuts

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