get

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Overview

Package get implements the get command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageRef

func ImageRef(image meta.Image) string

func WithAllProjects

func WithAllProjects() func(*Cmd)

WithAllProjects is a test option that sets AllProjects to true.

func WithWatch

func WithWatch() func(*Cmd)

WithWatch is a test option that sets Watch to true.

Types

type Cmd

type Cmd struct {
	All                 allCmd                `cmd:"" name:"all" group:"get-general" help:"Get project content."`
	Clusters            clustersCmd           `cmd:"" group:"get-infra" aliases:"cluster,vcluster" api-resource:"kubernetesclusters" help:"Get Kubernetes Clusters."`
	APIServiceAccounts  apiServiceAccountsCmd `cmd:"" group:"get-access" name:"apiserviceaccounts" aliases:"asa" help:"Get API Service Accounts."`
	Projects            projectCmd            `cmd:"" group:"get-access" name:"projects" aliases:"proj" help:"Get Projects."`
	Applications        applicationsCmd       `cmd:"" group:"get-apps" name:"applications" aliases:"app,apps,application" help:"Get deplo.io Applications."`
	Builds              buildCmd              `cmd:"" group:"get-apps" name:"builds" aliases:"build" help:"Get deplo.io Builds."`
	Releases            releasesCmd           `cmd:"" group:"get-apps" name:"releases" aliases:"release" help:"Get deplo.io Releases."`
	ProjectConfig       configsCmd            `` /* 129-byte string literal not displayed */
	MySQL               mySQLCmd              `cmd:"" group:"get-storage" name:"mysql" help:"Get MySQL instances."`
	MySQLDatabases      mysqlDatabaseCmd      `cmd:"" group:"get-storage" name:"mysqldatabases" aliases:"mysqldatabase" help:"Get MySQL databases."`
	OpenSearch          openSearchCmd         `cmd:"" group:"get-storage" name:"opensearch" aliases:"os" help:"Get OpenSearch clusters."`
	Postgres            postgresCmd           `cmd:"" group:"get-storage" name:"postgres" help:"Get PostgreSQL instances."`
	PostgresDatabases   postgresDatabaseCmd   `cmd:"" group:"get-storage" name:"postgresdatabases" aliases:"postgresdatabase" help:"Get PostgreSQL databases."`
	KeyValueStore       keyValueStoreCmd      `cmd:"" group:"get-storage" name:"keyvaluestore" aliases:"kvs" help:"Get KeyValueStore instances."`
	CloudVirtualMachine cloudVMCmd            `cmd:"" group:"get-infra" name:"cloudvirtualmachine" aliases:"cloudvm" help:"Get a CloudVM."`
	ServiceConnection   serviceConnectionCmd  `cmd:"" group:"get-network" name:"serviceconnection" aliases:"sc,serviceconnections" help:"Get a ServiceConnection."`
	StaticEgress        staticEgressCmd       `cmd:"" group:"get-network" name:"staticegress" aliases:"se,staticegresses" help:"Get StaticEgress resources."`
	Bucket              bucketCmd             `cmd:"" group:"get-storage" name:"bucket" help:"Get Bucket instances."`
	BucketUser          bucketUserCmd         `cmd:"" group:"get-storage" name:"bucketuser" aliases:"bu" help:"Get BucketUser instances."`
	Grafana             grafanaCmd            `cmd:"" group:"get-observability" name:"grafana" help:"Get Grafana instances."`
	// contains filtered or unexported fields
}

func (*Cmd) BeforeApply

func (cmd *Cmd) BeforeApply(streams format.IOStreams) error

BeforeApply is called by Kong before parsing to initialize the output.

type ResourceCmd

type ResourceCmd struct {
	format.Writer `kong:"-"`
	Name          string `` /* 143-byte string literal not displayed */
}

ResourceCmd is the shared base for the get sub-commands that take a single resource name.

It has to be exported so that Kong initializes the embedded format.Writer, see format.Writer.BeforeApply.

type ServiceCmd

type ServiceCmd struct {
	ResourceCmd
	PrintUser             bool `help:"Print the user. Requires name to be set." xor:"print" aliases:"print-database-user"`
	PrintPassword         bool `help:"Print the password. Requires name to be set." xor:"print"`
	PrintConnectionString bool `help:"Print the connection string. Requires name to be set." xor:"print"`
	PrintCACert           bool `help:"Print the ca certificate. Requires name to be set." xor:"print"`
}

ServiceCmd is the shared base for the get sub-commands of on-demand services, like databases, key-value stores or search clusters.

It has to be exported so that Kong initializes the embedded format.Writer, see format.Writer.BeforeApply.

Jump to

Keyboard shortcuts

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