mocks

package
v0.0.0-...-d85dcc3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicIngress

func BasicIngress(name string, namespace string) *k8sExtensions.Ingress

func BasicIngressBackend

func BasicIngressBackend(service string, port int) k8sExtensions.IngressBackend

func BasicIngressDomain12

func BasicIngressDomain12() *k8sExtensions.Ingress

func BasicIngressDomain12Challenge12

func BasicIngressDomain12Challenge12() *k8sExtensions.Ingress

func BasicIngressRule

func BasicIngressRule(host string, path string, backend k8sExtensions.IngressBackend) k8sExtensions.IngressRule

func DummyTls

func DummyTls(c *gomock.Controller, domainsSlice [][]string) (mockTlsSlice []Tls)

func DummyTlsDomain134

func DummyTlsDomain134(c *gomock.Controller) []Tls

func DummyTlsDomain2

func DummyTlsDomain2(c *gomock.Controller) []Tls

func DummyTlsEmpty

func DummyTlsEmpty(c *gomock.Controller) []Tls

Types

type MockAcme

type MockAcme struct {
	// contains filtered or unexported fields
}

MockAcme is a mock of Acme interface

func NewMockAcme

func NewMockAcme(ctrl *gomock.Controller) *MockAcme

NewMockAcme creates a new mock instance

func (*MockAcme) EXPECT

func (m *MockAcme) EXPECT() *MockAcmeMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAcme) ObtainCertificate

func (m *MockAcme) ObtainCertificate(domains []string) (map[string][]byte, error)

ObtainCertificate mocks base method

type MockAcmeMockRecorder

type MockAcmeMockRecorder struct {
	// contains filtered or unexported fields
}

MockAcmeMockRecorder is the mock recorder for MockAcme

func (*MockAcmeMockRecorder) ObtainCertificate

func (mr *MockAcmeMockRecorder) ObtainCertificate(domains interface{}) *gomock.Call

ObtainCertificate indicates an expected call of ObtainCertificate

type MockIngress

type MockIngress struct {
	// contains filtered or unexported fields
}

MockIngress is a mock of Ingress interface

func DummyIngress

func DummyIngress(c *gomock.Controller, tls []Tls, ingress *k8sExtensions.Ingress) *MockIngress

func DummyIngressDomain1

func DummyIngressDomain1(c *gomock.Controller, tls []Tls) *MockIngress

func DummyIngressDomain12

func DummyIngressDomain12(c *gomock.Controller, tls []Tls) *MockIngress

func DummyIngressDomain12Challenge12

func DummyIngressDomain12Challenge12(c *gomock.Controller, tls []Tls) *MockIngress

func DummyIngressNoRules

func DummyIngressNoRules(c *gomock.Controller, tls []Tls) *MockIngress

func DummyIngressNoRulesTLSDomains134

func DummyIngressNoRulesTLSDomains134(c *gomock.Controller) *MockIngress

func NewMockIngress

func NewMockIngress(ctrl *gomock.Controller) *MockIngress

NewMockIngress creates a new mock instance

func (*MockIngress) Delete

func (m *MockIngress) Delete() error

Delete mocks base method

func (*MockIngress) EXPECT

func (m *MockIngress) EXPECT() *MockIngressMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockIngress) Ignore

func (m *MockIngress) Ignore() bool

Ignore mocks base method

func (*MockIngress) IngressClass

func (m *MockIngress) IngressClass() string

IngressClass mocks base method

func (*MockIngress) IngressProvider

func (m *MockIngress) IngressProvider() string

IngressProvider mocks base method

func (*MockIngress) KubeLego

func (m *MockIngress) KubeLego() KubeLego

KubeLego mocks base method

func (*MockIngress) Log

func (m *MockIngress) Log() *logrus.Entry

Log mocks base method

func (*MockIngress) Object

func (m *MockIngress) Object() *v1beta1.Ingress

Object mocks base method

func (*MockIngress) Save

func (m *MockIngress) Save() error

Save mocks base method

func (*MockIngress) Tls

func (m *MockIngress) Tls() []Tls

Tls mocks base method

type MockIngressMockRecorder

type MockIngressMockRecorder struct {
	// contains filtered or unexported fields
}

MockIngressMockRecorder is the mock recorder for MockIngress

func (*MockIngressMockRecorder) Delete

func (mr *MockIngressMockRecorder) Delete() *gomock.Call

Delete indicates an expected call of Delete

func (*MockIngressMockRecorder) Ignore

func (mr *MockIngressMockRecorder) Ignore() *gomock.Call

Ignore indicates an expected call of Ignore

func (*MockIngressMockRecorder) IngressClass

func (mr *MockIngressMockRecorder) IngressClass() *gomock.Call

IngressClass indicates an expected call of IngressClass

func (*MockIngressMockRecorder) IngressProvider

func (mr *MockIngressMockRecorder) IngressProvider() *gomock.Call

IngressProvider indicates an expected call of IngressProvider

func (*MockIngressMockRecorder) KubeLego

func (mr *MockIngressMockRecorder) KubeLego() *gomock.Call

KubeLego indicates an expected call of KubeLego

func (*MockIngressMockRecorder) Log

func (mr *MockIngressMockRecorder) Log() *gomock.Call

Log indicates an expected call of Log

func (*MockIngressMockRecorder) Object

func (mr *MockIngressMockRecorder) Object() *gomock.Call

Object indicates an expected call of Object

func (*MockIngressMockRecorder) Save

func (mr *MockIngressMockRecorder) Save() *gomock.Call

Save indicates an expected call of Save

func (*MockIngressMockRecorder) Tls

func (mr *MockIngressMockRecorder) Tls() *gomock.Call

Tls indicates an expected call of Tls

type MockIngressProvider

type MockIngressProvider struct {
	// contains filtered or unexported fields
}

MockIngressProvider is a mock of IngressProvider interface

func NewMockIngressProvider

func NewMockIngressProvider(ctrl *gomock.Controller) *MockIngressProvider

NewMockIngressProvider creates a new mock instance

func (*MockIngressProvider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockIngressProvider) Finalize

func (m *MockIngressProvider) Finalize() error

Finalize mocks base method

func (*MockIngressProvider) Log

func (m *MockIngressProvider) Log() *logrus.Entry

Log mocks base method

func (*MockIngressProvider) Process

func (m *MockIngressProvider) Process(arg0 Ingress) error

Process mocks base method

func (*MockIngressProvider) Reset

func (m *MockIngressProvider) Reset() error

Reset mocks base method

type MockIngressProviderMockRecorder

type MockIngressProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockIngressProviderMockRecorder is the mock recorder for MockIngressProvider

func (*MockIngressProviderMockRecorder) Finalize

Finalize indicates an expected call of Finalize

func (*MockIngressProviderMockRecorder) Log

Log indicates an expected call of Log

func (*MockIngressProviderMockRecorder) Process

func (mr *MockIngressProviderMockRecorder) Process(arg0 interface{}) *gomock.Call

Process indicates an expected call of Process

func (*MockIngressProviderMockRecorder) Reset

Reset indicates an expected call of Reset

type MockKubeLego

type MockKubeLego struct {
	// contains filtered or unexported fields
}

MockKubeLego is a mock of KubeLego interface

func DummyKubeLego

func DummyKubeLego(c *gomock.Controller) *MockKubeLego

func NewMockKubeLego

func NewMockKubeLego(ctrl *gomock.Controller) *MockKubeLego

NewMockKubeLego creates a new mock instance

func (*MockKubeLego) AcmeClient

func (m *MockKubeLego) AcmeClient() Acme

AcmeClient mocks base method

func (*MockKubeLego) AcmeUser

func (m *MockKubeLego) AcmeUser() (map[string][]byte, error)

AcmeUser mocks base method

func (*MockKubeLego) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockKubeLego) ExponentialBackoffInitialInterval

func (m *MockKubeLego) ExponentialBackoffInitialInterval() time.Duration

ExponentialBackoffInitialInterval mocks base method

func (*MockKubeLego) ExponentialBackoffMaxElapsedTime

func (m *MockKubeLego) ExponentialBackoffMaxElapsedTime() time.Duration

ExponentialBackoffMaxElapsedTime mocks base method

func (*MockKubeLego) ExponentialBackoffMultiplier

func (m *MockKubeLego) ExponentialBackoffMultiplier() float64

ExponentialBackoffMultiplier mocks base method

func (*MockKubeLego) IngressProvider

func (m *MockKubeLego) IngressProvider(arg0 string) (IngressProvider, error)

IngressProvider mocks base method

func (*MockKubeLego) KubeClient

func (m *MockKubeLego) KubeClient() *kubernetes.Clientset

KubeClient mocks base method

func (*MockKubeLego) LegoCheckInterval

func (m *MockKubeLego) LegoCheckInterval() time.Duration

LegoCheckInterval mocks base method

func (*MockKubeLego) LegoDefaultIngressClass

func (m *MockKubeLego) LegoDefaultIngressClass() string

LegoDefaultIngressClass mocks base method

func (*MockKubeLego) LegoDefaultIngressProvider

func (m *MockKubeLego) LegoDefaultIngressProvider() string

LegoDefaultIngressProvider mocks base method

func (*MockKubeLego) LegoEmail

func (m *MockKubeLego) LegoEmail() string

LegoEmail mocks base method

func (*MockKubeLego) LegoHTTPPort

func (m *MockKubeLego) LegoHTTPPort() intstr.IntOrString

LegoHTTPPort mocks base method

func (*MockKubeLego) LegoIngressNameNginx

func (m *MockKubeLego) LegoIngressNameNginx() string

LegoIngressNameNginx mocks base method

func (*MockKubeLego) LegoMinimumValidity

func (m *MockKubeLego) LegoMinimumValidity() time.Duration

LegoMinimumValidity mocks base method

func (*MockKubeLego) LegoNamespace

func (m *MockKubeLego) LegoNamespace() string

LegoNamespace mocks base method

func (*MockKubeLego) LegoPodIP

func (m *MockKubeLego) LegoPodIP() net.IP

LegoPodIP mocks base method

func (*MockKubeLego) LegoRsaKeySize

func (m *MockKubeLego) LegoRsaKeySize() int

LegoRsaKeySize mocks base method

func (*MockKubeLego) LegoServiceNameGce

func (m *MockKubeLego) LegoServiceNameGce() string

LegoServiceNameGce mocks base method

func (*MockKubeLego) LegoServiceNameNginx

func (m *MockKubeLego) LegoServiceNameNginx() string

LegoServiceNameNginx mocks base method

func (*MockKubeLego) LegoSupportedIngressClass

func (m *MockKubeLego) LegoSupportedIngressClass() []string

LegoSupportedIngressClass mocks base method

func (*MockKubeLego) LegoSupportedIngressProvider

func (m *MockKubeLego) LegoSupportedIngressProvider() []string

LegoSupportedIngressProvider mocks base method

func (*MockKubeLego) LegoURL

func (m *MockKubeLego) LegoURL() string

LegoURL mocks base method

func (*MockKubeLego) LegoWatchNamespace

func (m *MockKubeLego) LegoWatchNamespace() string

LegoWatchNamespace mocks base method

func (*MockKubeLego) Log

func (m *MockKubeLego) Log() *logrus.Entry

Log mocks base method

func (*MockKubeLego) SaveAcmeUser

func (m *MockKubeLego) SaveAcmeUser(arg0 map[string][]byte) error

SaveAcmeUser mocks base method

func (*MockKubeLego) Version

func (m *MockKubeLego) Version() string

Version mocks base method

type MockKubeLegoMockRecorder

type MockKubeLegoMockRecorder struct {
	// contains filtered or unexported fields
}

MockKubeLegoMockRecorder is the mock recorder for MockKubeLego

func (*MockKubeLegoMockRecorder) AcmeClient

func (mr *MockKubeLegoMockRecorder) AcmeClient() *gomock.Call

AcmeClient indicates an expected call of AcmeClient

func (*MockKubeLegoMockRecorder) AcmeUser

func (mr *MockKubeLegoMockRecorder) AcmeUser() *gomock.Call

AcmeUser indicates an expected call of AcmeUser

func (*MockKubeLegoMockRecorder) ExponentialBackoffInitialInterval

func (mr *MockKubeLegoMockRecorder) ExponentialBackoffInitialInterval() *gomock.Call

ExponentialBackoffInitialInterval indicates an expected call of ExponentialBackoffInitialInterval

func (*MockKubeLegoMockRecorder) ExponentialBackoffMaxElapsedTime

func (mr *MockKubeLegoMockRecorder) ExponentialBackoffMaxElapsedTime() *gomock.Call

ExponentialBackoffMaxElapsedTime indicates an expected call of ExponentialBackoffMaxElapsedTime

func (*MockKubeLegoMockRecorder) ExponentialBackoffMultiplier

func (mr *MockKubeLegoMockRecorder) ExponentialBackoffMultiplier() *gomock.Call

ExponentialBackoffMultiplier indicates an expected call of ExponentialBackoffMultiplier

func (*MockKubeLegoMockRecorder) IngressProvider

func (mr *MockKubeLegoMockRecorder) IngressProvider(arg0 interface{}) *gomock.Call

IngressProvider indicates an expected call of IngressProvider

func (*MockKubeLegoMockRecorder) KubeClient

func (mr *MockKubeLegoMockRecorder) KubeClient() *gomock.Call

KubeClient indicates an expected call of KubeClient

func (*MockKubeLegoMockRecorder) LegoCheckInterval

func (mr *MockKubeLegoMockRecorder) LegoCheckInterval() *gomock.Call

LegoCheckInterval indicates an expected call of LegoCheckInterval

func (*MockKubeLegoMockRecorder) LegoDefaultIngressClass

func (mr *MockKubeLegoMockRecorder) LegoDefaultIngressClass() *gomock.Call

LegoDefaultIngressClass indicates an expected call of LegoDefaultIngressClass

func (*MockKubeLegoMockRecorder) LegoDefaultIngressProvider

func (mr *MockKubeLegoMockRecorder) LegoDefaultIngressProvider() *gomock.Call

LegoDefaultIngressProvider indicates an expected call of LegoDefaultIngressProvider

func (*MockKubeLegoMockRecorder) LegoEmail

func (mr *MockKubeLegoMockRecorder) LegoEmail() *gomock.Call

LegoEmail indicates an expected call of LegoEmail

func (*MockKubeLegoMockRecorder) LegoHTTPPort

func (mr *MockKubeLegoMockRecorder) LegoHTTPPort() *gomock.Call

LegoHTTPPort indicates an expected call of LegoHTTPPort

func (*MockKubeLegoMockRecorder) LegoIngressNameNginx

func (mr *MockKubeLegoMockRecorder) LegoIngressNameNginx() *gomock.Call

LegoIngressNameNginx indicates an expected call of LegoIngressNameNginx

func (*MockKubeLegoMockRecorder) LegoMinimumValidity

func (mr *MockKubeLegoMockRecorder) LegoMinimumValidity() *gomock.Call

LegoMinimumValidity indicates an expected call of LegoMinimumValidity

func (*MockKubeLegoMockRecorder) LegoNamespace

func (mr *MockKubeLegoMockRecorder) LegoNamespace() *gomock.Call

LegoNamespace indicates an expected call of LegoNamespace

func (*MockKubeLegoMockRecorder) LegoPodIP

func (mr *MockKubeLegoMockRecorder) LegoPodIP() *gomock.Call

LegoPodIP indicates an expected call of LegoPodIP

func (*MockKubeLegoMockRecorder) LegoRsaKeySize

func (mr *MockKubeLegoMockRecorder) LegoRsaKeySize() *gomock.Call

LegoRsaKeySize indicates an expected call of LegoRsaKeySize

func (*MockKubeLegoMockRecorder) LegoServiceNameGce

func (mr *MockKubeLegoMockRecorder) LegoServiceNameGce() *gomock.Call

LegoServiceNameGce indicates an expected call of LegoServiceNameGce

func (*MockKubeLegoMockRecorder) LegoServiceNameNginx

func (mr *MockKubeLegoMockRecorder) LegoServiceNameNginx() *gomock.Call

LegoServiceNameNginx indicates an expected call of LegoServiceNameNginx

func (*MockKubeLegoMockRecorder) LegoSupportedIngressClass

func (mr *MockKubeLegoMockRecorder) LegoSupportedIngressClass() *gomock.Call

LegoSupportedIngressClass indicates an expected call of LegoSupportedIngressClass

func (*MockKubeLegoMockRecorder) LegoSupportedIngressProvider

func (mr *MockKubeLegoMockRecorder) LegoSupportedIngressProvider() *gomock.Call

LegoSupportedIngressProvider indicates an expected call of LegoSupportedIngressProvider

func (*MockKubeLegoMockRecorder) LegoURL

func (mr *MockKubeLegoMockRecorder) LegoURL() *gomock.Call

LegoURL indicates an expected call of LegoURL

func (*MockKubeLegoMockRecorder) LegoWatchNamespace

func (mr *MockKubeLegoMockRecorder) LegoWatchNamespace() *gomock.Call

LegoWatchNamespace indicates an expected call of LegoWatchNamespace

func (*MockKubeLegoMockRecorder) Log

Log indicates an expected call of Log

func (*MockKubeLegoMockRecorder) SaveAcmeUser

func (mr *MockKubeLegoMockRecorder) SaveAcmeUser(arg0 interface{}) *gomock.Call

SaveAcmeUser indicates an expected call of SaveAcmeUser

func (*MockKubeLegoMockRecorder) Version

func (mr *MockKubeLegoMockRecorder) Version() *gomock.Call

Version indicates an expected call of Version

type MockSecret

type MockSecret struct {
	// contains filtered or unexported fields
}

MockSecret is a mock of Secret interface

func DummySecret

func DummySecret(c *gomock.Controller, validTill time.Time, domains []string) *MockSecret

func NewMockSecret

func NewMockSecret(ctrl *gomock.Controller) *MockSecret

NewMockSecret creates a new mock instance

func (*MockSecret) EXPECT

func (m *MockSecret) EXPECT() *MockSecretMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSecret) Exists

func (m *MockSecret) Exists() bool

Exists mocks base method

func (*MockSecret) KubeLego

func (m *MockSecret) KubeLego() KubeLego

KubeLego mocks base method

func (*MockSecret) Object

func (m *MockSecret) Object() *v1.Secret

Object mocks base method

func (*MockSecret) Save

func (m *MockSecret) Save() error

Save mocks base method

func (*MockSecret) TlsDomains

func (m *MockSecret) TlsDomains() ([]string, error)

TlsDomains mocks base method

func (*MockSecret) TlsDomainsInclude

func (m *MockSecret) TlsDomainsInclude(domains []string) bool

TlsDomainsInclude mocks base method

func (*MockSecret) TlsExpireTime

func (m *MockSecret) TlsExpireTime() (time.Time, error)

TlsExpireTime mocks base method

type MockSecretMockRecorder

type MockSecretMockRecorder struct {
	// contains filtered or unexported fields
}

MockSecretMockRecorder is the mock recorder for MockSecret

func (*MockSecretMockRecorder) Exists

func (mr *MockSecretMockRecorder) Exists() *gomock.Call

Exists indicates an expected call of Exists

func (*MockSecretMockRecorder) KubeLego

func (mr *MockSecretMockRecorder) KubeLego() *gomock.Call

KubeLego indicates an expected call of KubeLego

func (*MockSecretMockRecorder) Object

func (mr *MockSecretMockRecorder) Object() *gomock.Call

Object indicates an expected call of Object

func (*MockSecretMockRecorder) Save

func (mr *MockSecretMockRecorder) Save() *gomock.Call

Save indicates an expected call of Save

func (*MockSecretMockRecorder) TlsDomains

func (mr *MockSecretMockRecorder) TlsDomains() *gomock.Call

TlsDomains indicates an expected call of TlsDomains

func (*MockSecretMockRecorder) TlsDomainsInclude

func (mr *MockSecretMockRecorder) TlsDomainsInclude(domains interface{}) *gomock.Call

TlsDomainsInclude indicates an expected call of TlsDomainsInclude

func (*MockSecretMockRecorder) TlsExpireTime

func (mr *MockSecretMockRecorder) TlsExpireTime() *gomock.Call

TlsExpireTime indicates an expected call of TlsExpireTime

type MockService

type MockService struct {
	// contains filtered or unexported fields
}

MockService is a mock of Service interface

func DummyService

func DummyService(c *gomock.Controller) *MockService

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance

func (*MockService) Delete

func (m *MockService) Delete() error

Delete mocks base method

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockService) Object

func (m *MockService) Object() *v1.Service

Object mocks base method

func (*MockService) Save

func (m *MockService) Save() error

Save mocks base method

func (*MockService) SetEndpoints

func (m *MockService) SetEndpoints(arg0 []string) error

SetEndpoints mocks base method

func (*MockService) SetKubeLegoSpec

func (m *MockService) SetKubeLegoSpec()

SetKubeLegoSpec mocks base method

type MockServiceMockRecorder

type MockServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockServiceMockRecorder is the mock recorder for MockService

func (*MockServiceMockRecorder) Delete

func (mr *MockServiceMockRecorder) Delete() *gomock.Call

Delete indicates an expected call of Delete

func (*MockServiceMockRecorder) Object

func (mr *MockServiceMockRecorder) Object() *gomock.Call

Object indicates an expected call of Object

func (*MockServiceMockRecorder) Save

func (mr *MockServiceMockRecorder) Save() *gomock.Call

Save indicates an expected call of Save

func (*MockServiceMockRecorder) SetEndpoints

func (mr *MockServiceMockRecorder) SetEndpoints(arg0 interface{}) *gomock.Call

SetEndpoints indicates an expected call of SetEndpoints

func (*MockServiceMockRecorder) SetKubeLegoSpec

func (mr *MockServiceMockRecorder) SetKubeLegoSpec() *gomock.Call

SetKubeLegoSpec indicates an expected call of SetKubeLegoSpec

type MockTls

type MockTls struct {
	// contains filtered or unexported fields
}

MockTls is a mock of Tls interface

func NewMockTls

func NewMockTls(ctrl *gomock.Controller) *MockTls

NewMockTls creates a new mock instance

func (*MockTls) EXPECT

func (m *MockTls) EXPECT() *MockTlsMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockTls) Hosts

func (m *MockTls) Hosts() []string

Hosts mocks base method

func (*MockTls) IngressMetadata

func (m *MockTls) IngressMetadata() *v1.ObjectMeta

IngressMetadata mocks base method

func (*MockTls) Process

func (m *MockTls) Process() error

Process mocks base method

func (*MockTls) SecretMetadata

func (m *MockTls) SecretMetadata() *v1.ObjectMeta

SecretMetadata mocks base method

type MockTlsMockRecorder

type MockTlsMockRecorder struct {
	// contains filtered or unexported fields
}

MockTlsMockRecorder is the mock recorder for MockTls

func (*MockTlsMockRecorder) Hosts

func (mr *MockTlsMockRecorder) Hosts() *gomock.Call

Hosts indicates an expected call of Hosts

func (*MockTlsMockRecorder) IngressMetadata

func (mr *MockTlsMockRecorder) IngressMetadata() *gomock.Call

IngressMetadata indicates an expected call of IngressMetadata

func (*MockTlsMockRecorder) Process

func (mr *MockTlsMockRecorder) Process() *gomock.Call

Process indicates an expected call of Process

func (*MockTlsMockRecorder) SecretMetadata

func (mr *MockTlsMockRecorder) SecretMetadata() *gomock.Call

SecretMetadata indicates an expected call of SecretMetadata

Jump to

Keyboard shortcuts

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