Documentation
¶
Index ¶
- Constants
- Variables
- func FormatError(err error) error
- func FormatErrorCode(code, message string) error
- func FormatPS(containers []ContainerJSON) error
- func FormatProjectList(projects []ProjectJSON) error
- func IsJSONMode() bool
- func PrintError(code, message string) error
- func PrintJSON(data interface{}) error
- func PrintSuccess(message string) error
- func SetJSONMode(enabled bool)
- type ContainerJSON
- type DownData
- type DryRunBuild
- type DryRunData
- type DryRunFile
- type DryRunImage
- type Envelope
- type ErrorEnvelope
- type ErrorInfo
- type LifecycleData
- type LogEntryJSON
- type LogsData
- type PSData
- type PortJSON
- type ProjectJSON
- type ProjectListData
- type ResourceJSON
- type ResourcesJSON
- type ServiceJSON
- type UnitFileJSON
- type UpData
- type ViewData
Constants ¶
View Source
const APIVersion = "1.0"
Variables ¶
View Source
var JSONMode bool
Functions ¶
func FormatError ¶
func FormatErrorCode ¶
func FormatPS ¶
func FormatPS(containers []ContainerJSON) error
func FormatProjectList ¶
func FormatProjectList(projects []ProjectJSON) error
func IsJSONMode ¶
func IsJSONMode() bool
func PrintError ¶
func PrintSuccess ¶
func SetJSONMode ¶
func SetJSONMode(enabled bool)
Types ¶
type ContainerJSON ¶
type ContainerJSON struct {
Name string `json:"name"`
Image string `json:"image"`
Command string `json:"command"`
Service string `json:"service"`
State string `json:"state"`
Status string `json:"status"`
Ports []PortJSON `json:"ports"`
ExposedPorts []string `json:"exposed_ports,omitempty"`
Networks []string `json:"networks,omitempty"`
Mounts []string `json:"mounts,omitempty"`
CreatedAt time.Time `json:"created_at"`
ExitedAt time.Time `json:"exited_at,omitempty"`
ExitCode int `json:"exit_code,omitempty"`
DBusActive string `json:"dbus_active,omitempty"`
DBusSub string `json:"dbus_sub,omitempty"`
}
type DryRunBuild ¶ added in v0.4.2
type DryRunData ¶ added in v0.4.2
type DryRunData struct {
Project string `json:"project"`
TargetDir string `json:"target_dir"`
PullStrategy string `json:"pull_strategy"`
Images []DryRunImage `json:"images,omitempty"`
Builds []DryRunBuild `json:"builds,omitempty"`
Files []DryRunFile `json:"files,omitempty"`
HasChanges bool `json:"has_changes"`
}
type DryRunFile ¶ added in v0.4.2
type DryRunImage ¶ added in v0.4.2
type Envelope ¶
type Envelope struct {
Version string `json:"version"`
Data interface{} `json:"data"`
}
type ErrorEnvelope ¶
type LifecycleData ¶ added in v0.4.1
type LogEntryJSON ¶ added in v0.4.1
type LogsData ¶ added in v0.4.1
type LogsData struct {
Project string `json:"project"`
Entries []LogEntryJSON `json:"entries"`
}
type PSData ¶
type PSData struct {
Containers []ContainerJSON `json:"containers"`
}
type ProjectJSON ¶
type ProjectListData ¶
type ProjectListData struct {
Projects []ProjectJSON `json:"projects"`
}
type ResourceJSON ¶ added in v0.4.1
type ResourcesJSON ¶
type ServiceJSON ¶ added in v0.4.1
type UnitFileJSON ¶ added in v0.4.1
type ViewData ¶ added in v0.4.1
type ViewData struct {
Project string `json:"project"`
SourcePath string `json:"source_path"`
Status string `json:"status"`
Services []ServiceJSON `json:"services"`
Resources []ResourceJSON `json:"resources"`
}
Click to show internal directories.
Click to hide internal directories.