diskfill

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Percentage Mode   = "PERCENTAGE"
	MBToFill   Mode   = "MB_TO_FILL"
	MBLeft     Mode   = "MB_LEFT"
	AtOnce     Method = "AT_ONCE"
	OverTime   Method = "OVER_TIME"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskFill

type DiskFill struct {
	Noop bool
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, r runc.Runc, sidecar SidecarOpts, opts Opts) (*DiskFill, error)

func (*DiskFill) Args

func (df *DiskFill) Args() []string

func (*DiskFill) Exited

func (df *DiskFill) Exited() (bool, error)

func (*DiskFill) Start

func (df *DiskFill) Start() error

func (*DiskFill) Stop

func (df *DiskFill) Stop() error

type DiskUsage

type DiskUsage struct {
	Capacity  int64
	Used      int64
	Available int64
}

func CalculateDiskUsage

func CalculateDiskUsage(r io.Reader) (DiskUsage, error)

type Method

type Method string

type Mode

type Mode string

type Opts

type Opts struct {
	BlockSize int  // in megabytes
	Size      int  // in megabytes or percentage
	Mode      Mode // PERCENTAGE or MB_TO_FILL or MB_LEFT
	TempPath  string
	Method    Method // AT_ONCE or OVER_TIME
}

type SidecarOpts

type SidecarOpts struct {
	TargetProcess runc.LinuxProcessInfo
	IdSuffix      string
	ImagePath     string
}

Jump to

Keyboard shortcuts

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