usecase

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubRepoMetadata added in v0.2.0

type GitHubRepoMetadata struct {
	Owner           string
	Repo            string
	CommitID        string
	Branch          string
	IsDefaultBranch bool
	BaseCommitID    string
	PullRequestID   int
}

type Mock added in v0.2.0

type Mock struct {
	MockScanGitHubRepo func(ctx *model.Context, input *ScanGitHubRepoInput) error
}

func (*Mock) ScanGitHubRepo added in v0.2.0

func (x *Mock) ScanGitHubRepo(ctx *model.Context, input *ScanGitHubRepoInput) error

type ScanGitHubRepoInput added in v0.2.0

type ScanGitHubRepoInput struct {
	GitHubRepoMetadata
	InstallID types.GitHubAppInstallID
}

func (*ScanGitHubRepoInput) Validate added in v0.2.0

func (x *ScanGitHubRepoInput) Validate() error

type UseCase added in v0.2.0

type UseCase interface {
	ScanGitHubRepo(ctx *model.Context, input *ScanGitHubRepoInput) error
}

func New

func New(clients *infra.Clients) UseCase

func NewMock added in v0.2.0

func NewMock() UseCase

Jump to

Keyboard shortcuts

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