github

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package github can handle git branch sources

Package github has common definitions

Package github gets release/asset information from upstreams

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Branch

func Branch(caller fetch.Retriever, _ fetch.Context, a core.GitHubMode) (*core.Resource, error)

Branch will get an asset from a branch

func Release

func Release(caller fetch.Retriever, ctx fetch.Context, a core.GitHubMode) (*core.Resource, error)

Release handles GitHub-based releases

Types

type ErrorResponse

type ErrorResponse struct {
	Message       string `json:"message"`
	Documentation string `json:"documentation_url"`
}

ErrorResponse is the error from github

type WrapperError

type WrapperError struct {
	Code   int
	Status string
	Body   []byte
	URL    string
}

WrapperError indicates a download error (from github specifically)

func (*WrapperError) Error

func (e *WrapperError) Error() string

Error is the interface definition for fetch errors

Jump to

Keyboard shortcuts

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