{"modulePath":"github.com/SovereignCloudStack/cluster-stack-operator","version":"v0.1.0-alpha.5","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package client\n\nPackage client contains interface for github client.\n\n## Constants\n\n```go\nconst (\n\t// EnvGitProvider is the provider name.\n\tEnvGitProvider = \"GIT_PROVIDER\"\n\n\t// EnvGitOrgName is the git org name.\n\tEnvGitOrgName = \"GIT_ORG_NAME\"\n\n\t// EnvGitRepositoryName is the repository name.\n\tEnvGitRepositoryName = \"GIT_REPOSITORY_NAME\"\n\n\t// EnvGitAccessToken used for accessing private repositories.\n\tEnvGitAccessToken = \"GIT_ACCESS_TOKEN\"\n)\n```\n\n## Types\n\n```go\ntype Client interface {\n\tDownloadReleaseAssets(ctx context.Context, release *github.RepositoryRelease, path string, assetlist []string) error\n\tGetReleaseByTag(ctx context.Context, tag string) (*github.RepositoryRelease, *github.Response, error)\n\tListRelease(ctx context.Context) ([]*github.RepositoryRelease, *github.Response, error)\n}\n```\nClient contains all functions to talk to Github API.\n\n```go\ntype Factory interface {\n\tNewClient(ctx context.Context) (Client, error)\n}\n```\nFactory is a factory to generate Github clients.\n\n```go\nfunc NewFactory() Factory\n```\nNewFactory returns a new factory for Github clients.\n\n```go\ntype GitConfig struct {\n\tGitProvider    string\n\tGitOrgName     string\n\tGitRepoName    string\n\tGitAccessToken string\n}\n```\nGitConfig contains necessary data to connect to github.\n\n```go\nfunc NewGitConfig() (GitConfig, error)\n```\nNewGitConfig ensures the environment variables required for the operator to run are set. Returns false if any of the required environment variables are not set.\n\n","path":"github.com/SovereignCloudStack/cluster-stack-operator/pkg/github/client","name":"client","synopsis":"Package client contains interface for github client.","isRedistributable":true}
