Documentation ¶
Index ¶
- Constants
- func CalculateChecksum(filePath string) ([]byte, error)
- func ConcatenateNamespaceAndName(namespace string, name string) string
- func GetTimeoutContext(timeout time.Duration) (context.Context, context.CancelFunc)
- func PrintFlags(flags *pflag.FlagSet)
- func SetupSignalHandler() <-chan struct{}
- func SplitIntoNamespaceAndName(namespaceAndName string) (string, string, error)
- type ProcFs
- type ProcFsOperations
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func CalculateChecksum ¶
func GetTimeoutContext ¶
func PrintFlags ¶
func SetupSignalHandler ¶
func SetupSignalHandler() <-chan struct{}
Types ¶
type ProcFs ¶
type ProcFs struct {
// contains filtered or unexported fields
}
func (*ProcFs) GetCurrentWorkingDirectory ¶
func (*ProcFs) GetProcFsRootPath ¶
type ProcFsOperations ¶
type ProcFsOperations interface { GetProcFsRootPath() string GetCommandPath(pid int) (string, error) GetMountNamespace(pid int) (string, error) GetCommandLine(pid int) ([]byte, error) GetCurrentWorkingDirectory(pid int) (string, error) }
func NewProcFs ¶
func NewProcFs() ProcFsOperations
Click to show internal directories.
Click to hide internal directories.