util

package
v1.32.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverContainerfile

func DiscoverContainerfile(path string) (foundCtrFile string, err error)

DiscoverContainerfile tries to find a Containerfile or a Dockerfile within the provided `path`.

func MirrorToTempFileIfPathIsDescriptor

func MirrorToTempFileIfPathIsDescriptor(file string) (string, bool)

Mirrors path to a tmpfile if path points to a file descriptor instead of actual file on filesystem reason: operations with file descriptors are can lead to edge cases where content on FD is not in a consumable state after first consumption. returns path as string and bool to confirm if temp file was created and needs to be cleaned up.

func ParseUlimit added in v1.32.0

func ParseUlimit(ulimit string) (*units.Ulimit, error)

func ReadKernelVersion added in v1.27.0

func ReadKernelVersion() (string, error)

func ReadUptime added in v1.27.0

func ReadUptime() (time.Duration, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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