Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewAppClient ¶
func (Client) BranchCommit ¶
func (Client) PullO5Configs ¶
func (cl Client) PullO5Configs(ctx context.Context, org string, repo string, ref string) ([]*application_pb.Application, error)
type MultiOrgClient ¶
type MultiOrgClient struct {
// contains filtered or unexported fields
}
func NewMultiOrgClient ¶
func NewMultiOrgClient(clients map[string]*Client) (*MultiOrgClient, error)
func NewMultiOrgClientFromConfigs ¶
func NewMultiOrgClientFromConfigs(configs ...AppConfig) (*MultiOrgClient, error)
func (MultiOrgClient) PullO5Configs ¶
func (mc MultiOrgClient) PullO5Configs(ctx context.Context, org string, repo string, ref string) ([]*application_pb.Application, error)
type RepositoriesService ¶
type RepositoriesService interface {
DownloadContents(ctx context.Context, owner, repo, filepath string, opts *github.RepositoryContentGetOptions) (io.ReadCloser, *github.Response, error)
ListByOrg(context.Context, string, *github.RepositoryListByOrgOptions) ([]*github.Repository, *github.Response, error)
GetContents(ctx context.Context, owner, repo, path string, opts *github.RepositoryContentGetOptions) (fileContent *github.RepositoryContent, directoryContent []*github.RepositoryContent, resp *github.Response, err error)
GetBranch(ctx context.Context, owner, repo, branch string, followRedirects bool) (*github.Branch, *github.Response, error)
}
Click to show internal directories.
Click to hide internal directories.