metadata

package
v1.0.1-beta2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Package metadata ...

Package metadata ...

Index

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 InitMetadata

func InitMetadata(nodeName string, logger *zap.Logger) (NodeMetadata, error)

InitMetadata ...

func NewNodeMetadata

func NewNodeMetadata(nodeName string, logger *zap.Logger) (NodeMetadata, error)

NewNodeMetadata ...

Jump to

Keyboard shortcuts

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