Documentation
¶
Index ¶
- Constants
- func NewPortForwardedClient(ctx context.Context, kubectlCli *kubectl.Cli, proxySelector, namespace string) (*admincli.Client, func(), error)
- func RandStringRunes(n int) string
- func RootCmd(op *options.Options) *cobra.Command
- type ErrorType
- type GatewayAPICache
- func (g *GatewayAPICache) AddAuthConfig(a *snapshot.AuthConfigWrapper)
- func (g *GatewayAPICache) AddDirectResponse(d *snapshot.DirectResponseWrapper)
- func (g *GatewayAPICache) AddGateway(gw *snapshot.GatewayWrapper)
- func (g *GatewayAPICache) AddHTTPListenerOption(h *snapshot.HTTPListenerOptionWrapper)
- func (g *GatewayAPICache) AddHTTPRoute(route *snapshot.HTTPRouteWrapper)
- func (g *GatewayAPICache) AddListenerOption(l *snapshot.ListenerOptionWrapper)
- func (g *GatewayAPICache) AddListenerSet(l *snapshot.ListenerSetWrapper)
- func (g *GatewayAPICache) AddRouteOption(r *snapshot.RouteOptionWrapper)
- func (g *GatewayAPICache) AddSettings(s *snapshot.SettingsWrapper)
- func (g *GatewayAPICache) AddUpstream(u *snapshot.UpstreamWrapper)
- func (g *GatewayAPICache) AddVirtualHostOption(v *snapshot.VirtualHostOptionWrapper)
- func (g *GatewayAPICache) AddYAML(y *snapshot.YAMLWrapper)
- func (g *GatewayAPICache) GetGateway(namespacedName types.NamespacedName) *snapshot.GatewayWrapper
- type GatewayAPIOutput
- func (o *GatewayAPIOutput) AddError(errType ErrorType, msg string, args ...interface{})
- func (o *GatewayAPIOutput) AddErrorFromWrapper(errType ErrorType, wrapper snapshot.Wrapper, msg string, args ...interface{})
- func (o *GatewayAPIOutput) Convert() error
- func (o *GatewayAPIOutput) EdgeCache(instance *snapshot.Instance)
- func (o *GatewayAPIOutput) GetEdgeCache() *snapshot.Instance
- func (o *GatewayAPIOutput) GetGatewayAPICache() *GatewayAPICache
- func (o *GatewayAPIOutput) PostProcess(opts *Options) error
- func (o *GatewayAPIOutput) PreProcess(splitMatchers bool) error
- func (o *GatewayAPIOutput) PrintMetrics(filesEvaluated int)
- func (o *GatewayAPIOutput) Write(opts *Options) error
- type GlooError
- type Options
- type YamlMarshaller
Constants ¶
View Source
const ( RandomSuffix = 4 RandomSeed = 1 )
View Source
const ( ERROR_TYPE_UPDATE_OBJECT ErrorType = "UPDATE_OBJECT" ERROR_TYPE_NOT_SUPPORTED = "NOT_SUPPORTED" ERROR_TYPE_IGNORED = "IGNORED" ERROR_TYPE_UNKNOWN_REFERENCE = "UNKNOWN_REFERENCE" ERROR_TYPE_NO_REFERENCES = "NO_REFERENCES" ERROR_TYPE_CEL_VALIDATION_CORRECTION = "CEL_VALIDATION_CORRECTION" )
Variables ¶
This section is empty.
Functions ¶
func NewPortForwardedClient ¶
func RandStringRunes ¶
Types ¶
type GatewayAPICache ¶ added in v1.20.0
type GatewayAPICache struct {
YamlObjects []*snapshot.YAMLWrapper
HTTPRoutes map[types.NamespacedName]*snapshot.HTTPRouteWrapper
RouteOptions map[types.NamespacedName]*snapshot.RouteOptionWrapper
VirtualHostOptions map[types.NamespacedName]*snapshot.VirtualHostOptionWrapper
ListenerOptions map[types.NamespacedName]*snapshot.ListenerOptionWrapper
HTTPListenerOptions map[types.NamespacedName]*snapshot.HTTPListenerOptionWrapper
DirectResponses map[types.NamespacedName]*snapshot.DirectResponseWrapper
Upstreams map[types.NamespacedName]*snapshot.UpstreamWrapper
AuthConfigs map[types.NamespacedName]*snapshot.AuthConfigWrapper
Gateways map[types.NamespacedName]*snapshot.GatewayWrapper
ListenerSets map[types.NamespacedName]*snapshot.ListenerSetWrapper
Settings map[types.NamespacedName]*snapshot.SettingsWrapper
}
func (*GatewayAPICache) AddAuthConfig ¶ added in v1.20.0
func (g *GatewayAPICache) AddAuthConfig(a *snapshot.AuthConfigWrapper)
func (*GatewayAPICache) AddDirectResponse ¶ added in v1.20.0
func (g *GatewayAPICache) AddDirectResponse(d *snapshot.DirectResponseWrapper)
func (*GatewayAPICache) AddGateway ¶ added in v1.20.0
func (g *GatewayAPICache) AddGateway(gw *snapshot.GatewayWrapper)
func (*GatewayAPICache) AddHTTPListenerOption ¶ added in v1.20.0
func (g *GatewayAPICache) AddHTTPListenerOption(h *snapshot.HTTPListenerOptionWrapper)
func (*GatewayAPICache) AddHTTPRoute ¶ added in v1.20.0
func (g *GatewayAPICache) AddHTTPRoute(route *snapshot.HTTPRouteWrapper)
func (*GatewayAPICache) AddListenerOption ¶ added in v1.20.0
func (g *GatewayAPICache) AddListenerOption(l *snapshot.ListenerOptionWrapper)
func (*GatewayAPICache) AddListenerSet ¶ added in v1.20.0
func (g *GatewayAPICache) AddListenerSet(l *snapshot.ListenerSetWrapper)
func (*GatewayAPICache) AddRouteOption ¶ added in v1.20.0
func (g *GatewayAPICache) AddRouteOption(r *snapshot.RouteOptionWrapper)
func (*GatewayAPICache) AddSettings ¶ added in v1.20.0
func (g *GatewayAPICache) AddSettings(s *snapshot.SettingsWrapper)
func (*GatewayAPICache) AddUpstream ¶ added in v1.20.0
func (g *GatewayAPICache) AddUpstream(u *snapshot.UpstreamWrapper)
func (*GatewayAPICache) AddVirtualHostOption ¶ added in v1.20.0
func (g *GatewayAPICache) AddVirtualHostOption(v *snapshot.VirtualHostOptionWrapper)
func (*GatewayAPICache) AddYAML ¶ added in v1.20.0
func (g *GatewayAPICache) AddYAML(y *snapshot.YAMLWrapper)
func (*GatewayAPICache) GetGateway ¶ added in v1.20.0
func (g *GatewayAPICache) GetGateway(namespacedName types.NamespacedName) *snapshot.GatewayWrapper
type GatewayAPIOutput ¶
type GatewayAPIOutput struct {
// contains filtered or unexported fields
}
func NewGatewayAPIOutput ¶
func NewGatewayAPIOutput() *GatewayAPIOutput
func (*GatewayAPIOutput) AddError ¶
func (o *GatewayAPIOutput) AddError(errType ErrorType, msg string, args ...interface{})
func (*GatewayAPIOutput) AddErrorFromWrapper ¶
func (o *GatewayAPIOutput) AddErrorFromWrapper(errType ErrorType, wrapper snapshot.Wrapper, msg string, args ...interface{})
func (*GatewayAPIOutput) Convert ¶
func (o *GatewayAPIOutput) Convert() error
func (*GatewayAPIOutput) EdgeCache ¶ added in v1.20.0
func (o *GatewayAPIOutput) EdgeCache(instance *snapshot.Instance)
func (*GatewayAPIOutput) GetEdgeCache ¶ added in v1.20.0
func (o *GatewayAPIOutput) GetEdgeCache() *snapshot.Instance
func (*GatewayAPIOutput) GetGatewayAPICache ¶ added in v1.20.0
func (o *GatewayAPIOutput) GetGatewayAPICache() *GatewayAPICache
func (*GatewayAPIOutput) PostProcess ¶
func (o *GatewayAPIOutput) PostProcess(opts *Options) error
func (*GatewayAPIOutput) PreProcess ¶
func (o *GatewayAPIOutput) PreProcess(splitMatchers bool) error
func (*GatewayAPIOutput) PrintMetrics ¶ added in v1.20.0
func (o *GatewayAPIOutput) PrintMetrics(filesEvaluated int)
func (*GatewayAPIOutput) Write ¶
func (o *GatewayAPIOutput) Write(opts *Options) error
type Options ¶
type Options struct {
*options.Options
InputFile string
InputDir string
GlooSnapshotFile string
OutputDir string
Stats bool
CombineRouteOptions bool
RetainFolderStructure bool
IncludeUnknownResources bool
DeleteOutputDir bool
CreateNamespaces bool
ControlPlaneName string
ControlPlaneNamespace string
}
type YamlMarshaller ¶
type YamlMarshaller struct{}
func (YamlMarshaller) ToYaml ¶
func (YamlMarshaller) ToYaml(resource interface{}) ([]byte, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.