rainbond: github.com/goodrain/rainbond/gateway/annotations/resolver Index | Files

package resolver

import "github.com/goodrain/rainbond/gateway/annotations/resolver"

Index

Package Files

mock.go resolver.go

type AuthSSLCert Uses

type AuthSSLCert struct {
    // Secret contains the name of the secret this was fetched from
    Secret string `json:"secret"`
    // CAFileName contains the path to the secrets 'ca.crt'
    CAFileName string `json:"caFilename"`
    // 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 Uses

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

Equal tests for equality between two AuthSSLCert types

type Mock Uses

type Mock struct {
}

Mock implements the Resolver interface

func (Mock) GetAuthCertificate Uses

func (m Mock) GetAuthCertificate(string) (*AuthSSLCert, error)

GetAuthCertificate 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

func (Mock) GetDefaultBackend Uses

func (m Mock) GetDefaultBackend() defaults.Backend

GetDefaultBackend returns the backend that must be used as default

func (Mock) GetSecret Uses

func (m Mock) GetSecret(string) (*apiv1.Secret, error)

GetSecret searches for secrets contenating the namespace and name using a the character /

func (Mock) GetService Uses

func (m Mock) GetService(string) (*apiv1.Service, error)

GetService searches for services contenating the namespace and name using a the character /

type Resolver Uses

type Resolver interface {
    // GetDefaultBackend returns the backend that must be used as default
    GetDefaultBackend() defaults.Backend
}

Resolver is an interface that knows how to extract information from a controller

Package resolver imports 2 packages (graph) and is imported by 8 packages. Updated 2019-03-20. Refresh now. Tools for package owners.