resolver

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthCertificate

type AuthCertificate interface {
	GetAuthCertificate(string) (*AuthSSLCert, error)
}

AuthCertificate resolves a given secret name into an SSL certificate. The secret must contain 3 keys named:

ca.crt: contains the certificate chain used for authentication

type AuthSSLCert

type AuthSSLCert struct {
	// Secret contains the name of the secret this was fetched from
	Secret string `json:"secret"`
	// CrtFileName contains the path to the secrets 'tls.crt' and 'tls.key'
	CrtFileName string `json:"crtFilename"`
	// CAFileName contains the path to the secrets 'ca.crt'
	CAFileName string `json:"caFilename"`
	// CRLFileName contains the path to the secrets 'ca.crl'
	CRLFileName string `json:"crlFileName"`
	// PemSHA contains the SHA1 hash of the 'ca.crt' or combinations of (tls.crt, tls.key, tls.crt) depending on certs in secret
	PemSHA string `json:"pemSha"`
}

AuthSSLCert contains the necessary information to do certificate based authentication of an ingress location

func (*AuthSSLCert) Equal

func (asslc1 *AuthSSLCert) Equal(assl2 *AuthSSLCert) bool

Equal tests for equality between two AuthSSLCert types

type Configuration

type Configuration interface {
	GetFullResourceName(name, currentNamespace string) string
}

Configuration has methods of Ingress Controller configurations

type DefaultBackend

type DefaultBackend interface {
	GetDefaultBackend() defaults.Backend
}

DefaultBackend has a method that returns the backend that must be used as default

type Secret

type Secret interface {
	GetSecret(string) (*apiv1.Secret, error)
}

Secret has a method that searches for secrets contenating the namespace and name using a the character /

type Service

type Service interface {
	GetService(string) (*apiv1.Service, error)
}

Service has a method that searches for services contenating the namespace and name using a the character /

Jump to

Keyboard shortcuts

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