lifecycle

package
v0.50.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadBinary

func DownloadBinary(url, 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(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