Documentation ¶
Index ¶
- Variables
- func Download(ctx context.Context, url string, dest io.Writer) error
- func DownloadFile(ctx context.Context, url string, file string) error
- func Exists(p string) bool
- func ExtractVmlinuxFromRPM(ctx context.Context, rpmPath string, vmlinuxPath string) error
- func GetLinks(ctx context.Context, repoURL string) ([]string, error)
- func HasBTFSection(name string) (bool, error)
- func RunCMD(ctx context.Context, cwd string, binary string, args ...string) error
- func RunZypperCMD(ctx context.Context, args ...string) (*bytes.Buffer, error)
- func SudoCMD(binary string, args ...string) (string, []string)
- type ProgressCounter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHasBTF = errors.New("vmlinux has .BTF section")
Functions ¶
func Download ¶
Download downloads a file from a given URL, and writes it to a given destination, which can be a file or a pipe
func ExtractVmlinuxFromRPM ¶
func HasBTFSection ¶
HasBTFSection checks if the given ELF file has a .BTF section.
Types ¶
Click to show internal directories.
Click to hide internal directories.