action

package
v0.0.0-...-cd76967 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionManager

type ActionManager struct {
	// contains filtered or unexported fields
}

func NewActionManager

func NewActionManager(
	ctx context.Context,
	logger log.Logger,
	organisation string,
	dryRun bool,
	workflowFile *WorkflowFile,
	workerPool *worker.WorkerPool,
	repositories RepositoriesService,
) *ActionManager

func (*ActionManager) CreateFile

func (am *ActionManager) CreateFile(ctx context.Context, repository, path string, content []byte) error

func (*ActionManager) Distribute

func (am *ActionManager) Distribute(ctx context.Context, private bool) (int, int, error)

func (*ActionManager) ListRepositories

func (am *ActionManager) ListRepositories(ctx context.Context, private bool) ([]*github.Repository, error)

type RepositoriesService

type RepositoriesService interface {
	ListByOrg(ctx context.Context, org string, opts *github.RepositoryListByOrgOptions) ([]*github.Repository, *github.Response, error)
	CreateFile(ctx context.Context, owner, repo, path string, opts *github.RepositoryContentFileOptions) (*github.RepositoryContentResponse, *github.Response, error)
}

type WorkflowFile

type WorkflowFile struct {
	Path    string
	Content []byte
}

func NewWorkflowFile

func NewWorkflowFile(file, version string) (*WorkflowFile, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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