envoy

package
v0.0.0-...-06831c0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuilderErrUnresolvedReferences = fmt.Errorf("builder error: unresolved references")
)

Functions

func CollectNodes

func CollectNodes(ii ...interface{}) (nn []resource.Interface, err error)

MarshalMerge takes one or more nodes and Marshals and merges all

func Encode

func Encode(ctx context.Context, p Provider, e Encoder) error

@todo errors!

func FilterRequestedRBACRules

func FilterRequestedRBACRules(request resource.InterfaceSet, rules []*resource.RbacRule) (out []*resource.RbacRule)

FilterRequestedRBACRules returns only RBAC rules relevant for the given resources

func FilterRequiredResourceTranslations

func FilterRequiredResourceTranslations(request resource.InterfaceSet, translations []*resource.ResourceTranslation) (out []*resource.ResourceTranslation)

FilterRequiredResourceTranslations returns only resource translations relevant for the given resources

func NewBuilder

func NewBuilder(pp ...Preparer) *builder

func NewSafeBuilder

func NewSafeBuilder(pp ...Preparer) *builder

func NormalizeResourceTranslations

func NormalizeResourceTranslations(rr ...resource.Interface) []resource.Interface

NormalizeResourceTranslations takes the provided resource.ResourceTranslation and merges duplicates based on the Priority parameter

Types

type DecoderOpts

type DecoderOpts struct {
	Name string
	Path string
}

DecoderOpts provides additional context for source decoders

type Encoder

type Encoder interface {
	Encode(ctx context.Context, p Provider) error
}

Encoder encodes all resources provided by the Rc until nil is passed

Encoding errors are passed via Ec.

type Marshaller

type Marshaller interface {
	MarshalEnvoy() ([]resource.Interface, error)
}

type PrepareEncodeStreamer

type PrepareEncodeStreamer interface {
	Preparer
	Encoder
	Streamer
}

type PrepareEncoder

type PrepareEncoder interface {
	Preparer
	Encoder
}

type Preparer

type Preparer interface {
	Prepare(ctx context.Context, ee ...*ResourceState) error
}

type Provider

type Provider interface {
	NextInverted(ctx context.Context) (*ResourceState, error)
}

type ResourceState

type ResourceState struct {
	Res             resource.Interface
	Conflicting     bool
	DepResources    []resource.Interface
	ParentResources []resource.Interface
}

type Stream

type Stream struct {
	Source     io.Reader
	Resource   string
	Identifier string
}

type Streamer

type Streamer interface {
	Stream() []*Stream
}

Streamer provides a set of streams of encoded documents

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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