{"modulePath":"github.com/opengapps/package-api","version":"v1.7.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Functions\n\n```go\nfunc NewClient(ctx context.Context, opts ...Option) (*client, error)\n```\nNewClient creates new Github client\n\n## Types\n\n```go\ntype LatestRelease struct {\n\tArch   string         `json:\"arch\"`\n\tDate   string         `json:\"date\"`\n\tAssets []ReleaseAsset `json:\"assets\"`\n}\n```\nLatestRelease describes the latest gapps release\n\n```go\ntype Option func(*client) error\n```\nOption serves as the client configuration\n\n```go\nfunc WithConfig(cfg *viper.Viper) Option\n```\nWithConfig provides viper config to the client\n\n```go\nfunc WithStorage(storage Storage) Option\n```\nWithStorage provides Storage to the client\n\n```go\ntype ReleaseAsset struct {\n\tAPI      string   `json:\"api\"`\n\tVariants []string `json:\"variants\"`\n}\n```\nReleaseAsset describes the gapps release for API and its available variants\n\n```go\ntype Storage interface {\n\tClose(delete bool) error\n\tKeys() ([]string, error)\n\tGet(key string) ([]byte, error)\n\tGetMultipleBySuffix(suffix string) ([]string, [][]byte, error)\n\tPut(key string, val []byte) error\n\tDelete(key string) error\n\tPurge() error\n}\n```\nStorage describes the storage\n\n","path":"github.com/opengapps/package-api/pkg/github","name":"github","synopsis":"","isRedistributable":true}
