snapshot

package
v1.20.13 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfigWrapper

type AuthConfigWrapper struct {
	*v1.AuthConfig
	// contains filtered or unexported fields
}

func NewAuthConfigWrapper

func NewAuthConfigWrapper(authConfig *v1.AuthConfig, fileOrigin string) *AuthConfigWrapper

func (*AuthConfigWrapper) FileOrigin

func (w *AuthConfigWrapper) FileOrigin() string

func (*AuthConfigWrapper) HasFileOrigin

func (w *AuthConfigWrapper) HasFileOrigin(fileOrigin string) *AuthConfigWrapper

func (*AuthConfigWrapper) Index

type DirectResponseWrapper

type DirectResponseWrapper struct {
	*v1alpha1.DirectResponse
	// contains filtered or unexported fields
}

func NewDirectResponseWrapper

func NewDirectResponseWrapper(resp *v1alpha1.DirectResponse, fileOrigin string) *DirectResponseWrapper

func (*DirectResponseWrapper) FileOrigin

func (w *DirectResponseWrapper) FileOrigin() string

func (*DirectResponseWrapper) HasFileOrigin

func (w *DirectResponseWrapper) HasFileOrigin(fileOrigin string) *DirectResponseWrapper

func (*DirectResponseWrapper) Index

type GatewayParametersWrapper

type GatewayParametersWrapper struct {
	*v1alpha1.GatewayParameters
	// contains filtered or unexported fields
}

func NewGatewayParametersWrapper

func NewGatewayParametersWrapper(params *v1alpha1.GatewayParameters, fileOrigin string) *GatewayParametersWrapper

func (*GatewayParametersWrapper) FileOrigin

func (w *GatewayParametersWrapper) FileOrigin() string

func (*GatewayParametersWrapper) HasFileOrigin

func (w *GatewayParametersWrapper) HasFileOrigin(fileOrigin string) *GatewayParametersWrapper

func (*GatewayParametersWrapper) Index

type GatewayWrapper

type GatewayWrapper struct {
	*gwv1.Gateway
	// contains filtered or unexported fields
}

func NewGatewayWrapper

func NewGatewayWrapper(gw *gwv1.Gateway, fileOrigin string) *GatewayWrapper

func (*GatewayWrapper) FileOrigin

func (w *GatewayWrapper) FileOrigin() string

func (*GatewayWrapper) HasFileOrigin

func (w *GatewayWrapper) HasFileOrigin(fileOrigin string) *GatewayWrapper

func (*GatewayWrapper) Index

func (w *GatewayWrapper) Index() types.NamespacedName

type GlooGatewayWrapper

type GlooGatewayWrapper struct {
	*gatewaykube.Gateway
	// contains filtered or unexported fields
}

func NewGlooGatewayWrapper

func NewGlooGatewayWrapper(gateway *gatewaykube.Gateway, fileOrigin string) *GlooGatewayWrapper

func (*GlooGatewayWrapper) FileOrigin

func (w *GlooGatewayWrapper) FileOrigin() string

func (*GlooGatewayWrapper) HasFileOrigin

func (w *GlooGatewayWrapper) HasFileOrigin(fileOrigin string) *GlooGatewayWrapper

func (*GlooGatewayWrapper) Index

type HTTPListenerOptionWrapper

type HTTPListenerOptionWrapper struct {
	*gatewaykube.HttpListenerOption
	// contains filtered or unexported fields
}

func NewHTTPListenerOptionWrapper

func NewHTTPListenerOptionWrapper(opt *gatewaykube.HttpListenerOption, fileOrigin string) *HTTPListenerOptionWrapper

func (*HTTPListenerOptionWrapper) FileOrigin

func (w *HTTPListenerOptionWrapper) FileOrigin() string

func (*HTTPListenerOptionWrapper) HasFileOrigin

func (w *HTTPListenerOptionWrapper) HasFileOrigin(fileOrigin string) *HTTPListenerOptionWrapper

func (*HTTPListenerOptionWrapper) Index

type HTTPRouteWrapper

type HTTPRouteWrapper struct {
	*gwv1.HTTPRoute
	// contains filtered or unexported fields
}

func NewHTTPRouteWrapper

func NewHTTPRouteWrapper(httpRoute *gwv1.HTTPRoute, fileOrigin string) *HTTPRouteWrapper

func (*HTTPRouteWrapper) FileOrigin

func (w *HTTPRouteWrapper) FileOrigin() string

func (*HTTPRouteWrapper) HasFileOrigin

func (w *HTTPRouteWrapper) HasFileOrigin(fileOrigin string) *HTTPRouteWrapper

func (*HTTPRouteWrapper) Index

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

func FromGlooSnapshot

func FromGlooSnapshot(snapshotFile string) (*Instance, error)

func FromYamlFiles

func FromYamlFiles(files []string) (*Instance, error)

func (*Instance) AddAuthConfig

func (i *Instance) AddAuthConfig(d *AuthConfigWrapper)

func (*Instance) AddDirectResponse

func (i *Instance) AddDirectResponse(d *DirectResponseWrapper)

func (*Instance) AddGateway

func (i *Instance) AddGateway(route *GatewayWrapper)

func (*Instance) AddGatewayParameters

func (i *Instance) AddGatewayParameters(w *GatewayParametersWrapper)

func (*Instance) AddGlooGateway

func (i *Instance) AddGlooGateway(g *GlooGatewayWrapper)

func (*Instance) AddHTTPListenerOption

func (i *Instance) AddHTTPListenerOption(h *HTTPListenerOptionWrapper)

func (*Instance) AddHTTPRoute

func (i *Instance) AddHTTPRoute(route *HTTPRouteWrapper)

func (*Instance) AddListenerOption

func (i *Instance) AddListenerOption(l *ListenerOptionWrapper)

func (*Instance) AddListenerSet

func (i *Instance) AddListenerSet(l *ListenerSetWrapper)

func (*Instance) AddRouteOption

func (i *Instance) AddRouteOption(r *RouteOptionWrapper)

func (*Instance) AddRouteTable

func (i *Instance) AddRouteTable(r *RouteTableWrapper)

func (*Instance) AddSettings

func (i *Instance) AddSettings(d *SettingsWrapper)

func (*Instance) AddUpstream

func (i *Instance) AddUpstream(u *UpstreamWrapper)

func (*Instance) AddVirtualHostOption

func (i *Instance) AddVirtualHostOption(v *VirtualHostOptionWrapper)

func (*Instance) AddVirtualService

func (i *Instance) AddVirtualService(v *VirtualServiceWrapper)

func (*Instance) AddYamlObject

func (i *Instance) AddYamlObject(y *YAMLWrapper)

func (*Instance) AuthConfigs

func (i *Instance) AuthConfigs() map[types.NamespacedName]*AuthConfigWrapper

func (*Instance) DelegatedRouteTables

func (i *Instance) DelegatedRouteTables(namespace string, delegateAction *api.DelegateAction) ([]*RouteTableWrapper, error)

DelegatedRouteTables finds all RouteTables that match the virtual service delegate selector

func (*Instance) DirectResponses

func (i *Instance) DirectResponses() map[types.NamespacedName]*DirectResponseWrapper

func (*Instance) GatewayParameters

func (i *Instance) GatewayParameters() map[types.NamespacedName]*GatewayParametersWrapper

func (*Instance) Gateways

func (i *Instance) Gateways() map[types.NamespacedName]*GatewayWrapper

func (*Instance) GetUpstream

func (i *Instance) GetUpstream(namespacedName types.NamespacedName) *UpstreamWrapper

func (*Instance) GlooGatewayVirtualServices

func (i *Instance) GlooGatewayVirtualServices(gateway *GlooGatewayWrapper) ([]*VirtualServiceWrapper, error)

GlooGatewayVirtualServices finds all VirtualServiceWrapper that match the gateways selectors

func (*Instance) GlooGateways

func (i *Instance) GlooGateways() map[types.NamespacedName]*GlooGatewayWrapper

func (*Instance) HTTPListenerOptions

func (i *Instance) HTTPListenerOptions() map[types.NamespacedName]*HTTPListenerOptionWrapper

func (*Instance) HTTPRoutes

func (i *Instance) HTTPRoutes() map[types.NamespacedName]*HTTPRouteWrapper

func (*Instance) ListenerOptions

func (i *Instance) ListenerOptions() map[types.NamespacedName]*ListenerOptionWrapper

func (*Instance) ListenerSets

func (i *Instance) ListenerSets() map[types.NamespacedName]*ListenerSetWrapper

func (*Instance) ParseErrors

func (i *Instance) ParseErrors() []error

func (*Instance) RouteOptions

func (i *Instance) RouteOptions() map[types.NamespacedName]*RouteOptionWrapper

func (*Instance) RouteTables

func (i *Instance) RouteTables() map[types.NamespacedName]*RouteTableWrapper

func (*Instance) Settings

func (i *Instance) Settings() map[types.NamespacedName]*SettingsWrapper

func (*Instance) Upstreams

func (i *Instance) Upstreams() map[types.NamespacedName]*UpstreamWrapper

func (*Instance) VirtualHostOptions

func (i *Instance) VirtualHostOptions() map[types.NamespacedName]*VirtualHostOptionWrapper

func (*Instance) VirtualServices

func (i *Instance) VirtualServices() map[types.NamespacedName]*VirtualServiceWrapper

func (*Instance) VirtualServicesByNameNamespace

func (i *Instance) VirtualServicesByNameNamespace(name, namespace string) []*VirtualServiceWrapper

func (*Instance) YAMLObjects

func (i *Instance) YAMLObjects() []*YAMLWrapper

type ListenerOptionWrapper

type ListenerOptionWrapper struct {
	*gatewaykube.ListenerOption
	// contains filtered or unexported fields
}

func NewListenerOptionWrapper

func NewListenerOptionWrapper(opt *gatewaykube.ListenerOption, fileOrigin string) *ListenerOptionWrapper

func (*ListenerOptionWrapper) FileOrigin

func (w *ListenerOptionWrapper) FileOrigin() string

func (*ListenerOptionWrapper) HasFileOrigin

func (w *ListenerOptionWrapper) HasFileOrigin(fileOrigin string) *ListenerOptionWrapper

func (*ListenerOptionWrapper) Index

type ListenerSetWrapper

type ListenerSetWrapper struct {
	*apixv1a1.XListenerSet
	// contains filtered or unexported fields
}

func NewListenerSetWrapper

func NewListenerSetWrapper(listenerSet *apixv1a1.XListenerSet, fileOrigin string) *ListenerSetWrapper

func (*ListenerSetWrapper) FileOrigin

func (w *ListenerSetWrapper) FileOrigin() string

func (*ListenerSetWrapper) HasFileOrigin

func (w *ListenerSetWrapper) HasFileOrigin(fileOrigin string) *ListenerSetWrapper

func (*ListenerSetWrapper) Index

type RouteOptionWrapper

type RouteOptionWrapper struct {
	*gatewaykube.RouteOption
	// contains filtered or unexported fields
}

func NewRouteOptionWrapper

func NewRouteOptionWrapper(opt *gatewaykube.RouteOption, fileOrigin string) *RouteOptionWrapper

func (*RouteOptionWrapper) FileOrigin

func (w *RouteOptionWrapper) FileOrigin() string

func (*RouteOptionWrapper) HasFileOrigin

func (w *RouteOptionWrapper) HasFileOrigin(fileOrigin string) *RouteOptionWrapper

func (*RouteOptionWrapper) Index

type RouteTableWrapper

type RouteTableWrapper struct {
	*gatewaykube.RouteTable
	// contains filtered or unexported fields
}

func (*RouteTableWrapper) FileOrigin

func (w *RouteTableWrapper) FileOrigin() string

func (*RouteTableWrapper) HasFileOrigin

func (w *RouteTableWrapper) HasFileOrigin(fileOrigin string) *RouteTableWrapper

func (*RouteTableWrapper) Index

type SettingsWrapper

type SettingsWrapper struct {
	*glookube.Settings
	// contains filtered or unexported fields
}

func NewSettingsWrapper

func NewSettingsWrapper(settings *glookube.Settings, fileOrigin string) *SettingsWrapper

func (*SettingsWrapper) FileOrigin

func (w *SettingsWrapper) FileOrigin() string

func (*SettingsWrapper) HasFileOrigin

func (w *SettingsWrapper) HasFileOrigin(fileOrigin string) *SettingsWrapper

func (*SettingsWrapper) Index

type UpstreamWrapper

type UpstreamWrapper struct {
	*glookube.Upstream
	// contains filtered or unexported fields
}

func NewUpstreamWrapper

func NewUpstreamWrapper(upstream *glookube.Upstream, fileOrigin string) *UpstreamWrapper

func (*UpstreamWrapper) FileOrigin

func (w *UpstreamWrapper) FileOrigin() string

func (*UpstreamWrapper) HasFileOrigin

func (w *UpstreamWrapper) HasFileOrigin(fileOrigin string) *UpstreamWrapper

func (*UpstreamWrapper) Index

type VirtualHostOptionWrapper

type VirtualHostOptionWrapper struct {
	*gatewaykube.VirtualHostOption
	// contains filtered or unexported fields
}

func NewVirtualHostOptionWrapper

func NewVirtualHostOptionWrapper(opt *gatewaykube.VirtualHostOption, fileOrigin string) *VirtualHostOptionWrapper

func (*VirtualHostOptionWrapper) FileOrigin

func (w *VirtualHostOptionWrapper) FileOrigin() string

func (*VirtualHostOptionWrapper) HasFileOrigin

func (w *VirtualHostOptionWrapper) HasFileOrigin(fileOrigin string) *VirtualHostOptionWrapper

func (*VirtualHostOptionWrapper) Index

type VirtualServiceWrapper

type VirtualServiceWrapper struct {
	*gatewaykube.VirtualService
	// contains filtered or unexported fields
}

func NewVirtualServiceWrapper

func NewVirtualServiceWrapper(virtualService *gatewaykube.VirtualService, fileOrigin string) *VirtualServiceWrapper

func (*VirtualServiceWrapper) FileOrigin

func (w *VirtualServiceWrapper) FileOrigin() string

func (*VirtualServiceWrapper) HasFileOrigin

func (w *VirtualServiceWrapper) HasFileOrigin(fileOrigin string) *VirtualServiceWrapper

func (*VirtualServiceWrapper) Index

type Wrapper

type Wrapper interface {
	GetName() string
	GetNamespace() string
	Index() types.NamespacedName
	GetLabels() map[string]string
	GetObjectKind() schema.ObjectKind
	FileOrigin() string
}

type YAMLWrapper

type YAMLWrapper struct {
	runtime.Object

	Yaml string
	// contains filtered or unexported fields
}

func NewYAMLWrapper

func NewYAMLWrapper(obj runtime.Object, fileOrigin string) *YAMLWrapper

func (*YAMLWrapper) FileOrigin

func (w *YAMLWrapper) FileOrigin() string

func (*YAMLWrapper) GetLabels

func (w *YAMLWrapper) GetLabels() map[string]string

func (*YAMLWrapper) GetName

func (w *YAMLWrapper) GetName() string

func (*YAMLWrapper) GetNamespace

func (w *YAMLWrapper) GetNamespace() string

func (*YAMLWrapper) HasFileOrigin

func (w *YAMLWrapper) HasFileOrigin(fileOrigin string) *YAMLWrapper

func (*YAMLWrapper) Index

func (w *YAMLWrapper) Index() types.NamespacedName

func (*YAMLWrapper) ObjectKind

func (w *YAMLWrapper) ObjectKind() schema.ObjectKind

Jump to

Keyboard shortcuts

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