metadata

package
v1.1.18 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 9 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 {
	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 ...

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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