printers

package
v0.18.22 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const DryRunFallbackOutputType = KUBE_YAML

Variables

This section is empty.

Functions

func Action

func Action(r *gloov1.Route) string

Action extracts the action in a given route

func Destinations

func Destinations(d *gloov1.Destination) string

helper function to parse destinations

func GenerateKubeCrdString added in v0.18.22

func GenerateKubeCrdString(in resources.InputResource, resourceCrd crd.Crd) (string, error)

func Matcher

func Matcher(r *gloov1.Route) (string, string, string, string)

Matcher extracts the parts of the matcher in the given route

func PrintKubeCrd added in v0.18.6

func PrintKubeCrd(in resources.InputResource, resourceCrd crd.Crd) error

func PrintKubeCrdList added in v0.18.6

func PrintKubeCrdList(in resources.InputResourceList, resourceCrd crd.Crd) error

func PrintProxies added in v0.18.6

func PrintProxies(proxies v1.ProxyList, outputType OutputType) error

func PrintRoutes added in v0.18.6

func PrintRoutes(routes []*gloov1.Route, outputType OutputType) error

func PrintSecrets added in v0.18.6

func PrintSecrets(secrets v1.SecretList, outputType OutputType) error

func PrintUpstreamGroups added in v0.18.6

func PrintUpstreamGroups(upstreamGroups v1.UpstreamGroupList, outputType OutputType) error

func PrintUpstreams added in v0.18.6

func PrintUpstreams(upstreams v1.UpstreamList, outputType OutputType, xdsDump *xdsinspection.XdsDump) error

func PrintVirtualServices added in v0.18.6

func PrintVirtualServices(virtualServices v1.VirtualServiceList, outputType OutputType) error

func ProxyTable

func ProxyTable(list v1.ProxyList, w io.Writer)

PrintTable prints proxies using tables to io.Writer

func RouteTable

func RouteTable(list []*gloov1.Route, w io.Writer)

PrintTable prints the list of routes as a table

func SecretTable added in v0.18.6

func SecretTable(list v1.SecretList, w io.Writer)

PrintTable prints secrets using tables to io.Writer

func UpstreamGroupTable added in v0.18.1

func UpstreamGroupTable(upstreamGroups []*v1.UpstreamGroup, w io.Writer)

PrintTable prints upstream groups using tables to io.Writer

func UpstreamTable

func UpstreamTable(xdsDump *xdsinspection.XdsDump, upstreams []*v1.Upstream, w io.Writer)

PrintTable prints upstreams using tables to io.Writer

func VirtualServiceTable

func VirtualServiceTable(list []*v1.VirtualService, w io.Writer)

PrintTable prints virtual services using tables to io.Writer

Types

type OutputType added in v0.18.6

type OutputType int
const (
	TABLE OutputType = iota
	YAML
	JSON
	KUBE_YAML
	WIDE
)

func (*OutputType) IsDryRunnable added in v0.18.16

func (o *OutputType) IsDryRunnable() bool

func (*OutputType) IsTable added in v0.18.16

func (o *OutputType) IsTable() bool

func (OutputType) MarshalJSON added in v0.18.6

func (o OutputType) MarshalJSON() ([]byte, error)

func (*OutputType) Set added in v0.18.6

func (o *OutputType) Set(s string) error

func (*OutputType) String added in v0.18.6

func (o *OutputType) String() string

func (*OutputType) Type added in v0.18.6

func (o *OutputType) Type() string

func (*OutputType) UnmarshalJSON added in v0.18.6

func (o *OutputType) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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