Documentation
¶
Overview ¶
Package delete provides functionality to delete resources in the nine.ch API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
FromFile fromFile `cmd:"" group:"delete-general" default:"withargs" name:"-f <file>" help:"Delete any resource from a yaml or json file."`
VCluster vclusterCmd `cmd:"" group:"delete-infra" name:"vcluster" api-resource:"kubernetesclusters" help:"Delete a vcluster."`
APIServiceAccount apiServiceAccountCmd `cmd:"" group:"delete-access" name:"apiserviceaccount" aliases:"asa" help:"Delete an API Service Account."`
Project projectCmd `cmd:"" group:"delete-access" name:"project" aliases:"proj" help:"Delete a Project."`
ProjectConfig configCmd `cmd:"" group:"delete-apps" name:"project-config" aliases:"config" help:"Delete a deplo.io Project Configuration."`
Application applicationCmd `cmd:"" group:"delete-apps" name:"application" aliases:"app,application" help:"Delete a deplo.io Application."`
MySQL mySQLCmd `cmd:"" group:"delete-storage" name:"mysql" help:"Delete a MySQL instance."`
MySQLDatabase mysqlDatabaseCmd `cmd:"" group:"delete-storage" name:"mysqldatabase" help:"Delete a MySQL database."`
Postgres postgresCmd `cmd:"" group:"delete-storage" name:"postgres" help:"Delete a PostgreSQL instance."`
PostgresDatabase postgresDatabaseCmd `cmd:"" group:"delete-storage" name:"postgresdatabase" help:"Delete a PostgreSQL database."`
KeyValueStore keyValueStoreCmd `cmd:"" group:"delete-storage" name:"keyvaluestore" aliases:"kvs" help:"Delete a KeyValueStore instance."`
OpenSearch openSearchCmd `cmd:"" group:"delete-storage" name:"opensearch" aliases:"os" help:"Delete an OpenSearch cluster."`
CloudVirtualMachine cloudVMCmd `cmd:"" group:"delete-infra" name:"cloudvirtualmachine" aliases:"cloudvm" help:"Delete a CloudVM."`
ServiceConnection serviceConnectionCmd `cmd:"" group:"delete-network" name:"serviceconnection" aliases:"sc" help:"Delete a ServiceConnection."`
StaticEgress staticEgressCmd `cmd:"" group:"delete-network" name:"staticegress" aliases:"se" help:"Delete a StaticEgress."`
Bucket bucketCmd `cmd:"" group:"delete-storage" name:"bucket" help:"Delete a Bucket."`
BucketUser bucketUserCmd `cmd:"" group:"delete-storage" name:"bucketuser" aliases:"bu" help:"Delete a BucketUser."`
Grafana grafanaCmd `cmd:"" group:"delete-observability" name:"grafana" help:"Delete a Grafana instance."`
}
type ResourceCmd ¶
type ResourceCmd struct {
format.Writer `kong:"-"`
format.Reader `kong:"-"`
Name string `arg:"" completion-predictor:"client:resource_name" help:"Name of the resource to delete."`
Force bool `default:"false" help:"Do not ask for confirmation of deletion."`
Wait bool `default:"true" help:"Wait until resource is fully deleted."`
WaitTimeout time.Duration `default:"5m" help:"Duration to wait for the deletion. Only relevant if wait is set."`
}
ResourceCmd is the shared base for the delete sub-commands.
It has to be exported so that Kong initializes the embedded format.Writer, see format.Writer.BeforeApply.
func (*ResourceCmd) BeforeApply ¶
func (cmd *ResourceCmd) BeforeApply(streams format.IOStreams) error
BeforeApply initializes Writer and Reader from the bound format.IOStreams. Because Kong wont apply hooks on embedded structs.
Click to show internal directories.
Click to hide internal directories.