{"modulePath":"github.com/michaelmass/github-settings","version":"v0.0.0-20191010180620-44dc8fe78f50","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 used to call the github api\n\n```go\nfunc New(token string) *Client\n```\nNew creates a new client\n\n```go\nfunc (client *Client) Apply(settings *Settings) error\n```\nApply the specified settings to a repository\n\n```go\nfunc (client *Client) GetSettingsFromGithub(owner string, name string) (*Settings, error)\n```\nGetSettingsFromGithub returns the settings current applied on a github repository\n\n```go\ntype Disabled struct {\n\tRepository bool\n\tLabels     bool\n\tBranches   bool\n\tWebhooks   bool\n\tTopics     bool\n}\n```\nDisabled specify if a functionnality sould be disabled\n\n```go\ntype Settings struct {\n\tDisable    Disabled\n\tRepository repository\n\tLabels     []label\n\tBranches   []branch\n\tWebhooks   []webhook\n\tTopics     []string\n}\n```\nSettings contains the settings to be apply to a github repository\n\n```go\nfunc GetSettingsFromBytes(content []byte) (*Settings, error)\n```\nGetSettingsFromBytes parse byte array containing settings\n\n```go\nfunc GetSettingsFromFile(file string) (*Settings, error)\n```\nGetSettingsFromFile parse a yaml file containing settings\n\n","path":"github.com/michaelmass/github-settings/pkg/github","name":"github","synopsis":"","isRedistributable":true}
