Documentation ¶
Index ¶
- type Integration
- func (gh *Integration) ConcludeCheckRun(summary, conclusion *string) (err error)
- func (gh *Integration) ConfigFromScratch(...) (err error)
- func (gh *Integration) ConfigFromState(awsRegion, ghAccessTokenID string) (err error)
- func (gh *Integration) CreateNewCheckRun() (err error)
- func (gh *Integration) DeleteState() (err error)
- func (gh *Integration) GetAppInstID() (id int)
- func (gh *Integration) GetAppIntID() (id int)
- func (gh *Integration) GetCheckRunName() string
- func (gh *Integration) GetOwner() string
- func (gh *Integration) GetPrNum() (num int)
- func (gh *Integration) GetRepo() string
- func (gh *Integration) SetActiveCheckRun() (err error)
- func (gh *Integration) UpdateActiveCheckRun() (err error)
- func (gh *Integration) UpdateCheckRunStatus(status, summary *string) (err error)
- func (gh *Integration) ValidateState() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Integration ¶
type Integration struct { Client *github.Client PR *github.PullRequest ActiveCheckRun *github.CheckRun State *runsimaws.DdbTable IntegrationType *string CheckRunName *string InstallationID *string IntegrationID *string RepoOwner *string RepoName *string PrNum *string }
func (*Integration) ConcludeCheckRun ¶
func (gh *Integration) ConcludeCheckRun(summary, conclusion *string) (err error)
func (*Integration) ConfigFromScratch ¶
func (gh *Integration) ConfigFromScratch(awsRegion, privateKeyID, repoOwner, repoName, checkRunName, installationID, integrationID, prNum string) (err error)
Config the github client and assign values to the integration fields
func (*Integration) ConfigFromState ¶
func (gh *Integration) ConfigFromState(awsRegion, ghAccessTokenID string) (err error)
Retrieve simulation state data from DynamoDB Use the state data to configure the github api client and assign value to the integration fields
func (*Integration) CreateNewCheckRun ¶
func (gh *Integration) CreateNewCheckRun() (err error)
func (*Integration) DeleteState ¶
func (gh *Integration) DeleteState() (err error)
func (*Integration) GetAppInstID ¶
func (gh *Integration) GetAppInstID() (id int)
func (*Integration) GetAppIntID ¶
func (gh *Integration) GetAppIntID() (id int)
func (*Integration) GetCheckRunName ¶
func (gh *Integration) GetCheckRunName() string
func (*Integration) GetOwner ¶
func (gh *Integration) GetOwner() string
func (*Integration) GetPrNum ¶
func (gh *Integration) GetPrNum() (num int)
func (*Integration) GetRepo ¶
func (gh *Integration) GetRepo() string
func (*Integration) SetActiveCheckRun ¶
func (gh *Integration) SetActiveCheckRun() (err error)
Search for any active check runs associated with the pull request. An active check run is defined as not having the "Conclusion" field set.
func (*Integration) UpdateActiveCheckRun ¶
func (gh *Integration) UpdateActiveCheckRun() (err error)
Retrieve a new copy of the active check run. New copy contains any fields which have been updated since the active check run has been set
func (*Integration) UpdateCheckRunStatus ¶
func (gh *Integration) UpdateCheckRunStatus(status, summary *string) (err error)
func (*Integration) ValidateState ¶
func (gh *Integration) ValidateState() (err error)
Click to show internal directories.
Click to hide internal directories.