lifecycle

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 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, 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.

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