devtools

package
v0.0.0-...-d9dc390 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DevCmd = &cobra.Command{
	Use:   "dev",
	Short: "Development tools",
	Long:  "Local development tools for project management",
}

Functions

func GetContainerLogs

func GetContainerLogs(id string) (string, error)

func IsDockerAvailable

func IsDockerAvailable() bool

func RestartContainer

func RestartContainer(id string) error

func StartContainer

func StartContainer(id string) error

func StopContainer

func StopContainer(id string) error

Types

type APIRequest

type APIRequest struct {
	Method  string            `json:"method"`
	URL     string            `json:"url"`
	Headers map[string]string `json:"headers"`
	Body    string            `json:"body"`
}

type APIResponse

type APIResponse struct {
	StatusCode int         `json:"status_code"`
	Status     string      `json:"status"`
	LatencyMs  int64       `json:"latency_ms"`
	Headers    http.Header `json:"headers"`
	Body       string      `json:"body"`
	Formatted  string      `json:"formatted"`
	Err        error       `json:"err"`
}

func ExecuteAPIRequest

func ExecuteAPIRequest(req APIRequest) APIResponse

type Container

type Container struct {
	ID        string `json:"ID"`
	Image     string `json:"Image"`
	Command   string `json:"Command"`
	CreatedAt string `json:"CreatedAt"`
	Status    string `json:"Status"`
	Names     string `json:"Names"`
	State     string `json:"State"`
}

func ListContainers

func ListContainers() ([]Container, error)

Jump to

Keyboard shortcuts

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