common

package
v1.17.0-beta25 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 30 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndPrintObject

func CreateAndPrintObject(ctx context.Context, yml []byte, outputType printers.OutputType, namespace string) error

func GetAuthConfigs added in v1.0.0

func GetAuthConfigs(name string, opts *options.Options) (extauthv1.AuthConfigList, error)

func GetName

func GetName(args []string, opts *options.Options) string

func GetProxies

func GetProxies(name string, opts *options.Options) (gloov1.ProxyList, error)

GetProxies retrieves the proxies from the Control Plane via the ProxyEndpointServer API This is utilized by `glooctl get proxy` to return the content of Proxies

func GetRateLimitConfigs added in v1.6.11

func GetRateLimitConfigs(name string, opts *options.Options) (ratelimit.RateLimitConfigList, error)

func GetRouteTables added in v0.20.3

func GetRouteTables(name string, opts *options.Options) (v1.RouteTableList, error)

func GetSettings added in v1.12.55

func GetSettings(opts *options.Options) (*gloov1.Settings, error)

func GetUpstreamGroups added in v0.18.1

func GetUpstreamGroups(name string, opts *options.Options) (gloov1.UpstreamGroupList, error)

func GetUpstreams

func GetUpstreams(name string, opts *options.Options) (gloov1.UpstreamList, error)

func GetVirtualServices

func GetVirtualServices(name string, opts *options.Options) (v1.VirtualServiceList, error)

func ListProxiesFromSettings added in v1.12.55

func ListProxiesFromSettings(namespace string, opts *options.Options, settings *gloov1.Settings) (gloov1.ProxyList, error)

ListProxiesFromSettings retrieves the proxies from the Control Plane via the ProxyEndpointServer API This is utilized by `glooctl check` to report the statuses of Proxies

Types

type Runner added in v1.5.0

type Runner interface {
	Run(cmd string, args ...string) error
}

func NewShellRunner added in v1.5.0

func NewShellRunner(in io.Reader, out io.Writer) Runner

Jump to

Keyboard shortcuts

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