mock

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 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 CertificateAuthorityRepoMock

type CertificateAuthorityRepoMock struct {
	CreateFn       func(instance interface{}) error
	UpdateByUUIDFn func(instance interface{}) error
	GetFirstFn     func() (interface{}, error)
}

func (*CertificateAuthorityRepoMock) Create

func (m *CertificateAuthorityRepoMock) Create(instance interface{}) error

func (*CertificateAuthorityRepoMock) GetFirst

func (m *CertificateAuthorityRepoMock) GetFirst() (interface{}, error)

func (*CertificateAuthorityRepoMock) UpdateByUUID

func (m *CertificateAuthorityRepoMock) UpdateByUUID(instance interface{}) error

type EndpointKubeFATERepoMock

type EndpointKubeFATERepoMock struct {
	CreateFn                              func(instance interface{}) error
	ListFn                                func() (interface{}, error)
	DeleteByUUIDFn                        func(uuid string) error
	GetByUUIDFn                           func(uuid string) (interface{}, error)
	ListByInfraProviderUUIDFn             func(uuid string) (interface{}, error)
	UpdateStatusByUUIDFn                  func(instance interface{}) error
	UpdateInfoByUUIDFn                    func(instance interface{}) error
	ListByInfraProviderUUIDAndNamespaceFn func(string, string) (interface{}, error)
}

func (*EndpointKubeFATERepoMock) Create

func (m *EndpointKubeFATERepoMock) Create(instance interface{}) error

func (*EndpointKubeFATERepoMock) DeleteByUUID

func (m *EndpointKubeFATERepoMock) DeleteByUUID(uuid string) error

func (*EndpointKubeFATERepoMock) GetByUUID

func (m *EndpointKubeFATERepoMock) GetByUUID(uuid string) (interface{}, error)

func (*EndpointKubeFATERepoMock) List

func (m *EndpointKubeFATERepoMock) List() (interface{}, error)

func (*EndpointKubeFATERepoMock) ListByInfraProviderUUID

func (m *EndpointKubeFATERepoMock) ListByInfraProviderUUID(uuid string) (interface{}, error)

func (*EndpointKubeFATERepoMock) ListByInfraProviderUUIDAndNamespace added in v0.2.0

func (m *EndpointKubeFATERepoMock) ListByInfraProviderUUIDAndNamespace(uuid string, namespace string) (interface{}, error)

func (*EndpointKubeFATERepoMock) UpdateInfoByUUID

func (m *EndpointKubeFATERepoMock) UpdateInfoByUUID(instance interface{}) error

func (*EndpointKubeFATERepoMock) UpdateStatusByUUID

func (m *EndpointKubeFATERepoMock) UpdateStatusByUUID(instance interface{}) error

type FederationFATERepoMock

type FederationFATERepoMock struct {
	CreateFn       func(instance interface{}) error
	ListFn         func() (interface{}, error)
	DeleteByUUIDfn func(uuid string) error
	GetByUUIDfn    func(uuid string) (interface{}, error)
}

func (*FederationFATERepoMock) Create

func (m *FederationFATERepoMock) Create(instance interface{}) error

func (*FederationFATERepoMock) DeleteByUUID

func (m *FederationFATERepoMock) DeleteByUUID(uuid string) error

func (*FederationFATERepoMock) GetByUUID

func (m *FederationFATERepoMock) GetByUUID(uuid string) (interface{}, error)

func (*FederationFATERepoMock) List

func (m *FederationFATERepoMock) List() (interface{}, error)

type InfraProviderKubernetesRepoMock

type InfraProviderKubernetesRepoMock struct {
	CreateFn            func(instance interface{}) error
	ListFn              func() (interface{}, error)
	DeleteByUUIDFn      func(uuid string) error
	GetByUUIDFn         func(uuid string) (interface{}, error)
	UpdateByUUIDFn      func(instance interface{}) error
	GetByConfigSHA256Fn func(address string) (interface{}, error)
}

func (*InfraProviderKubernetesRepoMock) Create

func (m *InfraProviderKubernetesRepoMock) Create(instance interface{}) error

func (*InfraProviderKubernetesRepoMock) DeleteByUUID

func (m *InfraProviderKubernetesRepoMock) DeleteByUUID(uuid string) error

func (*InfraProviderKubernetesRepoMock) GetByConfigSHA256 added in v0.2.0

func (m *InfraProviderKubernetesRepoMock) GetByConfigSHA256(address string) (interface{}, error)

func (*InfraProviderKubernetesRepoMock) GetByUUID

func (m *InfraProviderKubernetesRepoMock) GetByUUID(uuid string) (interface{}, error)

func (*InfraProviderKubernetesRepoMock) List

func (m *InfraProviderKubernetesRepoMock) List() (interface{}, error)

func (*InfraProviderKubernetesRepoMock) ProviderExists

func (m *InfraProviderKubernetesRepoMock) ProviderExists(instance interface{}) error

func (*InfraProviderKubernetesRepoMock) UpdateByUUID

func (m *InfraProviderKubernetesRepoMock) UpdateByUUID(instance interface{}) error

type ParticipantFATERepoMock

type ParticipantFATERepoMock struct {
	CreateFn                                 func(instance interface{}) error
	ListFn                                   func() (interface{}, error)
	DeleteByUUIDFn                           func(uuid string) error
	GetByUUIDFn                              func(uuid string) (interface{}, error)
	ListByFederationUUIDFn                   func(uuid string) (interface{}, error)
	ListByEndpointUUIDFn                     func(uuid string) (interface{}, error)
	UpdateStatusByUUIDFn                     func(instance interface{}) error
	UpdateDeploymentYAMLByUUIDFn             func(instance interface{}) error
	UpdateInfoByUUIDFn                       func(instance interface{}) error
	IsExchangeCreatedByFederationUUIDFn      func(uuid string) (bool, error)
	GetExchangeByFederationUUIDFn            func(uuid string) (interface{}, error)
	IsConflictedByFederationUUIDAndPartyIDFn func(uuid string, partyID int) (bool, error)
}

func (*ParticipantFATERepoMock) Create

func (m *ParticipantFATERepoMock) Create(instance interface{}) error

func (*ParticipantFATERepoMock) DeleteByUUID

func (m *ParticipantFATERepoMock) DeleteByUUID(uuid string) error

func (*ParticipantFATERepoMock) GetByUUID

func (m *ParticipantFATERepoMock) GetByUUID(uuid string) (interface{}, error)

func (*ParticipantFATERepoMock) GetExchangeByFederationUUID

func (m *ParticipantFATERepoMock) GetExchangeByFederationUUID(uuid string) (interface{}, error)

func (*ParticipantFATERepoMock) IsConflictedByFederationUUIDAndPartyID

func (m *ParticipantFATERepoMock) IsConflictedByFederationUUIDAndPartyID(uuid string, partyID int) (bool, error)

func (*ParticipantFATERepoMock) IsExchangeCreatedByFederationUUID

func (m *ParticipantFATERepoMock) IsExchangeCreatedByFederationUUID(uuid string) (bool, error)

func (*ParticipantFATERepoMock) List

func (m *ParticipantFATERepoMock) List() (interface{}, error)

func (*ParticipantFATERepoMock) ListByEndpointUUID

func (m *ParticipantFATERepoMock) ListByEndpointUUID(uuid string) (interface{}, error)

func (*ParticipantFATERepoMock) ListByFederationUUID

func (m *ParticipantFATERepoMock) ListByFederationUUID(uuid string) (interface{}, error)

func (*ParticipantFATERepoMock) UpdateDeploymentYAMLByUUID

func (m *ParticipantFATERepoMock) UpdateDeploymentYAMLByUUID(instance interface{}) error

func (*ParticipantFATERepoMock) UpdateInfoByUUID

func (m *ParticipantFATERepoMock) UpdateInfoByUUID(instance interface{}) error

func (*ParticipantFATERepoMock) UpdateStatusByUUID

func (m *ParticipantFATERepoMock) UpdateStatusByUUID(instance interface{}) error

Jump to

Keyboard shortcuts

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