gitea

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gitea

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

func New

func New(ctx context.Context, apiToken string, host string, organization string, debug bool) (*Gitea, error)

func (*Gitea) CreateFile

func (g *Gitea) CreateFile(owner, repo, filePath, branch string, content []byte) error

func (*Gitea) GetFile

func (g *Gitea) GetFile(owner, repo, filePath, branch string) ([]byte, string, error)

func (*Gitea) ListFiles added in v0.0.8

func (g *Gitea) ListFiles(owner, repo, filePath, branch string) ([]GiteaFile, error)

func (*Gitea) UpdateFile

func (g *Gitea) UpdateFile(owner, repo, filePath, branch string, content []byte, existingSHA string) error

func (*Gitea) WithLoggingContext

func (d *Gitea) WithLoggingContext(ctx context.Context) context.Context

type GiteaFile added in v0.0.8

type GiteaFile struct {
	Name string
	SHA  string
}

Jump to

Keyboard shortcuts

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