compose

package
v2.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 46 Imported by: 25

Documentation

Index

Constants

View Source
const PluginName = "compose"

PluginName is the name of the plugin

Variables

This section is empty.

Functions

func Adapt

func Adapt(fn Command) func(cmd *cobra.Command, args []string) error

Adapt a Command func to cobra library

func AdaptCmd

func AdaptCmd(fn CobraCommand) func(cmd *cobra.Command, args []string) error

AdaptCmd adapt a CobraCommand func to cobra library

func RootCommand

func RootCommand(dockerCli command.Cli, backend api.Service) *cobra.Command

RootCommand returns the compose command with its child commands

func RunningAsStandalone added in v2.0.1

func RunningAsStandalone() bool

RunningAsStandalone detects when running as a standalone program

Types

type CobraCommand

type CobraCommand func(context.Context, *cobra.Command, []string) error

CobraCommand defines a cobra command function

type Command

type Command func(context.Context, []string) error

Command defines a compose CLI command as a func with args

type ProjectFunc

type ProjectFunc func(ctx context.Context, project *types.Project) error

ProjectFunc does stuff within a types.Project

type ProjectServicesFunc

type ProjectServicesFunc func(ctx context.Context, project *types.Project, services []string) error

ProjectServicesFunc does stuff within a types.Project and a selection of services

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL