fakes

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvoyConfParser

type EnvoyConfParser struct {
	ReadUnmarshalEnvoyConfigCall struct {
		CallCount int
		Receives  struct {
			EnvoyConfFile string
		}
		Returns struct {
			EnvoyConf parser.EnvoyConf
			Error     error
		}
	}

	GetClustersCall struct {
		CallCount int
		Receives  struct {
			EnvoyConf parser.EnvoyConf
		}
		Returns struct {
			Clusters                []parser.Cluster
			NameToPortAndCiphersMap map[string]parser.PortAndCiphers
		}
	}

	GetMTLSCall struct {
		CallCount int
		Receives  struct {
			EnvoyConf parser.EnvoyConf
		}
		Returns struct {
			MTLS bool
		}
	}
}

func (*EnvoyConfParser) GetClusters

func (e *EnvoyConfParser) GetClusters(envoyConf parser.EnvoyConf) ([]parser.Cluster, map[string]parser.PortAndCiphers)

func (*EnvoyConfParser) GetMTLS added in v0.4.0

func (e *EnvoyConfParser) GetMTLS(envoyConf parser.EnvoyConf) bool

func (*EnvoyConfParser) ReadUnmarshalEnvoyConfig added in v0.4.0

func (e *EnvoyConfParser) ReadUnmarshalEnvoyConfig(envoyConfFile string) (parser.EnvoyConf, error)

type SdsCredParser

type SdsCredParser struct {
	GetCertAndKeyCall struct {
		CallCount int
		Returns   struct {
			Cert  string
			Key   string
			Error error
		}
	}
}

func (SdsCredParser) GetCertAndKey

func (e SdsCredParser) GetCertAndKey() (string, string, error)

type SdsServerValidationParser

type SdsServerValidationParser struct {
	GetCACertCall struct {
		CallCount int
		Returns   struct {
			CA    string
			Error error
		}
	}
}

func (SdsServerValidationParser) GetCACert

func (s SdsServerValidationParser) GetCACert() (string, error)

Jump to

Keyboard shortcuts

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