Documentation ¶
Index ¶
- Constants
- func Action(r *v1.Route) string
- func AuthConfig(list extauthv1.AuthConfigList, w io.Writer)
- func Destinations(d *gloov1.Destination) string
- func GenerateKubeCrdString(in resources.InputResource, resourceCrd crd.Crd) (string, error)
- func Matcher(m *matchers.Matcher) (string, string, string, string)
- func Matchers(ms []*matchers.Matcher) (string, string, string, string)
- func PrintAuthConfigs(authConfigs extauthv1.AuthConfigList, outputType OutputType) error
- 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 PrintRateLimitConfigs(ratelimitConfigs ratelimit.RateLimitConfigList, 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(ctx context.Context, virtualServices v1.VirtualServiceList, ...) error
- func ProxyTable(list v1.ProxyList, w io.Writer)
- func RateLimitConfig(list ratelimit.RateLimitConfigList, 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 SetRateLimitConfig(list ratelimit.RateLimitConfigList, w io.Writer)
- func UpstreamGroupTable(upstreamGroups []*v1.UpstreamGroup, w io.Writer)
- func UpstreamTable(xdsDump *xdsinspection.XdsDump, upstreams []*v1.Upstream, w io.Writer)
- func VirtualServiceTable(ctx context.Context, list []*v1.VirtualService, w io.Writer, namespace string)
- type CheckPrinters
- type CheckResult
- type CheckStatus
- type OutputType
- type P
Constants ¶
View Source
const DryRunFallbackOutputType = KUBE_YAML
Variables ¶
This section is empty.
Functions ¶
func AuthConfig ¶ added in v1.0.0
func AuthConfig(list extauthv1.AuthConfigList, w io.Writer)
prints AuthConfigs using tables to io.Writer
func Destinations ¶
func Destinations(d *gloov1.Destination) string
helper function to parse destinations
func GenerateKubeCrdString ¶ added in v0.18.22
func PrintAuthConfigs ¶ added in v1.0.0
func PrintAuthConfigs(authConfigs extauthv1.AuthConfigList, outputType OutputType) error
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 PrintRateLimitConfigs ¶ added in v1.6.11
func PrintRateLimitConfigs(ratelimitConfigs ratelimit.RateLimitConfigList, outputType OutputType) error
func PrintRouteTables ¶ added in v0.20.3
func PrintRouteTables(routeTables v1.RouteTableList, outputType OutputType) error
func PrintRoutes ¶ added in v0.18.6
func PrintRoutes(routes []*v1.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(ctx context.Context, virtualServices v1.VirtualServiceList, outputType OutputType, namespace string) error
func ProxyTable ¶
PrintTable prints proxies using tables to io.Writer
func RateLimitConfig ¶ added in v1.6.11
func RateLimitConfig(list ratelimit.RateLimitConfigList, w io.Writer)
prints RateLimitConfigs using tables to io.Writer
func RouteTable ¶
PrintTable prints the list of routes as a table
func RouteTableTable ¶ added in v0.20.3
func RouteTableTable(list []*v1.RouteTable, w io.Writer)
PrintTable prints virtual services using tables to io.Writer
func SecretTable ¶ added in v0.18.6
func SecretTable(list v1.SecretList, w io.Writer)
PrintTable prints secrets using tables to io.Writer
func SetRateLimitConfig ¶ added in v1.6.11
func SetRateLimitConfig(list ratelimit.RateLimitConfigList, w 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 ¶
PrintTable prints upstreams using tables to io.Writer
func VirtualServiceTable ¶
func VirtualServiceTable(ctx context.Context, list []*v1.VirtualService, w io.Writer, namespace string)
PrintTable prints virtual services using tables to io.Writer
Types ¶
type CheckPrinters ¶ added in v1.9.0
type CheckResult ¶ added in v1.9.0
type CheckResult struct { Resources []CheckStatus `json:"resources"` Messages []string `json:"messages"` Errors []string `json:"errors"` }
type CheckStatus ¶ added in v1.9.0
type OutputType ¶ added in v0.18.6
type OutputType int
const ( TABLE OutputType = iota YAML JSON KUBE_YAML WIDE )
func (*OutputType) IsJSON ¶ added in v1.9.0
func (o *OutputType) IsJSON() 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
type P ¶ added in v1.9.0
type P struct { OutputType OutputType CheckResult *CheckResult }
func (P) AppendCheck ¶ added in v1.9.0
func (P) AppendError ¶ added in v1.9.0
func (P) AppendMessage ¶ added in v1.9.0
func (P) AppendStatus ¶ added in v1.9.0
func (P) NewCheckResult ¶ added in v1.9.0
func (p P) NewCheckResult() *CheckResult
func (P) PrintChecks ¶ added in v1.9.0
Click to show internal directories.
Click to hide internal directories.