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) Pull(ctx context.Context, po PullOptions) error
- func (c *Composer) Push(ctx context.Context, po PushOptions) 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 PullOptions
- type PushOptions
- 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 }
func (*Composer) Pull ¶ added in v0.14.0
func (c *Composer) Pull(ctx context.Context, po PullOptions) error
func (*Composer) Push ¶ added in v0.14.0
func (c *Composer) Push(ctx context.Context, po PushOptions) error
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
type PullOptions ¶ added in v0.14.0
type PullOptions struct { }
type PushOptions ¶ added in v0.14.0
type PushOptions struct { }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.