api

package
v0.0.1-0...-46c5078 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) *github.Client

func NewClient

func NewClient(ctx context.Context, token string) *github.Client

func WithContext

func WithContext(ctx context.Context, cl *github.Client) context.Context

func WithTestClient

func WithTestClient(t require.TestingT, fn func(*github.Client, *http.ServeMux))

Types

type Asset

type Asset struct {
	ID          int64
	Name        string
	ContentType string
	Size        int
	URL         string
}

func (Asset) String

func (a Asset) String() string

type IndexedAssets

type IndexedAssets struct {
	Archives  []Asset
	Checksums []Asset
	Binaries  []Asset
}

func CreateIndex

func CreateIndex(assets []Asset) IndexedAssets

Jump to

Keyboard shortcuts

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