Documentation
¶
Index ¶
- Variables
- func PrintSuccessMessageDockerInstall(host, password string, log log.Logger)
- func WrapCommandError(stdout []byte, err error) error
- type ContainerDetails
- type ContainerDetailsConfig
- type ContainerDetailsState
- type ContainerNetworkSettings
- type ContainerPort
- type Error
- type LoftStarter
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMissingContainer = errors.New("missing container")
ErrLoftNotReachable = errors.New("product is not reachable")
)
Functions ¶
func PrintSuccessMessageDockerInstall ¶
func PrintSuccessMessageDockerInstall(host, password string, log log.Logger)
func WrapCommandError ¶
func WrapCommandError(stdout []byte, err error) error
Types ¶
type ContainerDetails ¶
type ContainerDetails struct {
NetworkSettings ContainerNetworkSettings `json:"NetworkSettings,omitempty"`
State ContainerDetailsState `json:"State,omitempty"`
ID string `json:"ID,omitempty"`
Created string `json:"Created,omitempty"`
Config ContainerDetailsConfig `json:"Config,omitempty"`
}
type ContainerDetailsConfig ¶
type ContainerDetailsConfig struct {
Labels map[string]string `json:"Labels,omitempty"`
Image string `json:"Image,omitempty"`
User string `json:"User,omitempty"`
Env []string `json:"Env,omitempty"`
}
type ContainerDetailsState ¶
type ContainerDetailsState struct {
Status string `json:"Status,omitempty"`
StartedAt string `json:"StartedAt,omitempty"`
}
type ContainerNetworkSettings ¶
type ContainerNetworkSettings struct {
Ports map[string][]ContainerPort `json:"ports,omitempty"`
}
type ContainerPort ¶
type ContainerPort struct {
HostIP string `json:"HostIp,omitempty"`
HostPort string `json:"HostPort,omitempty"`
}
type LoftStarter ¶
type LoftStarter struct {
Options
}
func NewLoftStarter ¶
func NewLoftStarter(options Options) *LoftStarter
type Options ¶
type Options struct {
*flags.GlobalFlags
// Will be filled later
KubeClient kubernetes.Interface
Log log.Logger
RestConfig *rest.Config
Context string
Values string
LocalPort string
Version string
DockerImage string
Namespace string
Password string
Host string
Email string
ChartRepo string
Product string
ChartName string
ChartPath string
DockerArgs []string
Reset bool
NoPortForwarding bool
NoTunnel bool
NoLogin bool
NoWait bool
Upgrade bool
ReuseValues bool
Docker bool
}
Options holds the cmd flags
Click to show internal directories.
Click to hide internal directories.