Documentation
¶
Index ¶
- type API
- type Client
- func (c *Client) AddTeamMembership(ctx context.Context, teamID resource.TfeID, usernames []user.Username) error
- func (c *Client) Create(ctx context.Context, username string, _ ...user.NewUserOption) (*user.User, error)
- func (c *Client) Delete(ctx context.Context, username user.Username) error
- func (c *Client) RemoveTeamMembership(ctx context.Context, teamID resource.TfeID, usernames []user.Username) error
- type TFEAPI
- type UserClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
func (*API) AddHandlers ¶
type Client ¶
func (*Client) AddTeamMembership ¶
func (c *Client) AddTeamMembership(ctx context.Context, teamID resource.TfeID, usernames []user.Username) error
AddTeamMembership adds users to a team via HTTP.
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, username string, _ ...user.NewUserOption) (*user.User, error)
Create creates a user via HTTP/JSONAPI. Options are ignored.
type TFEAPI ¶
func (*TFEAPI) AddHandlers ¶
type UserClient ¶
type UserClient = Client
Alias client to permit embedding it with other clients in a struct without a name clash.
Click to show internal directories.
Click to hide internal directories.