Documentation ¶
Index ¶
- Constants
- Variables
- func CopyDetachable(dst io.Writer, src io.Reader, keys []byte) (written int64, err error)
- func FilterID(id string, filters []string) bool
- func GetRuntimeDir() (string, error)
- func PackageVersion(program string) string
- func ProgramVersion(program string) (string, error)
- func ProgramVersionDnsname(program string) (string, error)
- func StringInSlice(s string, sl []string) bool
- func StringMatchRegexSlice(s string, re []string) bool
- func WaitForFile(path string, chWait chan error, timeout time.Duration) (bool, error)
Constants ¶
const (
UnknownPackage = "Unknown"
)
Variables ¶
var ErrDetach = errors.New("detached from container")
ErrDetach indicates that an attach session was manually detached by the user.
Functions ¶
func CopyDetachable ¶ added in v0.49.0
CopyDetachable is similar to io.Copy but support a detach key sequence to break out.
func FilterID ¶ added in v0.54.0
FilterID is a function used to compare an id against a set of ids, if the input is hex we check if the prefix matches. Otherwise we assume it is a regex and try to match that. see https://github.com/containers/podman/issues/18471 for why we do this
func GetRuntimeDir ¶
GetRuntimeDir returns the runtime directory
func PackageVersion ¶ added in v0.54.0
Note: This function is copied from containers/podman libpod/util.go Please see https://github.com/containers/common/pull/1460
func ProgramVersion ¶ added in v0.54.0
Note: This function is copied from containers/podman libpod/util.go Please see https://github.com/containers/common/pull/1460
func ProgramVersionDnsname ¶ added in v0.54.0
func StringInSlice ¶
StringInSlice determines if a string is in a string slice, returns bool
func StringMatchRegexSlice ¶
StringMatchRegexSlice determines if a given string matches one of the given regexes, returns bool
Types ¶
This section is empty.