github

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Release

type Release struct {
	ID      int64
	TagName string
	*Releaser
}

Release represents a Github release

func (*Release) UploadAsset

func (r *Release) UploadAsset(path string) error

UploadAsset uploads asset to the release

type Releaser

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

Releaser releases to Github

func NewReleaser

func NewReleaser(owner, repo, token string) (*Releaser, error)

NewReleaser creates a new Releaser instance

func (*Releaser) Create

func (r *Releaser) Create(name string) (*Release, error)

Create creates a new Github release

func (*Releaser) Find

func (r *Releaser) Find(tagName string) (*Release, error)

Find finds Github release by tag name

func (*Releaser) Latest

func (r *Releaser) Latest() (*Release, error)

Latest finds the latest Github release

Jump to

Keyboard shortcuts

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