Documentation
¶
Index ¶
- func Find(pwd string) string
- func LoadExternalNetworks(file string) ([]string, error)
- func LoadPorts(file string) ([]int, error)
- type Compose
- func (c *Compose) AllowedExternalNetworks() error
- func (c *Compose) AllowedPorts() (int, error)
- func (c *Compose) Build(args []string) ([]byte, error)
- func (c *Compose) Down(args []string) ([]byte, error)
- func (c *Compose) Exec(args []string) ([]byte, error)
- func (c *Compose) Logs(args []string) ([]byte, error)
- func (c *Compose) Ps(args []string) ([]byte, error)
- func (c *Compose) Pull(args []string) ([]byte, error)
- func (c *Compose) ReStart(args []string) ([]byte, error)
- func (c *Compose) Start(args []string) ([]byte, error)
- func (c *Compose) Stop(args []string) ([]byte, error)
- func (c *Compose) Up(args []string) ([]byte, error)
- type PortRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadExternalNetworks ¶ added in v0.0.9
mayby make it have an io.reader instead, of just the yaml?
Types ¶
type Compose ¶
type Compose struct {
// contains filtered or unexported fields
}
func (*Compose) AllowedExternalNetworks ¶ added in v0.0.9
AllowedExternalNetworks returns an error if any of the external networks are not allowed.
func (*Compose) AllowedPorts ¶
AllowedPorts checks if ports are allowed in the compose file. It returns the first port that is denied, or 0 if they are all OK. Any other error is reported via the returned error.
Click to show internal directories.
Click to hide internal directories.