Documentation
¶
Index ¶
- func Find(pwd string) string
- func LoadPorts(file string) ([]int, error)
- type Compose
- 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 ¶
Types ¶
type Compose ¶
type Compose struct {
// contains filtered or unexported fields
}
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.