Versions in this module Expand all Collapse all v0 v0.0.2 Mar 12, 2024 v0.0.1 Mar 5, 2024 Changes in this version + const BaseDomain + const CurrentUserEndpoint + const OrgDetailEndpoint + const OrgsEndpoint + const RepositoriesEndpoint + const RepositoryPermissions + const TeamDetailEndpoint + const TeamMembersEndpoint + const TeamPermissionsEndpoint + const TeamsEndpoint + const UserEndpoint + const UserOrgsEndpoint + const UsersEndpoint + type BaseResource struct + Id string + type Client struct + func NewClient(ctx context.Context, httpClient *http.Client, username, password string) (*Client, error) + func (c *Client) GetTeam(ctx context.Context, orgSlug, teamId string) (*Team, error) + func (c *Client) ListOrganizations(ctx context.Context, pVars *PaginationVars) ([]Organization, string, error) + func (c *Client) ListRepositories(ctx context.Context, orgSlug string, pVars *PaginationVars) ([]Repository, string, error) + func (c *Client) ListRepositoryPermissions(ctx context.Context, orgSlug, repoSlug string, pVars *PaginationVars) ([]RepositoryPermission, string, error) + func (c *Client) ListTeamMembers(ctx context.Context, orgSlug, teamSlug string, pVars *PaginationVars) ([]User, string, error) + func (c *Client) ListTeams(ctx context.Context, orgSlug string, pVars *PaginationVars) ([]Team, string, error) + func (c *Client) ListUsers(ctx context.Context, orgSlug string, pVars *PaginationVars) ([]User, string, error) + func (c *Client) SetCurrentUser(ctx context.Context) error + type ListResponse struct + Results []T + type Organization struct + Name string + type PaginationData struct + Count int + Next string + type PaginationVars struct + Page string + Size uint + type Repository struct + Description string + Name string + NameSpace string + type RepositoryPermission struct + Permission string + TeamId int + TeamName string + type Team struct + Description string + Id int + Name string + type User struct + Email string + FullName string + Role string + Username string