teams

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*up.Config
}

func NewClient

func NewClient(cfg *up.Config) *Client

func (*Client) Create

func (c *Client) Create(ctx context.Context, params *CreateParameters) (*CreateResponse, error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, id string) error

func (*Client) Get

func (c *Client) Get(ctx context.Context, id string) (*GetResponse, error)

type CreateParameters

type CreateParameters struct {
	Name           string `json:"name"`
	OrganizationID uint   `json:"organizationId"`
}

type CreateResponse

type CreateResponse struct {
	ID string `json:"id"`
}

type GetResponse

type GetResponse struct {
	common.DataSet `json:"data"`
}

Jump to

Keyboard shortcuts

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