lifecycle

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadBinary

func DownloadBinary(sourceURL, destDir, destFile string, forceRedownload bool, logger *zap.Logger) (string, error)

DownloadBinary downloads a file from the given URL into the specified path this also marks it executable and returns its full path.

If forceRedownload is true, any existing cached binary is removed before downloading.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func RunBinary

func RunBinary(ctx context.Context, execPath string, args []string) (*Command, error)

func (*Command) GracefulStop

func (c *Command) GracefulStop(period time.Duration) error

func (*Command) IsRunning

func (c *Command) IsRunning() bool

Jump to

Keyboard shortcuts

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