Documentation
¶
Index ¶
- type Image
- type ImageModel
- type ImageModelInterface
- type Service
- type ServiceModel
- func (m *ServiceModel) Delete(id int) error
- func (m *ServiceModel) Get(id int) (*Service, error)
- func (m *ServiceModel) GetAll() ([]*Service, error)
- func (m *ServiceModel) GetByName(name string) (*Service, error)
- func (m *ServiceModel) Insert(name string, hosts []string, image_id int, network string) (int, error)
- func (m *ServiceModel) UpdateContainerId(id int, containerId string) error
- func (m *ServiceModel) UpdateEnvironmentVariables(id int, envVars map[string]string) error
- func (m *ServiceModel) UpdatePort(id int, port string) error
- func (m *ServiceModel) UpdateStatus(id int, status ServiceStatus) error
- type ServiceModelInterface
- type ServiceStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
func (*Image) ParseString ¶
type ImageModel ¶
func (*ImageModel) GetAll ¶
func (m *ImageModel) GetAll() ([]*Image, error)
type ImageModelInterface ¶
type Service ¶
type ServiceModel ¶
func (*ServiceModel) Delete ¶
func (m *ServiceModel) Delete(id int) error
func (*ServiceModel) GetAll ¶
func (m *ServiceModel) GetAll() ([]*Service, error)
func (*ServiceModel) UpdateContainerId ¶
func (m *ServiceModel) UpdateContainerId(id int, containerId string) error
func (*ServiceModel) UpdateEnvironmentVariables ¶ added in v0.2.0
func (m *ServiceModel) UpdateEnvironmentVariables(id int, envVars map[string]string) error
func (*ServiceModel) UpdatePort ¶
func (m *ServiceModel) UpdatePort(id int, port string) error
func (*ServiceModel) UpdateStatus ¶
func (m *ServiceModel) UpdateStatus(id int, status ServiceStatus) error
type ServiceModelInterface ¶
type ServiceModelInterface interface {
Insert(name string, hosts []string, image int, network string) (int, error)
Get(id int) (*Service, error)
GetAll() ([]*Service, error)
GetByName(name string) (*Service, error)
UpdateStatus(id int, status ServiceStatus) error
UpdateContainerId(id int, containerId string) error
UpdatePort(id int, port string) error
UpdateEnvironmentVariables(id int, envVars map[string]string) error
Delete(id int) error
}
type ServiceStatus ¶
type ServiceStatus string
const ( PULLING ServiceStatus = "PULLING" CREATED ServiceStatus = "CREATED" RUNNING ServiceStatus = "RUNNING" STOPPED ServiceStatus = "STOPPED" ERROR ServiceStatus = "ERROR" )
Click to show internal directories.
Click to hide internal directories.