clab

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

internal/clab/executor.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunClabCommand

func RunClabCommand(ctx context.Context, username string, args ...string) (stdout string, stderr string, err error)

RunClabCommand executes a clab command directly as the user running the API server.

func SanitizePath

func SanitizePath(relativePath string) (string, error)

SanitizePath prevents path traversal. Returns the cleaned path if valid, otherwise an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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