services

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Defaulter

type Defaulter struct {
	Config *models.Config
}

func (Defaulter) Default

func (d Defaulter) Default(version string) error

type Downloader

type Downloader struct {
	Config *models.Config
}

func (Downloader) Download

func (d Downloader) Download(version string) (*models.Sdk, error)

type Installer

type Installer struct {
	Config *models.Config
}

func (Installer) Install

func (i Installer) Install(version string) error

func (Installer) UnpackTarGz

func (i Installer) UnpackTarGz(src, dst string) error

type ListCacher

type ListCacher struct {
	CacheFile string
	TTL       time.Duration
}

func (ListCacher) Get

func (c ListCacher) Get() ([]models.Sdk, error)

func (ListCacher) Save

func (c ListCacher) Save(sdks []models.Sdk) error

type ListFetcher

type ListFetcher struct {
	Config *models.Config
}

func (ListFetcher) Fetch

func (f ListFetcher) Fetch() ([]models.Sdk, error)

func (ListFetcher) FetchAll

func (f ListFetcher) FetchAll() ([]models.Sdk, error)

type PlatformDefaulter

type PlatformDefaulter struct {
	Config *models.Config
}

func (PlatformDefaulter) Set

func (d PlatformDefaulter) Set(version string) error

type Remover

type Remover struct {
	Config *models.Config
}

func (Remover) Remove

func (r Remover) Remove(version string, removeDownloaded, removeInstalled bool) error

type Updater

type Updater struct {
	Config *models.Config
}

func (Updater) Update

func (u Updater) Update() error

Jump to

Keyboard shortcuts

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