istio

package
v0.0.0-...-b85674d Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPeerAuthentication

func NewPeerAuthentication(ns, name string, opts ...ObjectOption) *securityv1beta1.PeerAuthentication

NewPeerAuthentication returns a new PeerAuthentication with empty Spec

Types

type ObjectOption

type ObjectOption func(metav1.Object)

ObjectOption is a functional option for API objects builders.

func WithLabel

func WithLabel(key, val string) ObjectOption

WithLabel sets the value of an API object's label.

func WithPermissiveMode

func WithPermissiveMode(port uint32) ObjectOption

WithPermissiveMode sets the mTLS mode of the PeerAuthentication to Permissive for the given port

func WithSelectorSpec

func WithSelectorSpec(labels map[string]string) ObjectOption

WithSelectorSpec selects a workload based on labels

Jump to

Keyboard shortcuts

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