deploy

package
v0.7.0-142-g3285c00 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

Types

type DeployOptions

type DeployOptions struct {
	Auth      *config.AuthConfig        `noattribute:"true"`
	Client    kraftcloud.KraftCloud     `noattribute:"true"`
	Env       []string                  `local:"true" long:"env" short:"e" usage:"Environmental variables"`
	FQDN      string                    `local:"true" long:"fqdn" short:"d" usage:"Set the fully qualified domain name for the service"`
	Kraftfile string                    `local:"true" long:"kraftfile" short:"K" usage:"Set the Kraftfile to use"`
	Memory    int64                     `local:"true" long:"memory" short:"M" usage:"Specify the amount of memory to allocate"`
	Metro     string                    `noattribute:"true"`
	Name      string                    `local:"true" long:"name" short:"n" usage:"Name of the deployment"`
	NoStart   bool                      `local:"true" long:"no-start" short:"S" usage:"Do not start the instance after creation"`
	Output    string                    `local:"true" long:"output" short:"o" usage:"Set output format" default:"table"`
	Ports     []string                  `local:"true" long:"port" short:"p" usage:"Specify the port mapping between external to internal"`
	Project   app.Application           `noattribute:"true"`
	Replicas  int                       `local:"true" long:"replicas" short:"R" usage:"Number of replicas of the instance" default:"0"`
	Strategy  packmanager.MergeStrategy `noattribute:"true"`
	SubDomain string                    `local:"true" long:"subdomain" short:"s" usage:"Set the name to use when provisioning a subdomain"`
	Timeout   time.Duration             `local:"true" long:"timeout" usage:"Set the timeout for remote procedure calls"`
	Workdir   string                    `local:"true" long:"workdir" short:"w" usage:"Set an alternative working directory (default is cwd)"`
}

func (*DeployOptions) Pre

func (opts *DeployOptions) Pre(cmd *cobra.Command, _ []string) error

func (*DeployOptions) Run

func (opts *DeployOptions) Run(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

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