Documentation
¶
Index ¶
- func CheckForNewVersion(localVersion, remoteVersion string) string
- func CheckVersionPeriodically(c *Config) (string, error)
- func DockerInit(cc *ContainerEngineConfig)
- func NewDockerConfig(cc *ContainerEngineConfig) *docker.Config
- func ReadUserInput(prompt string) string
- type AdminConfig
- type ArchVersion
- type BuildConfig
- type Config
- func (c *Config) GetBackendURL() string
- func (config *Config) GetStorageDir() string
- func (config *Config) GetToken() (string, error)
- func (c *Config) GetVersion() string
- func (config *Config) LoadConfig() (*Config, error)
- func (config *Config) SaveConfig() error
- func (c *Config) SetToken(token string)
- type ContainerEngineConfig
- type CurrentVersion
- type DeployPayload
- type DeployResponse
- type DeploymentError
- type GeneralConfig
- type HttpConfig
- type Payload
- type PingPayload
- type PushPayload
- type PushResponse
- type RequestPayload
- type TraefikConfig
- type VersionInfo
- type VersionsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForNewVersion ¶
func DockerInit ¶
func DockerInit(cc *ContainerEngineConfig)
func NewDockerConfig ¶
func NewDockerConfig(cc *ContainerEngineConfig) *docker.Config
NewDockerConfig creates and returns a new Docker client configuration
func ReadUserInput ¶
ReadUserInput reads a string input from the user with a prompt.
Types ¶
type AdminConfig ¶
type AdminConfig struct {
Path string `yaml:"path"`
}
type ArchVersion ¶
type ArchVersion struct {
Name string `json:"name"`
}
type BuildConfig ¶
type BuildConfig struct { RunEnv string `yaml:"-"` // come from env BuildVersion string `yaml:"-"` // come from build ldflags BuildCommit string `yaml:"-"` // come from build ldflags BuildDate string `yaml:"-"` // come from build ldflags ProxyURL string `yaml:"-"` }
func (*BuildConfig) GetRunEnv ¶
func (config *BuildConfig) GetRunEnv() string
GetRunEnv returns the run environment
type Config ¶
type Config struct { General GeneralConfig `yaml:"General"` Http HttpConfig `yaml:"Http"` Admin AdminConfig `yaml:"Admin"` ContainerEngine ContainerEngineConfig `yaml:"ContainerEngine"` Traefik TraefikConfig `yaml:"Traefik"` Build BuildConfig `yaml:"-"` }
func (*Config) GetBackendURL ¶
func (*Config) LoadConfig ¶
func (*Config) SaveConfig ¶
type ContainerEngineConfig ¶
type CurrentVersion ¶
type CurrentVersion struct { Version string `json:"version"` // contains filtered or unexported fields }
func GetCurrentBuildVersionInfo ¶
func GetCurrentBuildVersionInfo(c *Config) CurrentVersion
type DeployPayload ¶
type DeployPayload struct { Port string `json:"port"` TargetDomain string `json:"targetdomain"` ImageName string `json:"imagename"` ImageID string `json:"imageid"` Data io.ReadCloser }
func (DeployPayload) GetType ¶
func (p DeployPayload) GetType() string
type DeployResponse ¶
type DeploymentError ¶
type DeploymentError struct { StatusCode int `json:"status"` Message string `json:"message"` RawResponse string `json:"raw_response"` }
func (*DeploymentError) Error ¶
func (e *DeploymentError) Error() string
type GeneralConfig ¶
type HttpConfig ¶
type HttpConfig struct { Port string `yaml:"port"` Domain string `yaml:"domain"` SubDomain string `yaml:"subDomain"` BackendURL string `yaml:"backendURL"` Https bool `yaml:"https"` }
func (*HttpConfig) FullDomain ¶
func (c *HttpConfig) FullDomain() string
func (*HttpConfig) Protocol ¶
func (c *HttpConfig) Protocol() string
type PingPayload ¶
type PingPayload struct {
Message string `json:"message"`
}
func NewPingPayload ¶
func NewPingPayload(data map[string]interface{}) (PingPayload, error)
func (PingPayload) GetType ¶
func (p PingPayload) GetType() string
type PushPayload ¶
type PushPayload struct { ImageName string `json:"imagename"` ImageID string `json:"imageid"` Data io.ReadCloser }
func (PushPayload) GetType ¶
func (p PushPayload) GetType() string
type PushResponse ¶
type RequestPayload ¶
func (*RequestPayload) UnmarshalJSON ¶
func (p *RequestPayload) UnmarshalJSON(data []byte) error
type TraefikConfig ¶
type VersionInfo ¶
type VersionInfo struct {
Name string `json:"name"`
}
type VersionsResponse ¶
Click to show internal directories.
Click to hide internal directories.