Documentation ¶
Index ¶
- func GetMockMemoryManager(treeErr, brokerErr error) memory.Manager
- func MockBrokerMemory(failErr error) brokers.Manager
- func MockTreeMemory(failErr error) tree.Manager
- type Alias
- type Apps
- func (a *Apps) Create(scope string, app *meta.App, brokers *apimodels.BrokersDI) error
- func (a *Apps) Delete(query string) error
- func (a *Apps) Get(query string) (*meta.App, error)
- func (*Apps) ResolveBoundary(app *meta.App, usePermTree bool) (map[string]string, error)
- func (a *Apps) Update(scope string, app *meta.App, brokers *apimodels.BrokersDI) error
- type BrokersMock
- func (bks *BrokersMock) Configs(broker string) (brokers.BrokerConfiguration, error)
- func (bks *BrokersMock) Create(config brokers.BrokerConfiguration) error
- func (bks *BrokersMock) Factory() memory.SidecarManager
- func (bks *BrokersMock) Get() (*apimodels.BrokersDI, error)
- func (bks *BrokersMock) GetDefault() (string, error)
- func (bks *BrokersMock) SetDefault(broker string) error
- type Channels
- type Factory
- type LookupMemManager
- type MemoryMock
- type TreeMemoryMock
- func (mm *TreeMemoryMock) Alias() tree.AliasMemory
- func (mm *TreeMemoryMock) Apps() tree.AppMemory
- func (mm *TreeMemoryMock) Cancel()
- func (mm *TreeMemoryMock) Channels() tree.ChannelMemory
- func (mm *TreeMemoryMock) Commit()
- func (mm *TreeMemoryMock) GetTransactionChanges() (diff.Changelog, error)
- func (mm *TreeMemoryMock) InitTransaction()
- func (mm *TreeMemoryMock) Perm() tree.GetInterface
- func (mm *TreeMemoryMock) Types() tree.TypeMemory
- type Types
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMockMemoryManager ¶ added in v0.1.1
GetMockMemoryManager returns a mock for generic memory managing
func MockBrokerMemory ¶ added in v0.1.1
MockBrokerMemory mock exported with propagated error through the functions
func MockTreeMemory ¶ added in v0.1.1
MockTreeMemory mock exported with propagated error through the functions
Types ¶
type Alias ¶
type Alias struct { *TreeMemoryMock // contains filtered or unexported fields }
Alias - mocks the implementation of the AppMemory interface methods
type Apps ¶
type Apps struct { *TreeMemoryMock // contains filtered or unexported fields }
Apps - mocks the implementation of the AppMemory interface methods
func (*Apps) ResolveBoundary ¶
ResolveBoundary mock
type BrokersMock ¶
type BrokersMock struct {
// contains filtered or unexported fields
}
BrokersMock is the struct with the necessary implementations to mock the interface used to manage brokers
func (*BrokersMock) Configs ¶
func (bks *BrokersMock) Configs(broker string) (brokers.BrokerConfiguration, error)
Configs mock of configuration for broker
func (*BrokersMock) Create ¶
func (bks *BrokersMock) Create(config brokers.BrokerConfiguration) error
Create mocks a new broker on insprd
func (*BrokersMock) Factory ¶
func (bks *BrokersMock) Factory() memory.SidecarManager
Factory mock of factory interface
func (*BrokersMock) Get ¶ added in v0.1.1
func (bks *BrokersMock) Get() (*apimodels.BrokersDI, error)
Get returns an array containing all currently mocked brokers
func (*BrokersMock) GetDefault ¶
func (bks *BrokersMock) GetDefault() (string, error)
GetDefault returns the broker mocked as default
func (*BrokersMock) SetDefault ¶
func (bks *BrokersMock) SetDefault(broker string) error
SetDefault sets a previously mocked broker as the fake's default broker
type Channels ¶
type Channels struct { *TreeMemoryMock // contains filtered or unexported fields }
Channels - mocks the implementation of the ChannelMemory interface methods
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory mock of AbsstractBrokersFactory
type LookupMemManager ¶
type LookupMemManager TreeMemoryMock
LookupMemManager mocks getter for roots
func (LookupMemManager) Alias ¶
func (l LookupMemManager) Alias() tree.AliasGetInterface
Alias mocks a alias getter
func (LookupMemManager) Apps ¶
func (l LookupMemManager) Apps() tree.AppGetInterface
Apps mocks an app getter
func (LookupMemManager) Channels ¶
func (l LookupMemManager) Channels() tree.ChannelGetInterface
Channels mocks a channel getter
func (LookupMemManager) Types ¶
func (l LookupMemManager) Types() tree.TypeGetInterface
Types mocks a Type getter
type MemoryMock ¶ added in v0.1.1
type MemoryMock struct {
// contains filtered or unexported fields
}
MemoryMock is the struct with the necessary implementations to mock the interface used to manage memory
func (*MemoryMock) Brokers ¶ added in v0.1.1
func (mm *MemoryMock) Brokers() brokers.Manager
Brokers returns a broker memory mocked manager
func (*MemoryMock) Tree ¶ added in v0.1.1
func (mm *MemoryMock) Tree() tree.Manager
Tree returns a tree memory mocked manager
type TreeMemoryMock ¶ added in v0.1.1
type TreeMemoryMock struct {
// contains filtered or unexported fields
}
TreeMemoryMock is the api struct with the necessary implementations to satisfy the interface used in the routes established
func (*TreeMemoryMock) Alias ¶ added in v0.1.1
func (mm *TreeMemoryMock) Alias() tree.AliasMemory
Alias returns manager's Alias
func (*TreeMemoryMock) Apps ¶ added in v0.1.1
func (mm *TreeMemoryMock) Apps() tree.AppMemory
Apps returns manager of DApps
func (*TreeMemoryMock) Cancel ¶ added in v0.1.1
func (mm *TreeMemoryMock) Cancel()
Cancel mock interface structure
func (*TreeMemoryMock) Channels ¶ added in v0.1.1
func (mm *TreeMemoryMock) Channels() tree.ChannelMemory
Channels returns manager's DApp
func (*TreeMemoryMock) Commit ¶ added in v0.1.1
func (mm *TreeMemoryMock) Commit()
Commit mock interface structure
func (*TreeMemoryMock) GetTransactionChanges ¶ added in v0.1.1
func (mm *TreeMemoryMock) GetTransactionChanges() (diff.Changelog, error)
GetTransactionChanges mock interface structure
func (*TreeMemoryMock) InitTransaction ¶ added in v0.1.1
func (mm *TreeMemoryMock) InitTransaction()
InitTransaction mock interface structure
func (*TreeMemoryMock) Perm ¶ added in v0.1.1
func (mm *TreeMemoryMock) Perm() tree.GetInterface
Perm mocks a root getter interface
func (*TreeMemoryMock) Types ¶ added in v0.1.1
func (mm *TreeMemoryMock) Types() tree.TypeMemory
Types returns manager's DApp
type Types ¶
type Types struct { *TreeMemoryMock // contains filtered or unexported fields }
Types - mocks the implementation of the TypeMemory interface methods