releases

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package releases implements functions for interacting with 'Releases' provided by VCS providers. The Release terminology largely comes from Github and can be thought of as versioned artifacts that correspond to a Git tag.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(ctx context.Context, opts *FetchOptions) (io.ReadCloser, fs.FileInfo, error)

Fetch fetches a release from a VCS provider and returns an asset from it as an io.ReadCloser. This must be closed to close the underlying HTTP request.

func GetReleaseNotes

func GetReleaseNotes(ctx context.Context, opts *GetReleaseNoteOptions) (string, error)

GetReleaseNotes fetches the release notes of a release from a VCS provider.

Types

type Client

type Client struct{}

Client contains configuration for fetching releases from various VCS providers.

type FetchOptions

type FetchOptions = opts.FetchOptions

FetchOptions is an alias for opts.FetchOptions.

type GetReleaseNoteOptions

type GetReleaseNoteOptions = opts.GetReleaseNoteOptions

GetReleaseNoteOptions is an alias for opts.GetReleaseNoteOptions.

Directories

Path Synopsis
Package github implements [opts.Fetcher] for Github releases.
Package github implements [opts.Fetcher] for Github releases.
Package gitlab implements [opts.Fetcher] for Gitlab releases.
Package gitlab implements [opts.Fetcher] for Gitlab releases.
internal
opts
Package opts contains the options and interfaces for the releases package.
Package opts contains the options and interfaces for the releases package.

Jump to

Keyboard shortcuts

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