runsimgh

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL