gitprovider

package
v1.12.15-0...-edc2ec3 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

type HttpClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type Options

type Options struct {
	Endpoint   string
	Namespace  string
	Project    string
	Token      string
	ShouldLog  bool
	HttpClient HttpClient
}

type Service

type Service interface {
	GitService() git.Service
	HTTPClient() HttpClient
	SetHTTPClient(HttpClient)
	SetGitService(git.Service)
	Close(b glow.Branch) error
	Publish(b glow.Branch) error
	DetectCICDOrigin() (string, error)
	GetCIBranch() (glow.Branch, error)
}

Service describes all actions which can performed with the git hosting git service (gitlab etc.)

func NewGithubService

func NewGithubService(options Options) Service

func NewGitlabService

func NewGitlabService(options Options) Service

func NewLoggingService

func NewLoggingService(s Service) Service

Directories

Path Synopsis
Package mock_gitprovider is a generated GoMock package.
Package mock_gitprovider is a generated GoMock package.

Jump to

Keyboard shortcuts

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