adapter

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientAdapter

type ClientAdapter interface {
	Init(client *http.Client, token string, host string) error
	ListSupportedChecksIDs() ([]string, error)
	GetRepository(owner, repo, branchName string) (*models.Repository, error)
	ListRepositoryBranches(owner, repo string) ([]*models.Branch, error)
	GetBranchProtection(owner string, repo *models.Repository, branch string) (*models.Protection, error)
	GetOrganization(owner string) (*models.Organization, error)
	GetRegistry(organization *models.Organization) (*models.PackageRegistry, error)
	ListOrganizationMembers(organization string) ([]*models.User, error)
	GetPipelines(owner, repo, branch string) ([]*pipelineModels.Pipeline, error)
	GetAuthorizedUser() (*models.User, error)
}

Jump to

Keyboard shortcuts

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