cache

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func New

func New(client *github.Client, helper *cmdutils.Helper[*config.Config]) (*Cache, error)

func (*Cache) GetAllReleaseNames added in v0.1.2

func (c *Cache) GetAllReleaseNames() []string

GetAllReleaseNames returns an array of all the release names

func (*Cache) GetChecksum

func (c *Cache) GetChecksum(releaseName string, os string, arch string) string

GetChecksum returns the checksum for the given version, os, and arch

It will return an empty string if the checksum does not exist

func (*Cache) GetLatestReleaseArtifact added in v0.1.2

func (c *Cache) GetLatestReleaseArtifact(os string, arch string) []byte

func (*Cache) GetLatestReleaseName added in v0.1.2

func (c *Cache) GetLatestReleaseName() string

GetLatestReleaseName returns the name of the latest release

func (*Cache) GetReleaseArtifactName added in v0.1.2

func (c *Cache) GetReleaseArtifactName(releaseName string, os string, arch string) string

func (*Cache) ReleaseNameExists added in v0.1.2

func (c *Cache) ReleaseNameExists(releaseName string) bool

ReleaseNameExists returns true if the given release name exists

Jump to

Keyboard shortcuts

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