ops

package
v1.73.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteBinaries

func DeleteBinaries(basedir, binariesDir string, confirm bool) (deleted bool, err error)

func DisplayTarball

func DisplayTarball(tarball downloads.TarballDescription)

func GetRemoteTarball

func GetRemoteTarball(options DownloadsOptions) error

func InitEnvironment

func InitEnvironment(options InitOptions) error

func ProcessBashCompletionEnabling

func ProcessBashCompletionEnabling(useRemote, runIt bool, remoteUrl, completionFile string) error

func RunSandboxQuery added in v1.67.0

func RunSandboxQuery[T comparable](sandboxPath, query string, asSuperUser bool) (interface{}, error)

RunSandboxQuery runs a SQL query in a given sandbox directory

func ShowVersions

func ShowVersions(options VersionOptions) error

func UnpackTarball

func UnpackTarball(options UnpackOptions) error

Types

type DownloadsOptions

type DownloadsOptions struct {
	SandboxBinary     string
	TarballName       string
	TarballUrl        string
	TarballOS         string
	TarballArch       string
	Flavor            string
	TargetServer      string
	Prefix            string
	Version           string
	Newest            bool
	Minimal           bool
	GuessLatest       bool
	Unpack            bool
	Overwrite         bool
	DeleteAfterUnpack bool
	DryRun            bool
	IsShell           bool
	Quiet             bool
	Retries           int64
	VerbosityLevel    int
	ProgressStep      int64
}

type InitOptions

type InitOptions struct {
	SandboxBinary       string
	SandboxHome         string
	DryRun              bool
	SkipDownloads       bool
	SkipTarballDownload bool
	SkipCompletion      bool
}

type UnpackOptions

type UnpackOptions struct {
	SandboxBinary string
	TarballName   string
	TargetServer  string
	Version       string
	Prefix        string
	Flavor        string
	Verbosity     int
	IsShell       bool
	Overwrite     bool
	DryRun        bool
}

type VersionOptions

type VersionOptions struct {
	SandboxBinary string
	Flavor        string
	ByFlavor      bool
}

Jump to

Keyboard shortcuts

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