client

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Releases returns all releases for a given repository
	Releases(repo string) ([]Release, error)
}

Client a client

func NewCachedClient

func NewCachedClient(client Client, cache *cache.Cache) Client

NewCachedClient returns a new cached client

func NewClient

func NewClient(token string) Client

NewClient returns a new github client

func NewFakeClient added in v1.1.0

func NewFakeClient(result []Release, err error) Client

NewFakeClient returns a new fake client

type Release

type Release struct {
	TagName     string    `json:"tag_name,omitempty"`
	Draft       bool      `json:"draft,omitempty"`
	Prerelease  bool      `json:"prerelease,omitempty"`
	PublishedAt time.Time `json:"published_at,omitempty"`
}

Release from github api

Jump to

Keyboard shortcuts

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