robotteammembership

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RobotMembershipTypeTeam string = "teams"
)

Robot scope types.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*up.Config
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *up.Config) *Client

func (*Client) Create

func (c *Client) Create(ctx context.Context, robotId string, params *ResourceIdentifier) error

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, robotId string, params *DeleteParameters) error

func (*Client) Get

func (c *Client) Get(ctx context.Context, robotId, teamId string) error

type DeleteParameters

type DeleteParameters struct {
	Type string `json:"type"`
	ID   string `json:"id"`
}

type RelationshipList

type RelationshipList struct {
	Data []ResourceIdentifier `json:"data"`
}

A RelationshipList represents JSON API relationships. https://jsonapi.org/format/#document-resource-object-relationships

type ResourceIdentifier

type ResourceIdentifier struct {
	Type string `json:"type"`
	ID   string `json:"id"`
}

Jump to

Keyboard shortcuts

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