{"modulePath":"github.com/gitops-toolbox/github-org-manager","version":"v0.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package githuborg\n\n## Functions\n\n```go\nfunc LoadConfig(path string) (map[string]Repo, error)\n```\n\n## Types\n\n```go\ntype Collaborator struct {\n\tLogin *string `json:\"login,omitempty\"`\n\tName  *string `json:\"name,omitempty\"`\n\n\t// Permissions identifies the permissions that a user has on a given\n\t// repository. This is only populated when calling Repositories.ListCollaborators.\n\tPermissions map[string]bool `json:\"permissions,omitempty\"`\n}\n```\n\n```go\ntype GithubOrg struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc GetClient(accessToken string, organization string) GithubOrg\n```\n\n```go\nfunc (org GithubOrg) GetOutOfSyncRepos() ([]Repo, error)\n```\n\n```go\nfunc (org GithubOrg) GetRepo(reponame string) (*Repo, error)\n```\n\n```go\nfunc (org GithubOrg) GetRepos() ([]*Repo, error)\n```\n\n```go\nfunc (org GithubOrg) GetRepositories() ([]*github.Repository, error)\n```\n\n```go\nfunc (org GithubOrg) GetRepository(reponame string) (*github.Repository, error)\n```\n\n```go\nfunc (org GithubOrg) ListCollaborators(repo string) ([]*Collaborator, error)\n```\n\n```go\nfunc (org GithubOrg) ListTeams(repo string) ([]*Team, error)\n```\n\n```go\nfunc (org GithubOrg) Sync(repo *github.Repository) error\n```\n\n```go\nfunc (org GithubOrg) SyncTopics(repo *github.Repository) error\n```\n\n```go\ntype JsonRepo struct {\n\tName string\n\tRepo\n}\n```\n\n```go\ntype Repo struct {\n\tName          *string `json:\"name,omitempty\"`\n\tDescription   *string `json:\"description,omitempty\"`\n\tHomepage      *string `json:\"homepage,omitempty\"`\n\tDefaultBranch *string `json:\"default_branch,omitempty\"`\n\n\tPrivate     *bool   `json:\"private,omitempty\"`\n\tVisibility  *string `json:\"visibility,omitempty\"`\n\tHasIssues   *bool   `json:\"has_issues,omitempty\"`\n\tHasProjects *bool   `json:\"has_projects,omitempty\"`\n\tHasWiki     *bool   `json:\"has_wiki,omitempty\"`\n\tIsTemplate  *bool   `json:\"is_template,omitempty\"`\n\n\tTeams         []*Team         `json:\"teams,omitempty\"`\n\tCollaborators []*Collaborator `json:\"collaborators,omitempty\"`\n\tTopics        []string        `json:\"topics,omitempty\"`\n\tArchived      *bool           `json:\"archived,omitempty\"`\n\tDisabled      *bool           `json:\"disabled,omitempty\"`\n\n\t// Creating an organization repository. Required for non-owners.\n\tTeamID *int64 `json:\"team_id,omitempty\"`\n\n\tAutoInit            *bool   `json:\"auto_init,omitempty\"`\n\tGitignoreTemplate   *string `json:\"gitignore_template,omitempty\"`\n\tLicenseTemplate     *string `json:\"license_template,omitempty\"`\n\tAllowSquashMerge    *bool   `json:\"allow_squash_merge,omitempty\"`\n\tAllowMergeCommit    *bool   `json:\"allow_merge_commit,omitempty\"`\n\tAllowRebaseMerge    *bool   `json:\"allow_rebase_merge,omitempty\"`\n\tAllowAutoMerge      *bool   `json:\"allow_auto_merge,omitempty\"`\n\tDeleteBranchOnMerge *bool   `json:\"delete_branch_on_merge,omitempty\"`\n}\n```\n\n```go\nfunc RepositoryToRepo(repo *github.Repository) *Repo\n```\n\n```go\nfunc (r Repo) InSync(org GithubOrg) (bool, *github.Repository, error)\n```\n\n```go\nfunc (r Repo) Reconcile(org GithubOrg) error\n```\n\n```go\nfunc (r Repo) String() string\n```\n\n```go\ntype Team struct {\n\tName       *string `json:\"name, omitempty\"`\n\tSlug       *string `json:\"slug,omitempty\"`\n\tID         *int64  `json:\"id,omitempty\"`\n\tPermission *string `json:\"permission,omitempty\"`\n}\n```\n\n","path":"github.com/gitops-toolbox/github-org-manager/lib","name":"githuborg","synopsis":"","isRedistributable":true}
