{"modulePath":"github.com/appleboy/github2gitea","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Types\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nClient wraps the GitHub client with additional methods\n\n```go\nfunc NewClient(cfg *Config) (*Client, error)\n```\nNewClient creates a new GitHub Client\n\n```go\nfunc (c *Client) GetCurrentUser(ctx context.Context) (*github.User, error)\n```\nGetCurrentUser gets the current authenticated user's information\n\n```go\nfunc (c *Client) GetOrg(ctx context.Context, org string) (*github.Organization, error)\n```\nGetOrg gets a single organization's information\n\n```go\nfunc (c *Client) GetRepo(ctx context.Context, owner, repo string) (*github.Repository, error)\n```\nGetRepo gets a single repository's information\n\n```go\nfunc (c *Client) GetUser(ctx context.Context, username string) (*github.User, error)\n```\nGetUser gets a user's information by username\n\n```go\nfunc (c *Client) GetUserPermissionFromOrg(ctx context.Context, org, username string) (string, error)\n```\nGetUserPermissionFromOrg gets a user's permission level in an organization\n\n```go\nfunc (c *Client) GetUserPermissionFromRepo(ctx context.Context, owner, repo, username string) (string, error)\n```\nGetUserPermissionFromRepo gets a user's permission level for a repository\n\n```go\nfunc (c *Client) ListOrgActionsVariables(ctx context.Context, org string) ([]*github.ActionsVariable, error)\n```\nListOrgActionsVariables lists all GitHub Actions variables at the organization level.\n\n```go\nfunc (c *Client) ListOrgRepos(ctx context.Context, org string) ([]*github.Repository, error)\n```\nListOrgRepos lists all repositories in an organization using paginatedFetch\n\n```go\nfunc (c *Client) ListOrgTeams(ctx context.Context, org string) ([]*github.Team, error)\n```\nListOrgTeams lists all teams in an organization permission can be one of: \"pull\", \"triage\", \"push\", \"maintain\", \"admin\"\n\n```go\nfunc (c *Client) ListOrgTeamsMembers(ctx context.Context, org string, slug string) ([]*github.User, error)\n```\nListOrgTeamsMembers lists all members in a team using paginatedFetch\n\n```go\nfunc (c *Client) ListOrgUsers(ctx context.Context, org string) ([]*github.User, error)\n```\nListOrgUsers lists all members in an organization using paginatedFetch\n\n```go\nfunc (c *Client) ListRepoActionsVariables(ctx context.Context, owner, repo string) ([]*github.ActionsVariable, error)\n```\nListRepoActionsVariables lists all GitHub Actions variables at the repository level.\n\n```go\nfunc (c *Client) ListRepoCollaborators(ctx context.Context, owner, repo string) ([]*github.User, error)\n```\nListRepoCollaborators lists all collaborators in a repository. This is now implemented using paginatedFetch.\n\n```go\nfunc (c *Client) ListTeamReposBySlug(ctx context.Context, org string, slug string) ([]*github.Repository, error)\n```\nListTeamReposBySlug lists all repositories a team has access to using team slug and paginatedFetch\n\n```go\nfunc (c *Client) ListUserKeys(ctx context.Context, username string) ([]*github.Key, error)\n```\nListUserKeys lists all public keys for a user using paginatedFetch\n\n```go\ntype Config struct {\n\tServer     string\n\tToken      string\n\tSkipVerify bool\n\tLogger     *slog.Logger\n}\n```\n\n","path":"github.com/appleboy/github2gitea/pkg/github","name":"github","synopsis":"","isRedistributable":true}
