cli

package
v0.9.2-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 85 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxLength = 1024 * 1024
)

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

func NewAll

func NewAll(c CommandContext) *cobra.Command

func NewApiServer

func NewApiServer(c CommandContext) *cobra.Command

func NewBuild

func NewBuild(c CommandContext) *cobra.Command

func NewBuildServer

func NewBuildServer(c CommandContext) *cobra.Command

func NewCheck

func NewCheck(c CommandContext) *cobra.Command

func NewComputeClasses

func NewComputeClasses(c CommandContext) *cobra.Command

func NewContainer

func NewContainer(c CommandContext) *cobra.Command

func NewContainerDelete

func NewContainerDelete(c CommandContext) *cobra.Command

func NewController

func NewController(c CommandContext) *cobra.Command

func NewCredential

func NewCredential(c CommandContext) *cobra.Command

func NewCredentialLogin

func NewCredentialLogin(root bool, c CommandContext) *cobra.Command

func NewCredentialLogout

func NewCredentialLogout(root bool, c CommandContext) *cobra.Command

func NewDashboard

func NewDashboard(c CommandContext) *cobra.Command

func NewDev

func NewDev(c CommandContext) *cobra.Command

func NewEvent

func NewEvent(c CommandContext) *cobra.Command

func NewExec

func NewExec(c CommandContext) *cobra.Command

func NewFmt

func NewFmt(_ CommandContext) *cobra.Command

func NewImage

func NewImage(c CommandContext) *cobra.Command

func NewImageCopy

func NewImageCopy(c CommandContext) *cobra.Command

func NewImageDelete

func NewImageDelete(c CommandContext) *cobra.Command

func NewImageDetails

func NewImageDetails(c CommandContext) *cobra.Command

func NewImageSign

func NewImageSign(c CommandContext) *cobra.Command

func NewImageVerify

func NewImageVerify(c CommandContext) *cobra.Command

func NewInfo

func NewInfo(c CommandContext) *cobra.Command

func NewInstall

func NewInstall(c CommandContext) *cobra.Command

func NewJob

func NewJob(c CommandContext) *cobra.Command

func NewJobRestart

func NewJobRestart(c CommandContext) *cobra.Command

func NewKubectl

func NewKubectl(c CommandContext) *cobra.Command

func NewLogs

func NewLogs(c CommandContext) *cobra.Command

func NewOfferings

func NewOfferings(c CommandContext) *cobra.Command

func NewPortForward

func NewPortForward(c CommandContext) *cobra.Command

func NewProject

func NewProject(c CommandContext) *cobra.Command

func NewProjectCreate

func NewProjectCreate(c CommandContext) *cobra.Command

func NewProjectRm

func NewProjectRm(c CommandContext) *cobra.Command

func NewProjectUpdate

func NewProjectUpdate(c CommandContext) *cobra.Command

func NewProjectUse

func NewProjectUse(c CommandContext) *cobra.Command

func NewPs

func NewPs(c CommandContext) *cobra.Command

func NewPull

func NewPull(c CommandContext) *cobra.Command

func NewPush

func NewPush(c CommandContext) *cobra.Command

func NewRegions

func NewRegions(c CommandContext) *cobra.Command

func NewRender

func NewRender(c CommandContext) *cobra.Command

func NewRm

func NewRm(c CommandContext) *cobra.Command

func NewRun

func NewRun(c CommandContext) *cobra.Command

func NewSecret

func NewSecret(c CommandContext) *cobra.Command

func NewSecretCreate

func NewSecretCreate(c CommandContext) *cobra.Command

func NewSecretDelete

func NewSecretDelete(c CommandContext) *cobra.Command

func NewSecretEncrypt

func NewSecretEncrypt(c CommandContext) *cobra.Command

func NewSecretReveal

func NewSecretReveal(c CommandContext) *cobra.Command

func NewStart

func NewStart(c CommandContext) *cobra.Command

func NewStop

func NewStop(c CommandContext) *cobra.Command

func NewTag

func NewTag(c CommandContext) *cobra.Command

func NewUninstall

func NewUninstall(c CommandContext) *cobra.Command

func NewUpdate

func NewUpdate(c CommandContext) *cobra.Command

func NewVersion

func NewVersion(c CommandContext) *cobra.Command

func NewVolume

func NewVolume(c CommandContext) *cobra.Command

func NewVolumeClasses

func NewVolumeClasses(c CommandContext) *cobra.Command

func NewVolumeDelete

func NewVolumeDelete(c CommandContext) *cobra.Command

func NewWait

func NewWait(c CommandContext) *cobra.Command

func RunAndHandleError

func RunAndHandleError(ctx context.Context, cmd *cobra.Command)

RunAndHandleError will execute the command and then print the error message if one has occurred. It will also call os.Exit with 0 or 1. This function never returns

Types

type APIServer

type APIServer struct {
	// contains filtered or unexported fields
}

func (*APIServer) Run

func (a *APIServer) Run(cmd *cobra.Command, args []string) error

type Acorn

type Acorn struct {
	AcornConfigFile string `usage:"Path of the acorn config file to use" name:"config-file" env:"ACORN_CONFIG_FILE"`
	Kubeconfig      string `usage:"Explicitly use kubeconfig file, overriding the default context" env:"ACORN_KUBECONFIG"`
	Project         string `usage:"Project to work in" short:"j" env:"ACORN_PROJECT"`
	Debug           bool   `usage:"Enable debug logging" env:"ACORN_DEBUG"`
	DebugLevel      int    `usage:"Debug log level (valid 0-9) (default 7)" env:"ACORN_DEBUG_LEVEL"`
}

func (*Acorn) PersistentPre

func (a *Acorn) PersistentPre(_ *cobra.Command, _ []string) error

func (*Acorn) Run

func (a *Acorn) Run(cmd *cobra.Command, args []string) error

type All

type All struct {
	Quiet  bool   `usage:"Output only names" short:"q"`
	Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`
	Images bool   `usage:"Include images in output" short:"i"`
	All    bool   `usage:"Include stopped apps/containers" short:"a"`
	// contains filtered or unexported fields
}

func (*All) Run

func (a *All) Run(cmd *cobra.Command, args []string) error

type Build

type Build struct {
	ArgsFile string   `usage:"Default args to apply to the build" default:".build-args.acorn"`
	Push     bool     `usage:"Push image after build"`
	File     string   `short:"f" usage:"Name of the build file (default \"DIRECTORY/Acornfile\")"`
	Tag      []string `short:"t" usage:"Apply a tag to the final build"`
	Platform []string `short:"p" usage:"Target platforms (form os/arch[/variant][:osversion] example linux/amd64)"`
	// contains filtered or unexported fields
}

func (*Build) Run

func (s *Build) Run(cmd *cobra.Command, args []string) error

type BuildServer

type BuildServer struct {
	UUID           string `usage:"Build server BuilderUID" env:"ACORN_BUILD_SERVER_UUID"`
	Namespace      string `usage:"Build server Namespace" env:"ACORN_BUILD_SERVER_NAMESPACE"`
	PublicKey      string `usage:"Build server public key" env:"ACORN_BUILD_SERVER_PUBLIC_KEY"`
	PrivateKey     string `usage:"Build server private key" env:"ACORN_BUILD_SERVER_PRIVATE_KEY"`
	ListenPort     int    `usage:"HTTP listen port" env:"ACORN_BUILD_SERVER_PORT" default:"8080"`
	ForwardPort    int    `usage:"Forward TCP Listen Port" default:"5000"`
	ForwardService string `usage:"Forwarding Address" env:"ACORN_BUILD_SERVER_FORWARD_SERVICE"`
}

func (*BuildServer) Run

func (s *BuildServer) Run(cmd *cobra.Command, _ []string) error

type Check

type Check struct {
	Quiet  bool   `usage:"No Results. Success or Failure only." short:"q"`
	Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`

	Image            string  `usage:"Override the image used for test deployments." short:"i"`
	IngressClassName *string `usage:"Specify ingress class used for tests"`
	TestNamespace    *string `usage:"Specify namespace used for tests" short:"n"`
	// contains filtered or unexported fields
}

func (*Check) Run

func (a *Check) Run(cmd *cobra.Command, args []string) error

type ClientFactory

type ClientFactory interface {
	CreateDefault() (client.Client, error)
	CreateWithAllProjects() (client.Client, error)
	CreateWithAllProjectsAllServers() (client.Client, error)
	Options() project.Options
	AcornConfigFile() string
}

type CommandClientFactory

type CommandClientFactory struct {
	// contains filtered or unexported fields
}

func (*CommandClientFactory) AcornConfigFile

func (c *CommandClientFactory) AcornConfigFile() string

func (*CommandClientFactory) CreateDefault

func (c *CommandClientFactory) CreateDefault() (client.Client, error)

func (*CommandClientFactory) CreateWithAllProjects

func (c *CommandClientFactory) CreateWithAllProjects() (client.Client, error)

func (*CommandClientFactory) CreateWithAllProjectsAllServers added in v0.9.0

func (c *CommandClientFactory) CreateWithAllProjectsAllServers() (client.Client, error)

func (*CommandClientFactory) Options

func (c *CommandClientFactory) Options() project.Options

type CommandContext

type CommandContext struct {
	ClientFactory ClientFactory
	StdOut        io.Writer
	StdErr        io.Writer
	StdIn         io.Reader
}

type ComputeClass

type ComputeClass struct {
	Quiet  bool   `usage:"Output only names" short:"q"`
	Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`
	// contains filtered or unexported fields
}

func (*ComputeClass) Run

func (a *ComputeClass) Run(cmd *cobra.Command, args []string) error

type Container

type Container struct {
	Quiet  bool   `usage:"Output only names" short:"q"`
	Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`
	All    bool   `usage:"Include stopped containers" short:"a"`
	// contains filtered or unexported fields
}

func (*Container) Run

func (a *Container) Run(cmd *cobra.Command, args []string) error

type ContainerDelete

type ContainerDelete struct {
	// contains filtered or unexported fields
}

func (*ContainerDelete) Run

func (a *ContainerDelete) Run(cmd *cobra.Command, args []string) error

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func (*Controller) Run

func (s *Controller) Run(cmd *cobra.Command, _ []string) error

type Credential

type Credential struct {
	Quiet  bool   `usage:"Output only names" short:"q"`
	Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`
	// contains filtered or unexported fields
}

func (*Credential) Run

func (a *Credential) Run(cmd *cobra.Command, args []string) error

type CredentialLogin

type CredentialLogin struct {
	LocalStorage      bool   `usage:"Store credential on local client for push, pull, and build (not run)" short:"l"`
	SkipChecks        bool   `usage:"Bypass login validation checks"`
	SetDefaultContext bool   `usage:"Set default context for project names"`
	PasswordStdin     bool   `usage:"Take the password from stdin"`
	Password          string `usage:"Password" short:"p"`
	Username          string `usage:"Username" short:"u"`
	// contains filtered or unexported fields
}

func (*CredentialLogin) Run

func (a *CredentialLogin) Run(cmd *cobra.Command, args []string) error

type CredentialLogout

type CredentialLogout struct {
	LocalStorage bool `usage:"Delete locally stored credential (not remotely stored)" short:"l"`
	// contains filtered or unexported fields
}

func (*CredentialLogout) Run

func (a *CredentialLogout) Run(cmd *cobra.Command, args []string) error

type Dashboard

type Dashboard struct {
	// contains filtered or unexported fields
}

func (*Dashboard) Run

func (s *Dashboard) Run(cmd *cobra.Command, args []string) error

type Dev

type Dev struct {
	RunArgs
	BidirectionalSync    bool   `usage:"In interactive mode download changes in addition to uploading" short:"b"`
	Replace              bool   `usage:"Replace the app with only defined values, resetting undefined fields to default values" json:"replace,omitempty"` // Replace sets patchMode to false, resulting in a full update, resetting all undefined fields to their defaults
	Clone                bool   `usage:"Clone the vcs repository and infer the build context for the given app allowing for local development"`
	CloneDir             string `usage:"Provide a directory to clone the repository into, use in conjunction with clone flag" default:"." hidden:"true"`
	SessionTimeout       string `usage:"Timeout in seconds for the dev session" default:"360s"`
	SessionReleaseOnExit *bool  `usage:"Release the session when the dev command exits (default: true)"`
	// contains filtered or unexported fields
}

func (*Dev) Run

func (s *Dev) Run(cmd *cobra.Command, args []string) error

type Encrypt

type Encrypt struct {
	PlaintextStdin bool     `usage:"Take the plaintext from stdin"`
	PublicKey      []string `usage:"Pass one or more cluster publicKey values"`
	// contains filtered or unexported fields
}

func (*Encrypt) Run

func (e *Encrypt) Run(cmd *cobra.Command, args []string) error

type Events

type Events struct {
	Tail   int    `usage:"Return this number of latest events" short:"t"`
	Follow bool   `usage:"Follow the event log" short:"f"`
	Since  string `usage:"Show all events created since timestamp" short:"s"`
	Until  string `usage:"Stream events until this timestamp" short:"u"`
	Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`
	// contains filtered or unexported fields
}

func (*Events) Run

func (e *Events) Run(cmd *cobra.Command, args []string) error

type Exec

type Exec struct {
	Interactive bool   `usage:"Not used" short:"i"`
	TTY         bool   `usage:"Not used" short:"t"`
	DebugImage  string `usage:"Use image as container root for command" short:"d"`
	Container   string `usage:"Name of container to exec into" short:"c"`
	// contains filtered or unexported fields
}

func (*Exec) Run

func (s *Exec) Run(cmd *cobra.Command, args []string) error

type Fmt

type Fmt struct {
}

func (*Fmt) Run

func (s *Fmt) Run(cmd *cobra.Command, args []string) error

type Image

type Image struct {
	All        bool   `usage:"Include untagged images" short:"a" local:"true"`
	Quiet      bool   `usage:"Output only names" short:"q" local:"true"`
	NoTrunc    bool   `usage:"Don't truncate IDs" local:"true"`
	Output     string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o" local:"true"`
	Containers bool   `usage:"Show containers for images" short:"c" local:"true"`
	// contains filtered or unexported fields
}

func (*Image) Run

func (a *Image) Run(cmd *cobra.Command, args []string) error

type ImageCopy

type ImageCopy struct {
	AllTags bool `usage:"Copy all tags of the image" short:"a"`
	Force   bool `usage:"Overwrite the destination image if it already exists" short:"f"`
	// contains filtered or unexported fields
}

func (*ImageCopy) Run

func (a *ImageCopy) Run(cmd *cobra.Command, args []string) (err error)

type ImageDelete

type ImageDelete struct {
	Force bool `usage:"Force Delete" short:"f"`
	// contains filtered or unexported fields
}

func (*ImageDelete) Run

func (a *ImageDelete) Run(cmd *cobra.Command, args []string) error

type ImageDetails

type ImageDetails struct {
	Output string `usage:"Output format (json, yaml, aml)" short:"o" local:"true" default:"yaml"`
	// contains filtered or unexported fields
}

func (*ImageDetails) Run

func (a *ImageDetails) Run(cmd *cobra.Command, args []string) error

type ImageSign

type ImageSign struct {
	Key         string            `usage:"Key to use for signing" short:"k" local:"true"`
	Annotations map[string]string `usage:"Annotations to add to the signature" short:"a" local:"true" name:"annotation"`
	// contains filtered or unexported fields
}

func (*ImageSign) Run

func (a *ImageSign) Run(cmd *cobra.Command, args []string) error

type ImageVerify

type ImageVerify struct {
	Key          string            `usage:"Key to use for verifying" short:"k" local:"true"`
	Annotations  map[string]string `usage:"Annotations to check for in the signature" short:"a" local:"true" name:"annotation"`
	NoVerifyName bool              `usage:"Do not verify the image name in the signature" local:"true" default:"false"`
	// contains filtered or unexported fields
}

func (*ImageVerify) Run

func (a *ImageVerify) Run(cmd *cobra.Command, args []string) error

type Info

type Info struct {
	Output      string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o" default:"yaml"`
	AllProjects bool   `usage:"Include all projects to all currently logged in servers" short:"A"`
	// contains filtered or unexported fields
}

func (*Info) Run

func (s *Info) Run(cmd *cobra.Command, _ []string) error

type InfoCLIResponse

type InfoCLIResponse struct {
	Client struct {
		Version bversion.Version  `json:"version,omitempty"`
		CLI     *config.CLIConfig `json:"cli,omitempty"`
	} `json:"client,omitempty"`
	Projects map[string]any `json:"projects,omitempty"`
}

type Install

type Install struct {
	SkipChecks bool   `usage:"Bypass installation checks"`
	Quiet      bool   `usage:"Only output errors encountered during installation"`
	Image      string `usage:"Override the default image used for the deployment"`
	Output     string `usage:"Output manifests instead of applying them (json, yaml)" short:"o"`

	APIServerReplicas                  *int     `usage:"acorn-api deployment replica count" name:"api-server-replicas"`
	APIServerPodAnnotations            []string `usage:"annotations to apply to acorn-api pods" name:"api-server-pod-annotations" split:"false"`
	ControllerReplicas                 *int     `usage:"acorn-controller deployment replica count"`
	ControllerServiceAccountAnnotation []string `usage:"annotation to apply to the acorn-system service account"`

	Dev string `usage:"Development overlay install"`

	apiv1.Config
	// contains filtered or unexported fields
}

func (*Install) Run

func (i *Install) Run(cmd *cobra.Command, args []string) error

type Job

type Job struct {
	Quiet  bool   `usage:"Output only names" short:"q"`
	Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`
	// contains filtered or unexported fields
}

func (*Job) Run

func (a *Job) Run(cmd *cobra.Command, args []string) error

type JobRestart

type JobRestart struct {
	// contains filtered or unexported fields
}

func (*JobRestart) Run

func (a *JobRestart) Run(cmd *cobra.Command, args []string) error

type Kube

type Kube struct {
	Region    string `usage:"Get access to the cluster supporting the defined region"`
	WriteFile string `usage:"Write kubeconfig to file" short:"w"`
	// contains filtered or unexported fields
}

func (*Kube) Run

func (s *Kube) Run(cmd *cobra.Command, args []string) error

type Logs

type Logs struct {
	Follow    bool   `short:"f" usage:"Follow log output"`
	Since     string `short:"s" usage:"Show logs since timestamp (e.g. 42m for 42 minutes)"`
	Tail      int64  `short:"n" usage:"Number of lines in log output"`
	Container string `short:"c" usage:"Container name or Job name within app to follow"`
	// contains filtered or unexported fields
}

func (*Logs) Run

func (s *Logs) Run(cmd *cobra.Command, args []string) error

type Offerings

type Offerings struct {
	Quiet  bool   `usage:"Output only names" short:"q"`
	Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`
}

func (*Offerings) Run

func (o *Offerings) Run(cmd *cobra.Command, _ []string) error

type PortForward

type PortForward struct {
	Container string `usage:"Name of container to port forward into" short:"c"`
	Address   string `usage:"The IP address to listen on" default:"127.0.0.1"`
	// contains filtered or unexported fields
}

func (*PortForward) Run

func (s *PortForward) Run(cmd *cobra.Command, args []string) error

type Project

type Project struct {
	Quiet  bool   `usage:"Output only names" short:"q"`
	Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`
	// contains filtered or unexported fields
}

func (*Project) Run

func (a *Project) Run(cmd *cobra.Command, args []string) error

type ProjectCreate

type ProjectCreate struct {
	DefaultRegion    string   `usage:"Default region for project resources"`
	SupportedRegions []string `name:"supported-region" usage:"Supported regions for created project"`
	// contains filtered or unexported fields
}

func (*ProjectCreate) Run

func (a *ProjectCreate) Run(cmd *cobra.Command, args []string) error

type ProjectRm

type ProjectRm struct {
	// contains filtered or unexported fields
}

func (*ProjectRm) Run

func (a *ProjectRm) Run(cmd *cobra.Command, args []string) error

type ProjectUpdate

type ProjectUpdate struct {
	DefaultRegion    string   `usage:"Default region for project resources"`
	SupportedRegions []string `name:"supported-region" usage:"Supported regions for the created project"`
	// contains filtered or unexported fields
}

func (*ProjectUpdate) Run

func (a *ProjectUpdate) Run(cmd *cobra.Command, args []string) error

type ProjectUse

type ProjectUse struct {
	// contains filtered or unexported fields
}

func (*ProjectUse) Run

func (a *ProjectUse) Run(cmd *cobra.Command, args []string) error

type Ps

type Ps struct {
	All         bool   `usage:"Include stopped apps" short:"a"`
	AllProjects bool   `usage:"Include all projects in same Acorn instance as the current default project" short:"A"`
	Quiet       bool   `usage:"Output only names" short:"q"`
	Output      string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`
	// contains filtered or unexported fields
}

func (*Ps) Run

func (a *Ps) Run(cmd *cobra.Command, args []string) error

type Pull

type Pull struct {
	Verify       bool              `usage:"Verify the image signature BEFORE pulling and only pull on success" short:"v" local:"true" default:"false"`
	Key          string            `usage:"Key to use for verifying" short:"k" local:"true" default:"./cosign.pub"`
	Annotations  map[string]string `usage:"Annotations to check for during verification" short:"a" local:"true" name:"annotation"`
	NoVerifyName bool              `usage:"Do not verify the image name in the signature" local:"true" default:"false"`
	// contains filtered or unexported fields
}

func (*Pull) Run

func (s *Pull) Run(cmd *cobra.Command, args []string) error

type Push

type Push struct {
	Sign                 bool              `hidden:"true" usage:"Sign the image before pushing" short:"s" local:"true" default:"false" `
	Key                  string            `hidden:"true" usage:"Key to use for signing" short:"k" local:"true" default:"./cosign.key"`
	SignatureAnnotations map[string]string `hidden:"true" usage:"Annotations to add to the signature" short:"a" local:"true" name:"signature-annotation"`
	// contains filtered or unexported fields
}

func (*Push) Run

func (s *Push) Run(cmd *cobra.Command, args []string) error

type Regions

type Regions struct {
	Quiet  bool   `usage:"Output only names" short:"q"`
	Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`
	// contains filtered or unexported fields
}

func (*Regions) Run

func (a *Regions) Run(cmd *cobra.Command, args []string) error

type Render

type Render struct {
	ArgsFile string `usage:"Default args to apply to command" default:".args.acorn"`
	File     string `short:"f" usage:"Name of the dev file (default \"DIRECTORY/Acornfile\")"`
	Output   string `usage:"Output in JSON or YAML" default:"aml" short:"o"`
	// contains filtered or unexported fields
}

func (*Render) Run

func (s *Render) Run(cmd *cobra.Command, args []string) error

type Reveal

type Reveal struct {
	Quiet  bool   `usage:"Output only names" short:"q"`
	Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`
	// contains filtered or unexported fields
}

func (*Reveal) Run

func (a *Reveal) Run(cmd *cobra.Command, args []string) error

type Rm

type Rm struct {
	All           bool `usage:"Delete all associated resources (volumes, secrets)" short:"a"`
	Volumes       bool `usage:"Delete acorn and associated volumes" short:"v"`
	Secrets       bool `usage:"Delete acorn and associated secrets" short:"s"`
	Force         bool `usage:"Do not prompt for delete" short:"f"`
	IgnoreCleanup bool `usage:"Delete acorns without running delete jobs"`
	// contains filtered or unexported fields
}

func (*Rm) Run

func (a *Rm) Run(cmd *cobra.Command, args []string) error

type Run

type Run struct {
	RunArgs
	Dev               bool  `usage:"Enable interactive dev mode: build image, stream logs/status in the foreground and stop on exit" short:"i"`
	BidirectionalSync bool  `usage:"In interactive mode download changes in addition to uploading" short:"b"`
	Wait              *bool `usage:"Wait for app to become ready before command exiting (default: true)"`
	Quiet             bool  `usage:"Do not print status" short:"q"`
	Update            bool  `usage:"Update the app if it already exists" short:"u"`
	Replace           bool  `usage:"Replace the app with only defined values, resetting undefined fields to default values" json:"replace,omitempty"` // Replace sets patchMode to false, resulting in a full update, resetting all undefined fields to their defaults
	// contains filtered or unexported fields
}

func (*Run) Run

func (s *Run) Run(cmd *cobra.Command, args []string) (err error)

type RunArgs

type RunArgs struct {
	UpdateArgs
	Name string `usage:"Name of app to create" short:"n"`
}

func (RunArgs) ToOpts

func (s RunArgs) ToOpts() (client.AppRunOptions, error)

type Secret

type Secret struct {
	Quiet  bool   `usage:"Output only names" short:"q"`
	Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`
	// contains filtered or unexported fields
}

func (*Secret) Run

func (a *Secret) Run(cmd *cobra.Command, args []string) error

type SecretCreate

type SecretCreate struct {
	Data []string `usage:"Secret data format key=value or @key=filename to read from file"`
	File string   `usage:"File to read for entire secret in cue/yaml/json format"`
	Type string   `usage:"Secret type"`
	// contains filtered or unexported fields
}

func (*SecretCreate) Run

func (a *SecretCreate) Run(cmd *cobra.Command, args []string) error

type SecretDelete

type SecretDelete struct {
	// contains filtered or unexported fields
}

func (*SecretDelete) Run

func (a *SecretDelete) Run(cmd *cobra.Command, args []string) error

type Start

type Start struct {
	// contains filtered or unexported fields
}

func (*Start) Run

func (a *Start) Run(cmd *cobra.Command, args []string) error

type Stop

type Stop struct {
	// contains filtered or unexported fields
}

func (*Stop) Run

func (a *Stop) Run(cmd *cobra.Command, args []string) error

type Storage

type Storage struct {
	Quiet  bool   `usage:"Output only names" short:"q"`
	Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`
	// contains filtered or unexported fields
}

func (*Storage) Run

func (a *Storage) Run(cmd *cobra.Command, args []string) error

type Tag

type Tag struct {
	// contains filtered or unexported fields
}

func (*Tag) Run

func (s *Tag) Run(cmd *cobra.Command, args []string) error

type Uninstall

type Uninstall struct {
	Force bool `usage:"Do not prompt for confirmation" short:"f"`
	All   bool `usage:"Delete all volumes and secrets" short:"a"`
	// contains filtered or unexported fields
}

func (*Uninstall) Run

func (u *Uninstall) Run(cmd *cobra.Command, args []string) error

type Update

type Update struct {
	UpdateArgs
	Image          string `usage:"Acorn image name"`
	ConfirmUpgrade bool   `` /* 156-byte string literal not displayed */
	Pull           bool   `usage:"Re-pull the app's image, which will cause the app to re-deploy if the image has changed"`
	Wait           *bool  `usage:"Wait for app to become ready before command exiting (default: true)"`
	Quiet          bool   `usage:"Do not print status" short:"q"`
	// contains filtered or unexported fields
}

func (*Update) Run

func (s *Update) Run(cmd *cobra.Command, args []string) error

type UpdateArgs

type UpdateArgs struct {
	Region        string   `usage:"Region in which to deploy the app, immutable"`
	File          string   `short:"f" usage:"Name of the build file (default \"DIRECTORY/Acornfile\")"`
	ArgsFile      string   `usage:"Default args to apply to run/update command" default:".args.acorn"`
	Volume        []string `usage:"Bind an existing volume (format existing:vol-name,field=value) (ex: pvc-name:app-data)" short:"v" split:"false"`
	Secret        []string `usage:"Bind an existing secret (format existing:sec-name) (ex: sec-name:app-secret)" short:"s"`
	Link          []string `usage:"Link external app as a service in the current app (format app-name:container-name)"`
	PublishAll    *bool    `usage:"Publish all (true) or none (false) of the defined ports of application" short:"P"`
	Publish       []string `usage:"Publish port of application (format [public:]private) (ex 81:80)" short:"p"`
	Env           []string `usage:"Environment variables to set on running containers" short:"e"`
	Label         []string `` /* 126-byte string literal not displayed */
	Annotation    []string `usage:"Add annotations to the app and the resources it creates (format [type:][name:]key=value) (ex k=v, containers:k=v)"`
	Dangerous     bool     `usage:"Automatically approve all privileges requested by the application"`
	Output        string   `usage:"Output API request without creating app (json, yaml)" short:"o"`
	NotifyUpgrade *bool    `` /* 141-byte string literal not displayed */
	AutoUpgrade   *bool    `usage:"Enabled automatic upgrades."`
	Interval      string   `usage:"If configured for auto-upgrade, this is the time interval at which to check for new releases (ex: 1h, 5m)"`
	Memory        []string `` /* 146-byte string literal not displayed */
	ComputeClass  []string `` /* 171-byte string literal not displayed */
}

type Volume

type Volume struct {
	Quiet  bool   `usage:"Output only names" short:"q"`
	Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o"`
	// contains filtered or unexported fields
}

func (*Volume) Run

func (a *Volume) Run(cmd *cobra.Command, args []string) error

type VolumeDelete

type VolumeDelete struct {
	// contains filtered or unexported fields
}

func (*VolumeDelete) Run

func (a *VolumeDelete) Run(cmd *cobra.Command, args []string) error

type Wait

type Wait struct {
	Quiet bool `usage:"Do not print status" short:"q"`
	// contains filtered or unexported fields
}

func (*Wait) Run

func (w *Wait) Run(cmd *cobra.Command, args []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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