observationtest

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DimensionHeaderCache

type DimensionHeaderCache struct {
	DimensionOrder []string
	Error          error
}

DimensionHeaderCache mock

func (DimensionHeaderCache) GetOrder

func (cache DimensionHeaderCache) GetOrder(ctx context.Context, instanceID string) ([]string, error)

GetOrder returns the stored mock response.

type DimensionIDCache

type DimensionIDCache struct {
	InstanceID string
	IDs        map[string]string
	Error      error
}

DimensionIDCache mock

func (*DimensionIDCache) GetNodeIDs

func (cache *DimensionIDCache) GetNodeIDs(ctx context.Context, instanceID string) (map[string]string, error)

GetNodeIDs captures the given parameters and returns the stored mock response.

type DimensionStore

type DimensionStore struct {
	ReturnError bool
}

DimensionStore is a mock store for dimension data.

func (*DimensionStore) GetNodeIDs

func (ds *DimensionStore) GetNodeIDs(instanceID string) (map[string]string, error)

GetNodeIDs returns a mock response, and an error if defined.

func (*DimensionStore) GetOrder

func (ds *DimensionStore) GetOrder(instanceID string) ([]string, error)

GetOrder returns a mock response, and an error if defined.

Jump to

Keyboard shortcuts

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