gitea

package
v1.16.27 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: BSD-2-Clause-Patent Imports: 16 Imported by: 0

Documentation

Overview

Package gitea implements a Gitea client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(uri string) (*scm.Client, error)

New returns a new Gitea API client.

Types

type Attachment

type Attachment struct {
	ID            int64     `json:"id"`
	Name          string    `json:"name"`
	Size          int64     `json:"size"`
	DownloadCount int64     `json:"download_count"`
	Created       null.Time `json:"created_at"`
	UUID          string    `json:"uuid"`
	DownloadURL   string    `json:"browser_download_url"`
}

type ListOptions

type ListOptions struct {
	Page     int
	PageSize int
}

type ReleaseInput

type ReleaseInput struct {
	TagName      string `json:"tag_name"`
	Target       string `json:"target_commitish"`
	Title        string `json:"name"`
	Note         string `json:"body"`
	IsDraft      bool   `json:"draft"`
	IsPrerelease bool   `json:"prerelease"`
}

Jump to

Keyboard shortcuts

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