installutils

package
v0.436.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 7 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(ctx context.Context, options *InstallOptions) (err error)

Types

type InstallOptions

type InstallOptions struct {
	SrcPath     string
	InstallPath string
	Mode        string
}

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) 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)

Jump to

Keyboard shortcuts

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