github

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint string
	Token    string
}

func NewConfig

func NewConfig(endpoint, token string) Config

type Release

type Release struct {
	TagName    string         `json:"tag_name"`
	Assets     []ReleaseAsset `json:"assets"`
	TarballURL string         `json:"tarball_url"`
}

type ReleaseAsset

type ReleaseAsset struct {
	URL string `json:"url"`
}

type ReleaseService

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

func NewReleaseService

func NewReleaseService(config Config) ReleaseService

func (ReleaseService) Get

func (rs ReleaseService) Get(org, repo string) (Release, error)

func (ReleaseService) GetReleaseAsset

func (rs ReleaseService) GetReleaseAsset(asset ReleaseAsset) (io.ReadCloser, error)

func (ReleaseService) GetReleaseTarball

func (rs ReleaseService) GetReleaseTarball(url string) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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