Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Package metadata ...
Package metadata ...
Index ¶
- type FakeNodeMetadata
- func (fake *FakeNodeMetadata) GetAccountID() string
- func (fake *FakeNodeMetadata) GetAccountIDCallCount() int
- func (fake *FakeNodeMetadata) GetAccountIDCalls(stub func() string)
- func (fake *FakeNodeMetadata) GetAccountIDReturns(result1 string)
- func (fake *FakeNodeMetadata) GetAccountIDReturnsOnCall(i int, result1 string)
- func (fake *FakeNodeMetadata) GetRegion() string
- func (fake *FakeNodeMetadata) GetRegionCallCount() int
- func (fake *FakeNodeMetadata) GetRegionCalls(stub func() string)
- func (fake *FakeNodeMetadata) GetRegionReturns(result1 string)
- func (fake *FakeNodeMetadata) GetRegionReturnsOnCall(i int, result1 string)
- func (fake *FakeNodeMetadata) GetWorkerID() string
- func (fake *FakeNodeMetadata) GetWorkerIDCallCount() int
- func (fake *FakeNodeMetadata) GetWorkerIDCalls(stub func() string)
- func (fake *FakeNodeMetadata) GetWorkerIDReturns(result1 string)
- func (fake *FakeNodeMetadata) GetWorkerIDReturnsOnCall(i int, result1 string)
- func (fake *FakeNodeMetadata) GetZone() string
- func (fake *FakeNodeMetadata) GetZoneCallCount() int
- func (fake *FakeNodeMetadata) GetZoneCalls(stub func() string)
- func (fake *FakeNodeMetadata) GetZoneReturns(result1 string)
- func (fake *FakeNodeMetadata) GetZoneReturnsOnCall(i int, result1 string)
- func (fake *FakeNodeMetadata) Invocations() map[string][][]interface{}
- type NodeInfo
- type NodeInfoManager
- type NodeMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeNodeMetadata ¶
type FakeNodeMetadata struct { GetAccountIDStub func() string GetRegionStub func() string GetWorkerIDStub func() string GetZoneStub func() string // contains filtered or unexported fields }
func (*FakeNodeMetadata) GetAccountID ¶ added in v1.1.17
func (fake *FakeNodeMetadata) GetAccountID() string
func (*FakeNodeMetadata) GetAccountIDCallCount ¶ added in v1.1.17
func (fake *FakeNodeMetadata) GetAccountIDCallCount() int
func (*FakeNodeMetadata) GetAccountIDCalls ¶ added in v1.1.17
func (fake *FakeNodeMetadata) GetAccountIDCalls(stub func() string)
func (*FakeNodeMetadata) GetAccountIDReturns ¶ added in v1.1.17
func (fake *FakeNodeMetadata) GetAccountIDReturns(result1 string)
func (*FakeNodeMetadata) GetAccountIDReturnsOnCall ¶ added in v1.1.17
func (fake *FakeNodeMetadata) GetAccountIDReturnsOnCall(i int, result1 string)
func (*FakeNodeMetadata) GetRegion ¶
func (fake *FakeNodeMetadata) GetRegion() string
func (*FakeNodeMetadata) GetRegionCallCount ¶
func (fake *FakeNodeMetadata) GetRegionCallCount() int
func (*FakeNodeMetadata) GetRegionCalls ¶
func (fake *FakeNodeMetadata) GetRegionCalls(stub func() string)
func (*FakeNodeMetadata) GetRegionReturns ¶
func (fake *FakeNodeMetadata) GetRegionReturns(result1 string)
func (*FakeNodeMetadata) GetRegionReturnsOnCall ¶
func (fake *FakeNodeMetadata) GetRegionReturnsOnCall(i int, result1 string)
func (*FakeNodeMetadata) GetWorkerID ¶
func (fake *FakeNodeMetadata) GetWorkerID() string
func (*FakeNodeMetadata) GetWorkerIDCallCount ¶
func (fake *FakeNodeMetadata) GetWorkerIDCallCount() int
func (*FakeNodeMetadata) GetWorkerIDCalls ¶
func (fake *FakeNodeMetadata) GetWorkerIDCalls(stub func() string)
func (*FakeNodeMetadata) GetWorkerIDReturns ¶
func (fake *FakeNodeMetadata) GetWorkerIDReturns(result1 string)
func (*FakeNodeMetadata) GetWorkerIDReturnsOnCall ¶
func (fake *FakeNodeMetadata) GetWorkerIDReturnsOnCall(i int, result1 string)
func (*FakeNodeMetadata) GetZone ¶
func (fake *FakeNodeMetadata) GetZone() string
func (*FakeNodeMetadata) GetZoneCallCount ¶
func (fake *FakeNodeMetadata) GetZoneCallCount() int
func (*FakeNodeMetadata) GetZoneCalls ¶
func (fake *FakeNodeMetadata) GetZoneCalls(stub func() string)
func (*FakeNodeMetadata) GetZoneReturns ¶
func (fake *FakeNodeMetadata) GetZoneReturns(result1 string)
func (*FakeNodeMetadata) GetZoneReturnsOnCall ¶
func (fake *FakeNodeMetadata) GetZoneReturnsOnCall(i int, result1 string)
func (*FakeNodeMetadata) Invocations ¶
func (fake *FakeNodeMetadata) Invocations() map[string][][]interface{}
type NodeInfo ¶
type NodeInfo interface {
NewNodeMetadata(logger *zap.Logger) (NodeMetadata, error)
}
NodeInfo ...
type NodeInfoManager ¶
type NodeInfoManager struct {
NodeName string
}
NodeInfoManager ...
func (*NodeInfoManager) NewNodeMetadata ¶
func (nodeManager *NodeInfoManager) NewNodeMetadata(logger *zap.Logger) (NodeMetadata, error)
NewNodeMetadata ...
type NodeMetadata ¶
type NodeMetadata interface { // GetZone ... GetZone() string // GetRegion ... GetRegion() string // GetWorkerID ... GetWorkerID() string // GetAccountID ... get node's account ID GetAccountID() string }
NodeMetadata is a fakeable interface exposing necessary data
func InitMetadata ¶
func InitMetadata(nodeName string, logger *zap.Logger) (NodeMetadata, error)
InitMetadata ...
Click to show internal directories.
Click to hide internal directories.