reference

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package reference ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arch

type Arch struct {
	Amd64 string `json:"amd64,omitempty"`
	Arm64 string `json:"arm64,omitempty"`
	Arm   string `json:"arm,omitempty"`
}

Arch ...

type Available

type Available struct {
	Os   Os
	Arch Arch
}

Available ...

type Checksum

type Checksum struct {
	Check  bool
	URL    string
	File   string
	Format string
}

Checksum ...

type File

type File struct {
	URL        string
	Src        string
	Binary     string
	Mode       string
	BinaryPath string
	Link       string
}

File ...

type Metadata

type Metadata struct {
	Name string
	Web  string
}

Metadata ...

type Os

type Os struct {
	Linux   string `json:"linux,omitempty"`
	Windows string `json:"windows,omitempty"`
	Darwin  string `json:"darwin,omitempty"`
}

Os ...

type Reference

type Reference struct {
	APIVersion string `json:"apiVersion"`
	Kind       string
	Metadata   Metadata
	Spec       Spec
}

Reference ...

func New

func New(rel string) *Reference

New ...

func (*Reference) ListVersions

func (r *Reference) ListVersions(num int) []string

ListVersions ...

type Repo

type Repo struct {
	Type  string
	Name  string
	Owner string
}

Repo ...

type Spec

type Spec struct {
	Repo      Repo
	File      File
	Checksum  Checksum
	Available Available
}

Spec ...

Jump to

Keyboard shortcuts

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