types

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	URL      string      `json:"url"`
	ID       int         `json:"id"`
	NodeID   string      `json:"node_id"`
	Name     string      `json:"name"`
	Label    interface{} `json:"label"`
	Uploader struct {
		Login             string `json:"login"`
		ID                int    `json:"id"`
		NodeID            string `json:"node_id"`
		AvatarURL         string `json:"avatar_url"`
		GravatarID        string `json:"gravatar_id"`
		URL               string `json:"url"`
		HTMLURL           string `json:"html_url"`
		FollowersURL      string `json:"followers_url"`
		FollowingURL      string `json:"following_url"`
		GistsURL          string `json:"gists_url"`
		StarredURL        string `json:"starred_url"`
		SubscriptionsURL  string `json:"subscriptions_url"`
		OrganizationsURL  string `json:"organizations_url"`
		ReposURL          string `json:"repos_url"`
		EventsURL         string `json:"events_url"`
		ReceivedEventsURL string `json:"received_events_url"`
		Type              string `json:"type"`
		SiteAdmin         bool   `json:"site_admin"`
	} `json:"uploader"`
	ContentType        string    `json:"content_type"`
	State              string    `json:"state"`
	Size               int       `json:"size"`
	DownloadCount      int       `json:"download_count"`
	CreatedAt          time.Time `json:"created_at"`
	UpdatedAt          time.Time `json:"updated_at"`
	BrowserDownloadURL string    `json:"browser_download_url"`
}

type GithubError added in v0.4.5

type GithubError struct {
	Message          string `json:"message"`
	DocumentationUrl string `json:"documentation_url"`
}

type GithubRelease

type GithubRelease struct {
	TagName string  `json:"tag_name"`
	Name    string  `json:"name"`
	Assets  []Asset `json:"assets"`
	Body    string  `json:"body"`
}

type GithubTag added in v0.2.7

type GithubTag struct {
	Name       string `json:"name"`
	ZipballURL string `json:"zipball_url"`
	TarballURL string `json:"tarball_url"`
	Commit     struct {
		Sha string `json:"sha"`
		URL string `json:"url"`
	} `json:"commit"`
	NodeID string `json:"node_id"`
}

type GithubTags added in v0.2.7

type GithubTags []GithubTag

func (GithubTags) GetLatest added in v0.2.7

func (ght GithubTags) GetLatest() *GithubTag

type Tool

type Tool struct {
	Name            string   `yaml:"name,omitempty"`
	Github          string   `yaml:"github,omitempty"`
	Google          string   `yaml:"google,omitempty"`
	DownloadURL     string   `yaml:"downloadURL,omitempty"`
	Version         string   `yaml:"version,omitempty"`
	Additional      []string `yaml:"additional,omitempty"`
	Check           string   `yaml:"check,omitempty"`
	SkipUpx         bool     `yaml:"skipUpx,omitempty"`
	CouldNotBeFound bool     `yaml:"-"`
	Invalid         bool     `yaml:"-"`
}

type ToolVersion added in v0.0.2

type ToolVersion struct {
	Name    string `yaml:"name"`
	Version string `yaml:"version"`
}

type Toolbox

type Toolbox struct {
	Tools            map[string]*Tool     `yaml:"tools,omitempty"`
	Target           string               `yaml:"target,omitempty"`
	Upx              bool                 `yaml:"upx,omitempty"`
	CreateTarget     *bool                `yaml:"createTarget,omitempty"`
	Aliases          *map[string][]string `yaml:"aliases,omitempty"`
	ExcludedSuffixes []string             `yaml:"excludedSuffixes,omitempty"`
}

func (*Toolbox) GetTools added in v0.0.2

func (t *Toolbox) GetTools() []*Tool

func (*Toolbox) HasGithubTools added in v0.4.5

func (t *Toolbox) HasGithubTools() bool

func (*Toolbox) Versions added in v0.0.2

func (t *Toolbox) Versions() *Versions

type Versions added in v0.0.2

type Versions struct {
	Versions map[string]string `yaml:"versions"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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