types

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandTypePull   = "pull"
	CommandTypeSwitch = "switch"
	CommandTypeCaddy  = "caddy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Type string                 `json:"type"`
	Args map[string]interface{} `json:"args"`
}

type ContainerInfo

type ContainerInfo struct {
	Name    string   `json:"name"`
	Status  string   `json:"status"`
	Image   string   `json:"image"`
	Ports   []string `json:"ports"`
	Created string   `json:"created"`
}

type DaemonConfig

type DaemonConfig struct {
	SocketPath      string `json:"socket_path"`
	SocketMode      string `json:"socket_mode"`
	DockerSocket    string `json:"docker_socket"`
	ContainerPrefix string `json:"container_prefix"`
	LogLevel        string `json:"log_level"`
	LogDir          string `json:"log_dir"`
	LogMaxSize      int    `json:"log_max_size"`
	LogMaxBackups   int    `json:"log_max_backups"`
	ConfigPath      string `json:"config_path"`
}

type LoggerConfig

type LoggerConfig struct {
	LogDir      string `json:"log_dir"`
	LogFileName string `json:"log_file_name"`
	MaxFileSize int    `json:"max_file_size"`
	MaxBackups  int    `json:"max_backups"`
}

type Response

type Response struct {
	Success bool        `json:"success"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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