spi

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildTaskRunner added in v0.3.5

type BuildTaskRunner interface {
	Run(ctx context.Context, task string, args ...string) (io.Reader, error)
	Wd() string
}

type GitClient

type GitClient interface {
	Clone(ctx context.Context, url string) error
	Origin() (string, error)
	Branch(name string) error
	Commit(msg string) (string, error)
	Push(ctx context.Context) error
}

type GitServer

type GitServer interface {
	CreatePullRequest(ctx context.Context, remoteURL, fromBranch, toBranch, title, body string) (string, error)
}

type OSSIndex added in v0.4.0

type OSSIndex interface {
	GetComponentReports(coordiantes []string) ([]api.ComponentReport, error)
}

type PullRequest added in v0.4.0

type PullRequest struct {
	URL        string
	Owner      string
	Repo       string
	FromBranch string
	ToBranch   string
}

Directories

Path Synopsis
impl

Jump to

Keyboard shortcuts

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