builder

package
v0.0.0-...-1d35728 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthzLogger

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

func (*AuthzLogger) AppendDebugf

func (al *AuthzLogger) AppendDebugf(format string, args ...any)

func (*AuthzLogger) AppendError

func (al *AuthzLogger) AppendError(err error)

func (*AuthzLogger) Report

func (al *AuthzLogger) Report()

type Builder

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

Builder builds Istio authorization policy to Envoy filters.

func New

func New(trustDomainBundle trustdomain.Bundle, push *model.PushContext, policies model.AuthorizationPoliciesResult, option Option) *Builder

New returns a new builder for the given workload with the authorization policy. Returns nil if none of the authorization policies are enabled for the workload.

func (Builder) BuildHTTP

func (b Builder) BuildHTTP() []*hcm.HttpFilter

BuildHTTP returns the HTTP filters built from the authorization policy.

func (Builder) BuildTCP

func (b Builder) BuildTCP() []*listener.Filter

BuildTCP returns the TCP filters built from the authorization policy.

type Option

type Option struct {
	IsCustomBuilder bool
	UseFilterState  bool
}

General setting to control behavior

Jump to

Keyboard shortcuts

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