command

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// MeshTenantsURL is the mesh tenant prefix.
	MeshTenantsURL = apiURL + "/mesh/tenants"

	// MeshTenantURL is the mesh tenant path.
	MeshTenantURL = apiURL + "/mesh/tenants/%s"

	// MeshServicesURL is mesh service prefix.
	MeshServicesURL = apiURL + "/mesh/services"

	// MeshServiceURL is the mesh service path.
	MeshServiceURL = apiURL + "/mesh/services/%s"

	// MeshServiceCanaryURL is the mesh service canary path.
	MeshServiceCanaryURL = apiURL + "/mesh/services/%s/canary"

	// MeshServiceResilienceURL is the mesh service resilience path.
	MeshServiceResilienceURL = apiURL + "/mesh/services/%s/resilience"

	// MeshServiceLoadBalanceURL is the mesh service load balance path.
	MeshServiceLoadBalanceURL = apiURL + "/mesh/services/%s/loadbalance"

	// MeshServiceOutputServerURL is the mesh service output server path.
	MeshServiceOutputServerURL = apiURL + "/mesh/services/%s/outputserver"

	// MeshServiceTracingsURL is the mesh service tracings path.
	MeshServiceTracingsURL = apiURL + "/mesh/services/%s/tracings"

	// MeshServiceMetricsURL is the mesh service metrics path.
	MeshServiceMetricsURL = apiURL + "/mesh/services/%s/metrics"

	// MeshServiceInstancesURL is the mesh service prefix.
	MeshServiceInstancesURL = apiURL + "/mesh/serviceinstances"

	// MeshServiceInstanceURL is the mesh service path.
	MeshServiceInstanceURL = apiURL + "/mesh/serviceinstances/%s/%s"

	// MeshIngressesURL is the mesh ingress prefix.
	MeshIngressesURL = apiURL + "/mesh/ingresses"

	// MeshIngressURL is the mesh ingress path.
	MeshIngressURL = apiURL + "/mesh/ingresses/%s"
)

Variables

This section is empty.

Functions

func APICmd

func APICmd() *cobra.Command

APICmd defines API command.

func CustomDataCmd added in v1.5.0

func CustomDataCmd() *cobra.Command

CustomDataCmd defines custom data command.

func CustomDataKindCmd added in v1.5.0

func CustomDataKindCmd() *cobra.Command

CustomDataKindCmd defines custom data kind command.

func ExitWithError

func ExitWithError(err error)

ExitWithError exits with self-defined message not the one of cobra(such as usage).

func ExitWithErrorf

func ExitWithErrorf(format string, a ...interface{})

ExitWithErrorf wraps ExitWithError with format.

func HealthCmd

func HealthCmd() *cobra.Command

HealthCmd defines health command.

func MemberCmd

func MemberCmd() *cobra.Command

MemberCmd defines member command.

func ObjectCmd

func ObjectCmd() *cobra.Command

ObjectCmd defines object command.

func ProfileCmd added in v1.5.1

func ProfileCmd() *cobra.Command

ProfileCmd defines member command.

func WasmCmd added in v1.2.0

func WasmCmd() *cobra.Command

WasmCmd defines member command.

Types

type APIErr

type APIErr struct {
	Code    int    `yaml:"code"`
	Message string `yaml:"message"`
}

APIErr is the standard return of error.

type GlobalFlags

type GlobalFlags struct {
	Server       string
	OutputFormat string
}

GlobalFlags is the global flags for the whole client.

var CommandlineGlobalFlags GlobalFlags

CommandlineGlobalFlags is the singleton of GlobalFlags.

type SpecVisitor added in v1.3.0

type SpecVisitor interface {
	Visit(func(*spec) error) error
	Close()
}

SpecVisitor walk through multiple specs

type YAMLVisitor added in v1.5.0

type YAMLVisitor interface {
	Visit(func(yamlDoc []byte) error) error
	Close()
}

YAMLVisitor walk through multiple YAML documents

Jump to

Keyboard shortcuts

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