installutils

package
v0.414.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

README

instalutils package

Can be used to install binaries from various sources.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(options *InstallOptions) (err error)

func MustInstall

func MustInstall(options *InstallOptions)

Types

type InstallOptions

type InstallOptions struct {
	SrcPath     string
	InstallPath string
	Mode        string
	Verbose     bool
}

func NewInstallOptions

func NewInstallOptions() (i *InstallOptions)

func (*InstallOptions) GetInstallPath

func (i *InstallOptions) GetInstallPath() (installPath string, err error)

func (*InstallOptions) GetMode

func (i *InstallOptions) GetMode() (mode string, err error)

func (*InstallOptions) GetSrcPath

func (i *InstallOptions) GetSrcPath() (srcPath string, err error)

func (*InstallOptions) GetVerbose

func (i *InstallOptions) GetVerbose() (verbose bool)

func (*InstallOptions) IsModeSet

func (i *InstallOptions) IsModeSet() (isSet bool)

func (*InstallOptions) IsSourcePathSet

func (i *InstallOptions) IsSourcePathSet() (isSet bool)

func (*InstallOptions) MustGetInstallPath

func (i *InstallOptions) MustGetInstallPath() (installPath string)

func (*InstallOptions) MustGetMode

func (i *InstallOptions) MustGetMode() (mode string)

func (*InstallOptions) MustGetSrcPath

func (i *InstallOptions) MustGetSrcPath() (srcPath string)

func (*InstallOptions) MustSetInstallPath

func (i *InstallOptions) MustSetInstallPath(installPath string)

func (*InstallOptions) MustSetMode

func (i *InstallOptions) MustSetMode(mode string)

func (*InstallOptions) MustSetSrcPath

func (i *InstallOptions) MustSetSrcPath(srcPath string)

func (*InstallOptions) SetInstallPath

func (i *InstallOptions) SetInstallPath(installPath string) (err error)

func (*InstallOptions) SetMode

func (i *InstallOptions) SetMode(mode string) (err error)

func (*InstallOptions) SetSrcPath

func (i *InstallOptions) SetSrcPath(srcPath string) (err error)

func (*InstallOptions) SetVerbose

func (i *InstallOptions) SetVerbose(verbose bool)

Jump to

Keyboard shortcuts

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