generator

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const OriginSecrets = "secrets"

OriginSecrets is a marker to indicate by which ProxyGenerator resources were generated.

Variables

This section is empty.

Functions

func CreateCaSecretResource

func CreateCaSecretResource(name string, ca *core_xds.CaSecret) *core_xds.Resource

func CreateIdentitySecretResource

func CreateIdentitySecretResource(name string, identity *core_xds.IdentitySecret) *core_xds.Resource

Types

type Generator

type Generator struct {
}

func (Generator) Generate

func (g Generator) Generate(
	ctx xds_context.Context,
	proxy *core_xds.Proxy,
) (*core_xds.ResourceSet, error)

Generate uses the SecretsTracker on Proxy and generates whatever secrets were used in the config generation.

func (Generator) GenerateForZoneEgress

func (g Generator) GenerateForZoneEgress(
	ctx xds_context.Context,
	proxyId core_xds.ProxyId,
	zoneEgressResource *core_mesh.ZoneEgressResource,
	secretsTracker core_xds.SecretsTracker,
	mesh *core_mesh.MeshResource,
) (*core_xds.ResourceSet, error)

GenerateForZoneEgress generates whatever secrets were referenced in the zone egress config generation.

Jump to

Keyboard shortcuts

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