Documentation ¶
Index ¶
- Constants
- func New() *cobra.Command
- func NewAll(c CommandContext) *cobra.Command
- func NewApiServer(c CommandContext) *cobra.Command
- func NewBuild(c CommandContext) *cobra.Command
- func NewBuildServer(c CommandContext) *cobra.Command
- func NewCheck(c CommandContext) *cobra.Command
- func NewComputeClasses(c CommandContext) *cobra.Command
- func NewContainer(c CommandContext) *cobra.Command
- func NewContainerDelete(c CommandContext) *cobra.Command
- func NewController(c CommandContext) *cobra.Command
- func NewCredential(c CommandContext) *cobra.Command
- func NewCredentialLogin(root bool, c CommandContext) *cobra.Command
- func NewCredentialLogout(root bool, c CommandContext) *cobra.Command
- func NewDashboard(c CommandContext) *cobra.Command
- func NewDev(c CommandContext) *cobra.Command
- func NewEvent(c CommandContext) *cobra.Command
- func NewExec(c CommandContext) *cobra.Command
- func NewFmt(_ CommandContext) *cobra.Command
- func NewImage(c CommandContext) *cobra.Command
- func NewImageCopy(c CommandContext) *cobra.Command
- func NewImageDelete(c CommandContext) *cobra.Command
- func NewImageDetails(c CommandContext) *cobra.Command
- func NewImageSign(c CommandContext) *cobra.Command
- func NewImageVerify(c CommandContext) *cobra.Command
- func NewInfo(c CommandContext) *cobra.Command
- func NewInstall(c CommandContext) *cobra.Command
- func NewJob(c CommandContext) *cobra.Command
- func NewJobRestart(c CommandContext) *cobra.Command
- func NewKubectl(c CommandContext) *cobra.Command
- func NewLogs(c CommandContext) *cobra.Command
- func NewOfferings(c CommandContext) *cobra.Command
- func NewPortForward(c CommandContext) *cobra.Command
- func NewProject(c CommandContext) *cobra.Command
- func NewProjectCreate(c CommandContext) *cobra.Command
- func NewProjectRm(c CommandContext) *cobra.Command
- func NewProjectUpdate(c CommandContext) *cobra.Command
- func NewProjectUse(c CommandContext) *cobra.Command
- func NewPs(c CommandContext) *cobra.Command
- func NewPull(c CommandContext) *cobra.Command
- func NewPush(c CommandContext) *cobra.Command
- func NewRegions(c CommandContext) *cobra.Command
- func NewRender(c CommandContext) *cobra.Command
- func NewRm(c CommandContext) *cobra.Command
- func NewRun(c CommandContext) *cobra.Command
- func NewSecret(c CommandContext) *cobra.Command
- func NewSecretCreate(c CommandContext) *cobra.Command
- func NewSecretDelete(c CommandContext) *cobra.Command
- func NewSecretEncrypt(c CommandContext) *cobra.Command
- func NewSecretReveal(c CommandContext) *cobra.Command
- func NewStart(c CommandContext) *cobra.Command
- func NewStop(c CommandContext) *cobra.Command
- func NewTag(c CommandContext) *cobra.Command
- func NewUninstall(c CommandContext) *cobra.Command
- func NewUpdate(c CommandContext) *cobra.Command
- func NewVersion(c CommandContext) *cobra.Command
- func NewVolume(c CommandContext) *cobra.Command
- func NewVolumeClasses(c CommandContext) *cobra.Command
- func NewVolumeDelete(c CommandContext) *cobra.Command
- func NewWait(c CommandContext) *cobra.Command
- func RunAndHandleError(ctx context.Context, cmd *cobra.Command)
- type APIServer
- type Acorn
- type All
- type Build
- type BuildServer
- type Check
- type ClientFactory
- type CommandClientFactory
- func (c *CommandClientFactory) AcornConfigFile() string
- func (c *CommandClientFactory) CreateDefault() (client.Client, error)
- func (c *CommandClientFactory) CreateWithAllProjects() (client.Client, error)
- func (c *CommandClientFactory) CreateWithAllProjectsAllServers() (client.Client, error)
- func (c *CommandClientFactory) Options() project.Options
- type CommandContext
- type ComputeClass
- type Container
- type ContainerDelete
- type Controller
- type Credential
- type CredentialLogin
- type CredentialLogout
- type Dashboard
- type Dev
- type Encrypt
- type Events
- type Exec
- type Fmt
- type Image
- type ImageCopy
- type ImageDelete
- type ImageDetails
- type ImageSign
- type ImageVerify
- type Info
- type InfoCLIResponse
- type Install
- type Job
- type JobRestart
- type Kube
- type Logs
- type Offerings
- type PortForward
- type Project
- type ProjectCreate
- type ProjectRm
- type ProjectUpdate
- type ProjectUse
- type Ps
- type Pull
- type Push
- type Regions
- type Render
- type Reveal
- type Rm
- type Run
- type RunArgs
- type Secret
- type SecretCreate
- type SecretDelete
- type Start
- type Stop
- type Storage
- type Tag
- type Uninstall
- type Update
- type UpdateArgs
- type Volume
- type VolumeDelete
- type Wait
Constants ¶
View Source
const (
MaxLength = 1024 * 1024
)
Variables ¶
This section is empty.
Functions ¶
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
Types ¶
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"` }
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 }
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 }
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"` }
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 }
type ClientFactory ¶
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 ComputeClass ¶
type Container ¶
type ContainerDelete ¶
type ContainerDelete struct {
// contains filtered or unexported fields
}
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
type Credential ¶
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 }
type CredentialLogout ¶
type CredentialLogout struct { LocalStorage bool `usage:"Delete locally stored credential (not remotely stored)" short:"l"` // contains filtered or unexported fields }
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 }
type Encrypt ¶
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 }
type Exec ¶
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 }
type ImageCopy ¶
type ImageDelete ¶
type ImageDelete struct { Force bool `usage:"Force Delete" short:"f"` // contains filtered or unexported fields }
type ImageDetails ¶
type ImageDetails struct { Output string `usage:"Output format (json, yaml, aml)" short:"o" local:"true" default:"yaml"` // contains filtered or unexported fields }
type ImageSign ¶
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 }
type Info ¶
type InfoCLIResponse ¶
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 }
type Job ¶
type JobRestart ¶
type JobRestart struct {
// contains filtered or unexported fields
}
type Kube ¶
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 }
type Offerings ¶
type PortForward ¶
type Project ¶
type ProjectCreate ¶
type ProjectUpdate ¶
type ProjectUse ¶
type ProjectUse struct {
// contains filtered or unexported fields
}
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 }
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 }
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 }
type Regions ¶
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 }
type Reveal ¶
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 }
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 }
type RunArgs ¶
type RunArgs struct { UpdateArgs Name string `usage:"Name of app to create" short:"n"` }
type Secret ¶
type SecretCreate ¶
type SecretDelete ¶
type SecretDelete struct {
// contains filtered or unexported fields
}
type Storage ¶
type Uninstall ¶
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 }
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 VolumeDelete ¶
type VolumeDelete struct {
// contains filtered or unexported fields
}
Source Files ¶
- acorn.go
- all.go
- apiserver.go
- auth.go
- build.go
- buildserver.go
- check.go
- completion.go
- computeclasses.go
- containers.go
- containers_rm.go
- context.go
- controller.go
- copy.go
- credential.go
- credential_login.go
- credential_logout.go
- dashboard.go
- dev.go
- errors.go
- events.go
- exec.go
- fmt.go
- images.go
- images_detail.go
- images_rm.go
- images_sign.go
- images_verify.go
- info.go
- install.go
- jobs.go
- jobs_restart.go
- kube.go
- log.go
- offerings.go
- port_forward.go
- project.go
- project_create.go
- project_rm.go
- project_update.go
- project_use.go
- ps.go
- pull.go
- push.go
- regions.go
- render.go
- rm.go
- rm_helper.go
- run.go
- secret.go
- secret_create.go
- secret_encrypt.go
- secret_expose.go
- secret_rm.go
- start.go
- stop.go
- tag.go
- uninstall.go
- update.go
- version.go
- volume_classes.go
- volume_rm.go
- volumes.go
- wait.go
Click to show internal directories.
Click to hide internal directories.