runner

package
v0.0.0-...-8fb4044 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssueLister

type IssueLister struct{}

IssueLister provides issue items for operations to run on.

func (*IssueLister) ListItems

func (r *IssueLister) ListItems(context *operations.Context, op operations.Operation, page int) ([]gh.Item, *github.Response, error)

ListItems returns a list of GitHub items for the specified operation to run on.

type Lister

type Lister interface {
	ListItems(context *operations.Context, op operations.Operation, page int) ([]gh.Item, *github.Response, error)
}

Lister provides items for operations to run on.

type OperationRunner

type OperationRunner struct {
	// Config is the global settings for execution.
	Config *configuration.Config

	// GlobalFilters are the filters to apply in addition to the operation's specific filtering.
	GlobalFilters settings.Filters

	// Operation is the operation to execute.
	Operation operations.Operation
}

OperationRunner is responsible for executing the Operation.

func NewOperationRunner

func NewOperationRunner(config *configuration.Config, operation operations.Operation) *OperationRunner

NewOperationRunner returns an OperationRunner.

func NewOperationRunnerFromConfig

func NewOperationRunnerFromConfig(config *configuration.Config, operationConfig *configuration.OperationConfiguration) (*OperationRunner, error)

NewOperationRunnerFromConfig returns an OperationRunner parsed from configuration.

func (*OperationRunner) Handle

func (r *OperationRunner) Handle(item gh.Item) error

Handle applies the operation to a single GitHub item.

func (*OperationRunner) HandleStock

func (r *OperationRunner) HandleStock() error

HandleStock applies the operation to the entire stock of GitHub items.

type PullRequestLister

type PullRequestLister struct{}

PullRequestLister provides pull request items for operations to run on.

func (*PullRequestLister) ListItems

func (r *PullRequestLister) ListItems(context *operations.Context, op operations.Operation, page int) ([]gh.Item, *github.Response, error)

ListItems returns a list of GitHub items for the specified operation to run on.

Jump to

Keyboard shortcuts

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