Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileService ¶
type FileService struct { Client *github.Client RepoOwner string RepoName string RefTrees map[sha]*github.Tree }
func NewFileService ¶
func NewFileService(client *github.Client, owner, name string) *FileService
func (*FileService) CommitTree ¶
func (fs *FileService) CommitTree(tree *github.Tree, refName, parentSHA, msg string) error
CommitTree commits the provided tree
func (*FileService) CreateOrUpdate ¶
func (fs *FileService) CreateOrUpdate(parentSHA sha, params fileParams) error
CreateOrUpdate updates an existing file or creates it if it does not exist. The new file conforms to the specified params.
func (*FileService) Remove ¶
func (fs *FileService) Remove(parentSHA sha, params fileParams) error
Remove attempts to delete a file from the parent SHA
func (*FileService) TreeFacts ¶
func (fs *FileService) TreeFacts(SHA sha) error
RefFacts fetches the current state (SHA, tree) of the reference
type GithubService ¶
type GithubService struct { Client *github.Client HookService *HookService FileService *FileService RepoOwner string RepoName string }
Serves policy goals related to github
func (*GithubService) Do ¶
func (s *GithubService) Do(goal string, msg *json.RawMessage) error
type HookService ¶
type HookService struct { Client *github.Client RepoOwner string RepoName string Hooks *[]github.Hook }
func NewHookService ¶
func NewHookService(client *github.Client, owner, name string) (*HookService, error)
func (*HookService) CreateOrUpdate ¶
func (hs *HookService) CreateOrUpdate(params *github.Hook) error
Click to show internal directories.
Click to hide internal directories.