Documentation ¶
Index ¶
- Variables
- func CreateOverlay(datasource *models.DataSource) (string, error)
- func FindNetworkByName(name string) (string, error)
- func ListDataSources() []models.DataSource
- func ListOverlays() ([]types.NetworkResource, error)
- func RemoveApp(app *models.Application) error
- func RemoveDataSource(datasource *models.DataSource) error
- func RemoveOverlay(datasource *models.DataSource) error
- func RemoveService(service SwarmService) error
- func RetrievePort(serviceID string) (uint32, error)
- func RetrieveServiceID(name string) (string, error)
- func RetrieveServiceVersion(serviceID string) (*swarm.Version, error)
- func UpdateAppService(app *models.Application) error
- func UpdateDataSource(dataSource *models.DataSource) error
- func UpdateService(service SwarmService, portConfig []swarm.PortConfig, ...) error
- type Container
- type SwarmService
- type UpstreamConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNetworkJoined = errors.New("Had joined the network")
View Source
var ErrNetworkNoUnlinkable = errors.New("No network could be unlinking")
View Source
var ErrNetworkNotFound = errors.New("Network not found")
View Source
var ErrServiceNotFound = errors.New("Not found service")
Functions ¶
func CreateOverlay ¶
func CreateOverlay(datasource *models.DataSource) (string, error)
func FindNetworkByName ¶
func ListDataSources ¶
func ListDataSources() []models.DataSource
func ListOverlays ¶
func ListOverlays() ([]types.NetworkResource, error)
func RemoveApp ¶
func RemoveApp(app *models.Application) error
func RemoveDataSource ¶
func RemoveDataSource(datasource *models.DataSource) error
func RemoveOverlay ¶
func RemoveOverlay(datasource *models.DataSource) error
func RemoveService ¶
func RemoveService(service SwarmService) error
func RetrievePort ¶
func RetrieveServiceID ¶
func UpdateAppService ¶
func UpdateAppService(app *models.Application) error
func UpdateDataSource ¶
func UpdateDataSource(dataSource *models.DataSource) error
func UpdateService ¶
func UpdateService(service SwarmService, portConfig []swarm.PortConfig, networkConfig []swarm.NetworkAttachmentConfig, image string, envs []string) error
Types ¶
type Container ¶
type Container struct { State string `json:"state"` Image string `json:"image,omitempty"` VersionTag string `json:"versionTag, omitempty"` CreatedAt string `json:"createdAt"` }
func ListContainers ¶
func ListContainers(service SwarmService) ([]Container, error)
type SwarmService ¶
type UpstreamConfig ¶
type UpstreamConfig struct {
Port uint32 `json:"port"`
}
Serialize to /upstreams/:appName
Click to show internal directories.
Click to hide internal directories.