rest

package
v0.0.0-...-5ecafbf Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildEdit bool

BuildEdit If true, then edit the manifest before resubmit

View Source
var BuildNote string

BuildNote is a description of a build

View Source
var BuildTags []string

BuildTags are tags for a build

View Source
var ListName string

ListName is the name of a mailing list

View Source
var MetaEdit bool

MetaEdit If true, then edit own profile information

View Source
var PasteExpiration string

PasteExpiration is the duration that the paste should live

View Source
var PasteName string

PasteName is the name of the file that should be uploaded

View Source
var PasteVisibility string

PasteVisibility is the visibility of the file that should be uploaded

View Source
var PatchPrefix string

PatchPrefix is the prefix of a patchset

View Source
var PatchStatus string

PatchStatus is the status of a patchset

View Source
var RefName string

RefName is the name of a git repository ref

View Source
var RepoName string

RepoName is the name of a git repository

View Source
var TicketStatus string

TicketStatus is the status of a ticket

View Source
var TrackerName string

TrackerName is the name of a tracker

View Source
var UserName string

UserName is the sourcehut username

Functions

func ArtifactsUpload

func ArtifactsUpload(args []string) error

ArtifactsUpload uploads artifact(s) to a repo ref

func BuildDeploy

func BuildDeploy(args []string) error

BuildDeploy deploys build manifests from command line

func BuildInformation

func BuildInformation(args []string) error

BuildInformation gets information about a job by its ID

func BuildResubmit

func BuildResubmit(args []string) error

BuildResubmit resubmits a build ID

func HandleResponse

func HandleResponse(response string, copy bool)

HandleResponse prints the response and can copy it to clipboard

func MetaGetLogs

func MetaGetLogs() error

MetaGetLogs prints audit log entries

func MetaGetProfile

func MetaGetProfile() error

MetaGetProfile prints profile information

func PasteCleanup

func PasteCleanup() error

PasteCleanup deletes expired paste resources

func PasteCreate

func PasteCreate(args []string) error

PasteCreate creates a new paste resource

func PasteDelete

func PasteDelete(args []string) error

PasteDelete deletes multiple paste resources

func PrintPatchsets

func PrintPatchsets(args []string) error

PrintPatchsets prints out patchsets

func PrintTickets

func PrintTickets(args []string) error

PrintTickets prints out tickets of a user

func Request

func Request(url string, method string, body interface{}, response ...interface{}) error

Request does the actual API request

func UploadFileRequest

func UploadFileRequest(url string, fileName string, response ...interface{}) error

UploadFileRequest uploads a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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