utils

package
v0.0.0-...-3388463 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadLastNLinesAsString

func ReadLastNLinesAsString(filePath string, n int) (string, error)

ReadLastNLinesAsString read the last N lines of a file as string

func RunContainerdCmd

func RunContainerdCmd(ctx context.Context, name string, arg ...string) error

func SetupPprof

func SetupPprof(debug bool, debugPort int)

Types

type Context

type Context struct {
	StorageDir  string
	RuntimeType string
	Store       store.Store
}

func (*Context) CheckRuntime

func (c *Context) CheckRuntime() error

func (*Context) InitBeforeRunCommand

func (c *Context) InitBeforeRunCommand(cmd *cobra.Command, args []string)

Jump to

Keyboard shortcuts

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