Documentation ¶
Index ¶
- func ServiceHash(o types.ServiceConfig) (string, error)
- type BuildOptions
- type Composer
- func (c *Composer) Build(ctx context.Context, bo BuildOptions) error
- func (c *Composer) Config(ctx context.Context, w io.Writer, co ConfigOptions) error
- func (c *Composer) Containers(ctx context.Context, services ...string) ([]containerd.Container, error)
- func (c *Composer) Down(ctx context.Context, downOptions DownOptions) error
- func (c *Composer) Kill(ctx context.Context, opts KillOptions, services []string) error
- func (c *Composer) Logs(ctx context.Context, lo LogsOptions, services []string) error
- func (c *Composer) Pull(ctx context.Context, po PullOptions, services []string) error
- func (c *Composer) Push(ctx context.Context, po PushOptions, services []string) error
- func (c *Composer) ServiceNames(services ...string) ([]string, error)
- func (c *Composer) Services(ctx context.Context) ([]*serviceparser.Service, error)
- func (c *Composer) Up(ctx context.Context, uo UpOptions, services []string) error
- type ConfigOptions
- type DownOptions
- type KillOptions
- type LogsOptions
- type Options
- type PullOptions
- type PushOptions
- type UpOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServiceHash ¶ added in v0.16.0
func ServiceHash(o types.ServiceConfig) (string, error)
ServiceHash is from https://github.com/docker/compose/blob/v2.2.2/pkg/compose/hash.go#L28-L38
Types ¶
type BuildOptions ¶
type Composer ¶
type Composer struct { Options // contains filtered or unexported fields }
func (*Composer) Containers ¶ added in v0.15.0
func (*Composer) ServiceNames ¶ added in v0.15.0
type ConfigOptions ¶ added in v0.16.0
type DownOptions ¶
type DownOptions struct {
RemoveVolumes bool
}
type KillOptions ¶ added in v0.16.0
type KillOptions struct {
Signal string
}
type LogsOptions ¶
type Options ¶
type Options struct { Project string // empty for default ProjectDirectory string ConfigPaths []string EnvFile string 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, quiet bool) 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 {
Quiet bool
}
type PushOptions ¶ added in v0.14.0
type PushOptions struct { }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.