api

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	*tfeapi.Responder
	Client apiClient
}

func (*API) AddHandlers

func (a *API) AddHandlers(r *mux.Router)

type Client

type Client struct {
	*otfhttp.Client
}

func (*Client) CreateTeam

func (c *Client) CreateTeam(ctx context.Context, organization organization.Name, opts team.CreateTeamOptions) (*team.Team, error)

CreateTeam creates a team via HTTP/JSONAPI.

func (*Client) DeleteTeam

func (c *Client) DeleteTeam(ctx context.Context, id resource.TfeID) error

DeleteTeam deletes a team via HTTP/JSONAPI.

func (*Client) GetTeam

func (c *Client) GetTeam(ctx context.Context, organization organization.Name, name string) (*team.Team, error)

GetTeam retrieves a team via HTTP/JSONAPI.

type TFEAPI

type TFEAPI struct {
	*tfeapi.Responder
	Client tfeClient
}

func (*TFEAPI) AddHandlers

func (a *TFEAPI) AddHandlers(r *mux.Router)

type TeamClient

type TeamClient = Client

Alias client to permit embedding it with other clients in a struct without a name clash.

Jump to

Keyboard shortcuts

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