delete

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

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" 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 added in v1.19.0

type ResourceCmd struct {
	format.Writer `kong:"-"`
	format.Reader `kong:"-"`
	Name          string        `arg:"" completion-predictor:"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 added in v1.19.0

func (cmd *ResourceCmd) BeforeApply(writer io.Writer, reader io.Reader) error

BeforeApply initializes Writer and Reader from Kong's bound io.Writer and io.Reader. Because Kong wont apply hooks on embedded structs.

Jump to

Keyboard shortcuts

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