action

package
v0.9.6-beta Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() (string, error)

Types

type Actions

type Actions struct {
	Options  *Options
	Install  *Install
	Download *Download
	// contains filtered or unexported fields
}

func NewActions

func NewActions(opts ...Option) *Actions

type Download

type Download action

func (*Download) Download

func (i *Download) Download(ctx context.Context, sdk, version string) (archive afero.File, err error)

type Generate

type Generate action

type Install

type Install action

Install Provides the Install Action

func (*Install) Install

func (i *Install) Install(ctx context.Context, sdk, version string) (dir string, err error)

type Option

type Option func(options *Options) *Options

func WithFs

func WithFs(fs afero.Fs) Option

func WithLogger

func WithLogger(l logging.Log) Option

func WithPather

func WithPather(pather devctlpath.Pather) Option

func WithSdkmanClient

func WithSdkmanClient(client *sdkman.Client) Option

type Options

type Options struct {
	Fs     afero.Fs
	Pather devctlpath.Pather
	Client *sdkman.Client
	Logger logging.Log
}

Options contains the configuration options for Actions

Jump to

Keyboard shortcuts

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