Documentation
¶
Index ¶
- type BuildOptions
- type Composer
- func (c *Composer) Build(ctx context.Context, bo BuildOptions) error
- func (c *Composer) Down(ctx context.Context, downOptions DownOptions) error
- func (c *Composer) Logs(ctx context.Context, lo LogsOptions) error
- func (c *Composer) Services(ctx context.Context) ([]*serviceparser.Service, error)
- func (c *Composer) Up(ctx context.Context, uo UpOptions, services []string) error
- type DownOptions
- type LogsOptions
- type Options
- type UpOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildOptions ¶
type Composer ¶
type Composer struct { Options // contains filtered or unexported fields }
type DownOptions ¶
type DownOptions struct {
RemoveVolumes bool
}
type LogsOptions ¶
type Options ¶
type Options struct { //TODO Specifying multiple Compose files ProjectOptions composecli.ProjectOptions Project string // empty for default NerdctlCmd string NerdctlArgs []string NetworkExists func(string) (bool, error) VolumeExists func(string) (bool, error) ImageExists func(ctx context.Context, imageName string) (bool, error) EnsureImage func(ctx context.Context, imageName, pullMode, platform string) error DebugPrintFull bool // full debug print, may leak secret env var to logs }
Options groups the command line options recommended for a Compose implementation (ProjectOptions) and extra options for nerdctl
Source Files
¶
Click to show internal directories.
Click to hide internal directories.