Documentation
¶
Index ¶
- Variables
- type Client
- type Github
- func (g *Github) CreateWorkflowDispatch(org, repo string, workflowID int64, ref string, inputs map[string]interface{}) error
- func (g *Github) GetWorkflow(org, repo string, id int64) (*Workflow, error)
- func (g *Github) ListOrgsForUser() ([]Org, error)
- func (g *Github) ListRepos(repoType string) ([]Repo, error)
- func (g *Github) ListWorkflowRuns(org, repo string, workflowID int64, created string) ([]WorkflowRun, error)
- func (g *Github) ListWorkflows(org, repo string) ([]Workflow, error)
- func (g *Github) New() (*github.Client, error)
- func (g *Github) ValidateWorkflow(org, repo, path string) ([]string, map[string]string, error)
- func (g *Github) ValidateWorkflowFull(org, repo, path string) (string, string, error)
- type Org
- type Repo
- type Workflow
- type WorkflowRun
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AccessTokenCtx = &contextKey{"AccessToken"} PrivateKeyCtx = &contextKey{"PrivateKey"} AppIDCtx = &contextKey{"AppID"} InstallationIDCtx = &contextKey{"InstallationID"} )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
ListRepos(repoType string) ([]Repo, error)
GetWorkflow(org, repo string, id int64) (*Workflow, error)
ListWorkflows(org, repo string) ([]Workflow, error)
ListWorkflowRuns(org, repo string, workflowID int64, created string) ([]WorkflowRun, error)
CreateWorkflowDispatch(org, repo string, workflowID int64, ref string, inputs map[string]interface{}) error
ValidateWorkflow(org, repo, path string) ([]string, map[string]string, error)
ValidateWorkflowFull(org, repo, path string) (string, string, error)
ListOrgsForUser() ([]Org, error)
}
var (
DefaultClient Client = &Github{Context: context.Background()}
)
type Github ¶
func (*Github) CreateWorkflowDispatch ¶
func (*Github) GetWorkflow ¶
func (*Github) ListOrgsForUser ¶
func (*Github) ListWorkflowRuns ¶
func (*Github) ValidateWorkflow ¶
type Repo ¶
type Repo struct {
Name, Url, Detail string
}
func (Repo) Description ¶
func (Repo) FilterValue ¶
type WorkflowRun ¶
type WorkflowRun struct {
Name, Status, Url, Conclusion string
Id, WorkflowID int64
RunStartedAt, UpdatedAt time.Time
}
func (WorkflowRun) Description ¶
func (i WorkflowRun) Description() string
func (WorkflowRun) FilterValue ¶
func (i WorkflowRun) FilterValue() string
func (WorkflowRun) Title ¶
func (i WorkflowRun) Title() string
Click to show internal directories.
Click to hide internal directories.