types

package
v0.0.0-...-ef44059 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstallOptions

type InstallOptions struct {
	Name                   string
	Executable             string
	From                   string
	FromGithub             bool
	RemovePreviousVersions bool
	DoNotFilter            bool
	Silent                 bool
	UpdateInplace          bool
	SelectFirst            bool
}

func (InstallOptions) ToRemoveOptions

func (options InstallOptions) ToRemoveOptions() RemoveOptions

type Options

type Options struct {
	Name              string
	From              string
	Executable        string
	Force             bool
	SelectDefault     bool
	Integrate         bool
	DoNotFilter       bool
	FromGithub        bool
	Silent            bool
	UseAppImageUpdate bool
	ForceRemove       bool
}

type RemoveOptions

type RemoveOptions struct {
	Executable string

	// optional for inplace updates
	NewFilepath   string
	RemoveInPlace bool
}

type ZapDlAsset

type ZapDlAsset struct {
	Name     string `json:"name"`
	Download string `json:"download"`
	Size     string `size:"size"`
}

func (ZapDlAsset) GetBaseName

func (asset ZapDlAsset) GetBaseName() string

type ZapIndex

type ZapIndex struct {
	Id         string      `json:"id"`
	Name       string      `json:"name"`
	Image      string      `json:"image"`
	Maintainer string      `json:"maintainer"`
	Summary    string      `json:"summary"`
	Links      []ZapSource `json:"links"`
}

ZapIndex is used to marshal the index.min.json

type ZapRelease

type ZapRelease struct {
	Roll        int
	Id          string                `json:"id"`
	Author      string                `json:"author"`
	PreRelease  bool                  `json:"prerelease"`
	Releases    string                `json:"releases"`
	Assets      map[string]ZapDlAsset `json:"assets"`
	Tag         string                `json:"tag"`
	PublishedAt string                `json:"published_at"`
}

type ZapReleases

type ZapReleases struct {
	Releases map[int]ZapRelease
	Author   string
	Source   ZapSource
}

func (ZapReleases) GetAssetsFromTag

func (r ZapReleases) GetAssetsFromTag(tag string) (map[string]ZapDlAsset, error)

func (ZapReleases) GetLatestRelease

func (r ZapReleases) GetLatestRelease() string

func (ZapReleases) GetReleasesArray

func (r ZapReleases) GetReleasesArray() []string

func (ZapReleases) SortByReleaseDate

func (r ZapReleases) SortByReleaseDate(i, j int) bool

type ZapSource

type ZapSource struct {
	Type string
	Url  string
}

Jump to

Keyboard shortcuts

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