gerrit

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.18.0

type Config struct {
	Repo Repo `yaml:"repo"`
}

type File added in v0.14.0

type File struct {
	Name      string
	Insertion int
	Deletion  int
}

type Gerrit

type Gerrit struct {
	Config Config

	Path    string
	Project string
	Branch  string
	Patch   Patch
	Url     string
	// contains filtered or unexported fields
}

func (*Gerrit) Call

func (g *Gerrit) Call(ctx context.Context, _ func(context.Context, interface{}) (interface{}, error), args ...interface{}) (string, error)

func (*Gerrit) Deinit

func (g *Gerrit) Deinit(_ context.Context) error

func (*Gerrit) Description

func (g *Gerrit) Description(_ context.Context) string

func (*Gerrit) Init

func (g *Gerrit) Init(_ context.Context) error

func (*Gerrit) Name

func (g *Gerrit) Name(_ context.Context) string

func (*Gerrit) Write added in v0.18.0

func (g *Gerrit) Write(data []byte) (n int, err error)

type Patch added in v0.14.0

type Patch struct {
	Hash    string
	Author  string
	Email   string
	Date    string
	Subject string
	File    []File
	Diff    map[string]*gitdiff.File
}

type Repo added in v0.18.0

type Repo struct {
	User User `yaml:"user"`
}

type User added in v0.18.0

type User struct {
	Name  string `yaml:"name"`
	Email string `yaml:"email"`
}

Jump to

Keyboard shortcuts

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