gitea_target

package
v0.0.0-...-8ce5dc5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitData

type CommitData struct {
	Message string           `json:"message"`
	Content string           `json:"content"`
	Branch  string           `json:"branch"`
	SHA     string           `json:"sha,omitempty"`
	Author  CommitDataAuthor `json:"author"`
}

type CommitDataAuthor

type CommitDataAuthor struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

type GiteaRepository

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

GiteaRepository commits to a Gitea repository using the Gitea REST Commits APIs

func NewAPIClient

func NewAPIClient(uri string, projectID string, credentials string) *GiteaRepository

NewAPIClient creates a GiteaRepository instance

func (*GiteaRepository) Commit

func (ge *GiteaRepository) Commit(payload *targets.CommitPayload) error

func (*GiteaRepository) Get

func (ge *GiteaRepository) Get(path string, ref string) ([]byte, error)

Jump to

Keyboard shortcuts

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