Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Package metadata ...
Index ¶
- type FakeNodeMetadata
- 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 NodeMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeNodeMetadata ¶
type FakeNodeMetadata struct { GetRegionStub func() string GetWorkerIDStub func() string GetZoneStub func() string // contains filtered or unexported fields }
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 NodeMetadata ¶
type NodeMetadata interface { // GetZone ... GetZone() string // GetRegion ... GetRegion() string // GetWorkerID ... GetWorkerID() string }
NodeMetadata is a fakeable interface exposing necessary data
func NewNodeMetadata ¶
func NewNodeMetadata(nodeName string, logger *zap.Logger) (NodeMetadata, error)
NewNodeMetadata ...
Click to show internal directories.
Click to hide internal directories.