package
0.0.0-20200322034917-7a465cb38967
Repository: https://github.com/wuka1/cli.git
Documentation: pkg.go.dev
# Functions
AddNamespaceFlag adds the namespace flag to the given flag set.
GetStacks lists the kubernetes stacks.
NewFactory creates a kubernetes client factory.
NewOptions returns an Options initialized with command line flags.
NewStackConverter returns a converter from types.Config (compose) to the specified stack version or error out if the version is not supported or existent.
RunDeploy is the kubernetes implementation of docker stack deploy.
RunPS is the kubernetes implementation of docker stack ps.
RunRemove is the kubernetes implementation of docker stack remove.
RunServices is the kubernetes implementation of docker stack services.
WrapCli wraps command.Cli with kubernetes specifics.
# Structs
Factory is the kubernetes client factory.
KubeCli holds kubernetes specifics (client, namespace) with the command.Cli.
Options contains resolved parameters to initialize kubernetes clients.
Stack is the main type used by stack commands so they remain independent from kubernetes compose component version.
# Interfaces
StackClient talks to a kubernetes compose component.
StackConverter converts a compose types.Config to a Stack.