service

package
v0.0.0-...-30757b5 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BytebaseService

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

func NewBytebase

func NewBytebase(url, key, secret string) *BytebaseService

NewLark creates a Bytebase service

func (*BytebaseService) CreateIssue

func (s *BytebaseService) CreateIssue(ctx context.Context, create *payload.IssueCreate) error

CreateIssue creates a single issue in a project.

type GerritService

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

func NewGerrit

func NewGerrit(url, username, password string) *GerritService

NewGerrit creates a Gerrit service

func (*GerritService) GetFileContent

func (s *GerritService) GetFileContent(ctx context.Context, changeKey, revisionKey, filename string) (string, error)

GetFileContent returns the file content in a change. Docs: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#get-content

func (*GerritService) ListFilesInChange

func (s *GerritService) ListFilesInChange(ctx context.Context, changeKey, revisionKey string) (map[string]interface{}, error)

ListFilesInChange lists changed files in a change. Docs: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-files

Jump to

Keyboard shortcuts

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