{"modulePath":"github.com/mlarraz/codeowners-validator","version":"v0.9.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Functions\n\n```go\nfunc NewClient(ctx context.Context, cfg *ClientConfig) (*github.Client, error)\n```\n\n## Types\n\n```go\ntype ClientConfig struct {\n\tAccessToken string `envconfig:\"optional\"`\n\n\tAppID             int64  `envconfig:\"optional\"`\n\tAppPrivateKey     string `envconfig:\"optional\"`\n\tAppInstallationID int64  `envconfig:\"optional\"`\n\n\tBaseURL            string        `envconfig:\"optional\"`\n\tUploadURL          string        `envconfig:\"optional\"`\n\tHTTPRequestTimeout time.Duration `envconfig:\"default=30s\"`\n}\n```\n\n```go\nfunc (c *ClientConfig) Validate() error\n```\nValidate validates if provided client options are valid.\n\nCredentials are optional, so that public repositories can be validated without authentication. When both a token and a GitHub App are configured, the App is used.\n\n","path":"github.com/mlarraz/codeowners-validator/internal/github","name":"github","synopsis":"","isRedistributable":true}
