Documentation
¶
Index ¶
- Constants
- func New() *cobra.Command
- func NewAll(c CommandContext) *cobra.Command
- func NewApiServer(c CommandContext) *cobra.Command
- func NewApp(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 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 NewImageDelete(c CommandContext) *cobra.Command
- func NewImageDetails(c CommandContext) *cobra.Command
- func NewInfo(c CommandContext) *cobra.Command
- func NewInstall(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 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 App
- type Build
- type BuildServer
- type Check
- type ClientFactory
- type CommandClientFactory
- type CommandContext
- type ComputeClass
- type Container
- type ContainerDelete
- type Controller
- type Credential
- type CredentialLogin
- type CredentialLogout
- type Dev
- type Encrypt
- type Events
- type Exec
- type Fmt
- type Image
- type ImageDelete
- type ImageDetails
- type Info
- type InfoCLIResponse
- type Install
- type Logs
- type Offerings
- type PortForward
- type Project
- type ProjectCreate
- type ProjectRm
- type ProjectUpdate
- type ProjectUse
- type Pull
- type Push
- type Regions
- type Render
- type Reveal
- type Rm
- type RmObjects
- 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 AdvancedHelp = `` /* 1503-byte string literal not displayed */
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 NewApp ¶
func NewApp(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 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 NewImageDelete ¶
func NewImageDelete(c CommandContext) *cobra.Command
func NewImageDetails ¶
func NewImageDetails(c CommandContext) *cobra.Command
func NewInfo ¶
func NewInfo(c CommandContext) *cobra.Command
func NewInstall ¶
func NewInstall(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 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 {
Kubeconfig string `usage:"Explicitly use kubeconfig file, overriding current project"`
Project string `usage:"Project to work in" short:"j" env:"ACORN_PROJECT"`
AllProjects bool `usage:"Use all known projects" short:"A" env:"ACORN_ALL_PROJECTS"`
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 ¶
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 App ¶
type Build ¶
type Build struct {
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)"`
Profile []string `usage:"Profile to assign default values"`
// 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) CreateDefault ¶
func (c *CommandClientFactory) CreateDefault() (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"`
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
HelpAdvanced bool `usage:"Show verbose help text"`
// 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"`
Details bool `usage:"Don't strip event details from response" short:"d"`
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 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 Info ¶
type Info struct {
Output string `usage:"Output format (json, yaml, {{gotemplate}})" short:"o" default:"yaml"`
// contains filtered or unexported fields
}
type InfoCLIResponse ¶
type Install ¶
type Install struct {
SkipChecks bool `usage:"Bypass installation checks"`
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"`
ControllerReplicas *int `usage:"acorn-controller deployment replica count"`
ControllerServiceAccountAnnotation []string `usage:"annotation to apply to the acorn-system service account"`
apiv1.Config
// contains filtered or unexported fields
}
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 Regions ¶
type Render ¶
type Reveal ¶
type Rm ¶
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
HelpAdvanced bool `usage:"Show verbose help text"`
// 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"`
HelpAdvanced bool `usage:"Show verbose help text"`
// 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\")"`
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"`
Profile []string `usage:"Profile to assign default values"`
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"`
TargetNamespace string `usage:"The name of the namespace to be created and deleted for the application resources"`
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
- apps.go
- build.go
- buildserver.go
- check.go
- completion.go
- computeclasses.go
- containers.go
- containers_rm.go
- context.go
- controller.go
- credential.go
- credential_login.go
- credential_logout.go
- dev.go
- errors.go
- events.go
- exec.go
- fmt.go
- images.go
- images_detail.go
- images_rm.go
- info.go
- install.go
- log.go
- offerings.go
- port_forward.go
- project.go
- project_create.go
- project_rm.go
- project_update.go
- project_use.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.