Documentation
¶
Index ¶
- Constants
- func Action(r *v1.Route) string
- func Destinations(d *gloov1.Destination) string
- func GenerateKubeCrdString(in resources.InputResource, resourceCrd crd.Crd) (string, error)
- func Matcher(m *gloov1.Matcher) (string, string, string, string)
- func Matchers(ms []*gloov1.Matcher) (string, string, string, string)
- func PrintKubeCrd(in resources.InputResource, resourceCrd crd.Crd) error
- func PrintKubeCrdList(in resources.InputResourceList, resourceCrd crd.Crd) error
- func PrintProxies(proxies v1.ProxyList, outputType OutputType) error
- func PrintRouteTables(routeTables v1.RouteTableList, outputType OutputType) error
- func PrintRoutes(routes []*v1.Route, outputType OutputType) error
- func PrintSecrets(secrets v1.SecretList, outputType OutputType) error
- func PrintUpstreamGroups(upstreamGroups v1.UpstreamGroupList, outputType OutputType) error
- func PrintUpstreams(upstreams v1.UpstreamList, outputType OutputType, ...) error
- func PrintVirtualServices(virtualServices v1.VirtualServiceList, outputType OutputType) error
- func ProxyTable(list v1.ProxyList, w io.Writer)
- func RouteTable(list []*v1.Route, w io.Writer)
- func RouteTableTable(list []*v1.RouteTable, w io.Writer)
- func SecretTable(list v1.SecretList, w io.Writer)
- func UpstreamGroupTable(upstreamGroups []*v1.UpstreamGroup, w io.Writer)
- func UpstreamTable(xdsDump *xdsinspection.XdsDump, upstreams []*v1.Upstream, w io.Writer)
- func VirtualServiceTable(list []*v1.VirtualService, w io.Writer)
- type OutputType
Constants ¶
View Source
const DryRunFallbackOutputType = KUBE_YAML
Variables ¶
This section is empty.
Functions ¶
func Destinations ¶
func Destinations(d *gloov1.Destination) string
helper function to parse destinations
func GenerateKubeCrdString ¶
func PrintKubeCrd ¶
func PrintKubeCrd(in resources.InputResource, resourceCrd crd.Crd) error
func PrintKubeCrdList ¶
func PrintKubeCrdList(in resources.InputResourceList, resourceCrd crd.Crd) error
func PrintProxies ¶
func PrintProxies(proxies v1.ProxyList, outputType OutputType) error
func PrintRouteTables ¶
func PrintRouteTables(routeTables v1.RouteTableList, outputType OutputType) error
func PrintRoutes ¶
func PrintRoutes(routes []*v1.Route, outputType OutputType) error
func PrintSecrets ¶
func PrintSecrets(secrets v1.SecretList, outputType OutputType) error
func PrintUpstreamGroups ¶
func PrintUpstreamGroups(upstreamGroups v1.UpstreamGroupList, outputType OutputType) error
func PrintUpstreams ¶
func PrintUpstreams(upstreams v1.UpstreamList, outputType OutputType, xdsDump *xdsinspection.XdsDump) error
func PrintVirtualServices ¶
func PrintVirtualServices(virtualServices v1.VirtualServiceList, outputType OutputType) error
func ProxyTable ¶
PrintTable prints proxies using tables to io.Writer
func RouteTable ¶
PrintTable prints the list of routes as a table
func RouteTableTable ¶
func RouteTableTable(list []*v1.RouteTable, w io.Writer)
PrintTable prints virtual services using tables to io.Writer
func SecretTable ¶
func SecretTable(list v1.SecretList, w io.Writer)
PrintTable prints secrets using tables to io.Writer
func UpstreamGroupTable ¶
func UpstreamGroupTable(upstreamGroups []*v1.UpstreamGroup, w io.Writer)
PrintTable prints upstream groups using tables to io.Writer
func UpstreamTable ¶
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 ¶
type OutputType int
const ( TABLE OutputType = iota YAML JSON KUBE_YAML WIDE )
func (*OutputType) IsTable ¶
func (o *OutputType) IsTable() bool
func (OutputType) MarshalJSON ¶
func (o OutputType) MarshalJSON() ([]byte, error)
func (*OutputType) Set ¶
func (o *OutputType) Set(s string) error
func (*OutputType) String ¶
func (o *OutputType) String() string
func (*OutputType) Type ¶
func (o *OutputType) Type() string
func (*OutputType) UnmarshalJSON ¶
func (o *OutputType) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.