gitlab

package
v0.0.0-...-92a1719 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeClient

func NewFakeClient(
	baseURL string,
	accessToken string,
	getFileFunc GetFileFunc,
	getProjectFunc GetProjectFunc,
	getReleaseArtifactFunc GetReleaseArtifactFunc,
) (bbGitLab.Client, error)

NewFakeClient - returns a new Fake GitLab client with the provided options

Types

type FakeClient

type FakeClient struct {
	// contains filtered or unexported fields
}

FakeClient

func (*FakeClient) GetFile

func (c *FakeClient) GetFile(repository string, path string, branch string) ([]byte, error)

func (*FakeClient) GetProject

func (c *FakeClient) GetProject(projectID string) (*gitlab.Project, error)

func (*FakeClient) GetReleaseArtifact

func (c *FakeClient) GetReleaseArtifact(projectID int, releaseTag string, artifactPath string) ([]byte, error)

type GetFileFunc

type GetFileFunc func(repository string, path string, branch string) ([]byte, error)

type GetProjectFunc

type GetProjectFunc func(projectID string) (*gitlab.Project, error)

type GetReleaseArtifactFunc

type GetReleaseArtifactFunc func(projectID int, releaseTag string, artifactPath string) ([]byte, error)

Jump to

Keyboard shortcuts

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