fetcher

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchContractsFromRepository

func FetchContractsFromRepository(r config.Repository, client *api.RESTClient) (map[string]*contract.Contract, error)

FetchContractsFromRepository fetches contracts from a repository.

Types

type Asset

type Asset struct {
	ID          int    `json:"id"`
	URL         string `json:"url"`
	Name        string
	Label       string
	ContentType string `json:"content_type"`
	State       string
	DownloadURL string `json:"browser_download_url"`
}

type Version

type Version struct {
	Name       string
	TagName    string `json:"tag_name"`
	ID         int    `json:"id"`
	Draft      bool
	PreRelease bool
	Assets     []Asset
	URL        string `json:"url"`
	TarballURL string `json:"tarball_url"`
}

Directories

Path Synopsis
Package config holds the "configuration" that is used for fetching information from external repositories.
Package config holds the "configuration" that is used for fetching information from external repositories.

Jump to

Keyboard shortcuts

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