MCPcopy Index your code
hub / github.com/coder/coder / Organization

Method Organization

codersdk/organizations.go:280–284  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

278}
279
280func (c *Client) Organization(ctx context.Context, id uuid.UUID) (Organization, error) {
281 // OrganizationByName uses the exact same endpoint. It accepts a name or uuid.
282 // We just provide this function for type safety.
283 return c.OrganizationByName(ctx, id.String())
284}
285
286// CreateOrganization creates an organization and adds the user making the request as an owner.
287func (c *Client) CreateOrganization(ctx context.Context, req CreateOrganizationRequest) (Organization, error) {

Callers 6

TestWorkspaceFunction · 0.45
TestAddMemberFunction · 0.45
TestAuditLogsFunction · 0.45

Calls 2

OrganizationByNameMethod · 0.95
StringMethod · 0.45

Tested by 6

TestWorkspaceFunction · 0.36
TestAddMemberFunction · 0.36
TestAuditLogsFunction · 0.36