Documentation ¶
Index ¶
- func IsCritical(e error) bool
- func IsCriticalError(e error, reason ErrorType) bool
- func IsNonCritical(e error) bool
- func IsNonCriticalError(e error, reason ErrorType) bool
- func NewCriticalError(reason ErrorType) error
- func NewNonCriticalError(reason ErrorType) error
- type CriticalError
- type ErrorType
- type NonCriticalError
- type RenderContext
- type Renderer
- type RendererConfig
- type TypedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCriticalError ¶
IsCriticalError returns true of an error is a critical error of the given type.
func IsNonCritical ¶
IsNonCritical returns true of an error is critical.
func IsNonCriticalError ¶
IsNonCriticalError returns true of an error is a critical error of the given type.
func NewCriticalError ¶
NewCriticalError creates a new fatal error.
func NewNonCriticalError ¶
NewNonCriticalError creates a new non-critical render error object.
Types ¶
type CriticalError ¶
type CriticalError struct {
TypedError
}
CriticalError is a fatal rendering error that prevents the rendering the dataplane config as a whole, or in parts.
func (*CriticalError) Error ¶
func (e *CriticalError) Error() string
Error returns an error message.
type ErrorType ¶
type ErrorType int
ErrorType species the type of a non-critical rendering error
const ( NoError ErrorType = iota // critical InvalidAuthType InvalidUsernamePassword InvalidDataplane NoRuleFound ExternalAuthCredentialsNotFound InvalidAuthConfig RenderingError InternalError // noncritical InvalidBackendGroup InvalidBackendKind BackendNotFound ServiceNotFound ClusterIPNotFound EndpointNotFound InconsitentClusterType InvalidProtocol InvalidPortRange PublicAddressNotFound PublicListenerAddressNotFound )
type NonCriticalError ¶
type NonCriticalError struct {
TypedError
}
NonCriticalError is a non-fatal error that affects a Gateway or a Route status: this is an event that is worth reporting but otherwise does not prevent the rendering of a valid dataplane config.
func (*NonCriticalError) Error ¶
func (e *NonCriticalError) Error() string
Error returns an error message.
type RenderContext ¶
type RenderContext struct {
// contains filtered or unexported fields
}
RenderContext contains the GatewayClass and the GatewayConfig for the current rendering task, plus additional metadata
func NewRenderContext ¶
func NewRenderContext(e *event.EventRender, r *Renderer, gc *gwapiv1.GatewayClass) *RenderContext
func (*RenderContext) Merge ¶ added in v0.15.1
func (r *RenderContext) Merge(mergeable *RenderContext)
Merge merges the update queues of two rendering contexts.
type Renderer ¶
type Renderer struct { *config.ProgressTracker // contains filtered or unexported fields }
func NewRenderer ¶
func NewRenderer(cfg RendererConfig) *Renderer
NewRenderer creates a new Renderer.
func (*Renderer) GetRenderChannel ¶
GetRenderChannel returns the channel onn which the renderer listenens to rendering requests.
func (*Renderer) Render ¶
func (r *Renderer) Render(e *event.EventRender)
Render generates and sets a STUNner daemon configuration from the Gateway API running-config
func (*Renderer) SetOperatorChannel ¶
SetOperatorChannel sets the channel on which the operator event dispatcher listens.
type TypedError ¶
type TypedError struct {
// contains filtered or unexported fields
}
Source Files ¶
- admin_render.go
- auth_render.go
- cluster_render.go
- configmap_util.go
- dataplane_util.go
- endpoint_util.go
- errors.go
- gateway_util.go
- gatewayclass_util.go
- gatewayconfig_util.go
- listener_render.go
- node_util.go
- render_context.go
- render_pipeline.go
- render_test_suite.go
- renderer.go
- secret_util.go
- service_util.go
- udproute_util.go