Documentation
¶
Index ¶
- func AddService(filePath, name, image string, port int) error
- func Init(path, name string) error
- func ListServices(filePath string) ([]string, error)
- func RemoveService(filePath, name string) error
- func SetEnv(filePath, service, key, value string) error
- func UnsetEnv(filePath, service, key string) error
- func Validate(filePath string) error
- func Write(path string, f *File) error
- type File
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddService ¶
func ListServices ¶
func RemoveService ¶
Types ¶
type File ¶
type Service ¶
type Service struct {
Image string `yaml:"image,omitempty" json:"image,omitempty"`
Build string `yaml:"build,omitempty" json:"build,omitempty"`
Ports []string `yaml:"ports,omitempty" json:"ports,omitempty"`
Environment map[string]string `yaml:"environment,omitempty" json:"environment,omitempty"`
Volumes []string `yaml:"volumes,omitempty" json:"volumes,omitempty"`
DependsOn []string `yaml:"depends_on,omitempty" json:"depends_on,omitempty"`
Restart string `yaml:"restart,omitempty" json:"restart,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.