Documentation
¶
Index ¶
- func Find(pwd string) string
- type Compose
- func (c *Compose) AllowedExternalNetworks() error
- func (c *Compose) AllowedVolumes() error
- func (c *Compose) Disallow() error
- func (c *Compose) Down(args []string) ([]byte, error)
- func (c *Compose) Exec(args []string) ([]byte, error)
- func (c *Compose) Extension() *Extension
- func (c *Compose) Load(args []string) ([]byte, error)
- func (c *Compose) Login(login string) 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 Extension
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Compose ¶
type Compose struct {
// contains filtered or unexported fields
}
func New ¶
func New(name, user, directory, file, datadirectory string, registries []string, nets, env []string, mount string) *Compose
New returns a pointer to an intialized Compose.
func (*Compose) AllowedExternalNetworks ¶ added in v0.0.9
AllowedExternalNetworks returns an error if any of the external networks are not allowed.
func (*Compose) AllowedVolumes ¶ added in v0.0.41
AllowedVolumes returns an error if any of the volumes reference a directory outside of c.datadir
func (*Compose) Disallow ¶ added in v0.0.32
Disallow parses the compose yaml, and disallows privileged=true, networkmode="host" and ipc="host" It also checks for 'ports' statements as those are _also_ disallowed.
Click to show internal directories.
Click to hide internal directories.