adapter

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 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) error
	GetRepository(owner, repo, branchName string) (*models.Repository, error)
	ListRepositoryBranches(owner, repo string) ([]*models.Branch, error)
	GetCommit(organization string, repositoryName string, sha string) (*models.RepositoryCommit, error)
	GetBranchProtection(owner, repo, 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)
	GetFileContent(owner, repo, path, ref string) ([]byte, error)
	GetAuthorizedUser() (*models.User, error)
}

Jump to

Keyboard shortcuts

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