options

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCertificateOptions

func ParseCertificateOptions(opts ...Certificate) (opt certificateOpt)

func ParseFrameworkOptions

func ParseFrameworkOptions(opts ...Framework) (opt frameworkOpt)

func ParseObjectOptions

func ParseObjectOptions(opts ...Object) (opt objectOpt)

func ParseRequestOptions

func ParseRequestOptions(opts ...Request) (opt requestOpt)

func ParseServerOptions

func ParseServerOptions(opts ...Server) (opt serverOpt)

Types

type Certificate

type Certificate func(o *certificateOpt)

func DNS

func DNS(dns ...string) Certificate

func InvalidDates

func InvalidDates() Certificate

type CustomCallback

type CustomCallback func(client.Object)

type CustomRequestCallback

type CustomRequestCallback func(req *http.Request)

type Framework

type Framework func(o *frameworkOpt)

func CRDs

func CRDs(crds ...string) Framework

type GatewayOpt

type GatewayOpt struct {
	Listeners []ListenerOpt
}

type IngressOpt

type IngressOpt struct {
	DefaultTLS      bool
	CustomTLSSecret string
	CustomHostName  *string
}

type ListenerOpt

type ListenerOpt struct {
	Name  string
	Proto string
	Port  int32
}

type Object

type Object func(o *objectOpt)

func AddConfigKeyAnnotation

func AddConfigKeyAnnotation(key, value string) Object

func Custom

func Custom(custom CustomCallback) Object

func CustomHostName

func CustomHostName(hostname string) Object

func CustomTLS

func CustomTLS(secret string) Object

func DefaultTLS

func DefaultTLS() Object

func Listener

func Listener(name, proto string, port int32) Object

type Request

type Request func(o *requestOpt)

func ClientCA

func ClientCA(ca []byte) Request

func ClientCertificateKeyPEM

func ClientCertificateKeyPEM(crt, key []byte) Request

func CustomRequest

func CustomRequest(custom CustomRequestCallback) Request

func ExpectError

func ExpectError(msg string) Request

func ExpectResponseCode

func ExpectResponseCode(code ...int) Request

func SNI

func SNI(servername string) Request

func TLSRequest

func TLSRequest() Request

func TLSSkipVerify

func TLSSkipVerify() Request

func TLSVerify

func TLSVerify(verify bool) Request

type Server

type Server func(o *serverOpt)

func ClientCACertificate

func ClientCACertificate(ca *x509.Certificate) Server

func ServerCertificates

func ServerCertificates(certs []tls.Certificate) Server

Jump to

Keyboard shortcuts

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