testing

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store is a testing store that satisfies the workloadmeta.Store interface.

func NewStore

func NewStore() *Store

NewStore creates a new workload metadata store for testing.

func (*Store) GetContainer

func (s *Store) GetContainer(id string) (*workloadmeta.Container, error)

GetContainer returns metadata about a container.

func (*Store) GetECSTask

func (s *Store) GetECSTask(id string) (*workloadmeta.ECSTask, error)

GetECSTask returns metadata about an ECS task.

func (*Store) GetKubernetesPod

func (s *Store) GetKubernetesPod(id string) (*workloadmeta.KubernetesPod, error)

GetKubernetesPod returns metadata about a Kubernetes pod.

func (*Store) GetKubernetesPodForContainer

func (s *Store) GetKubernetesPodForContainer(containerID string) (*workloadmeta.KubernetesPod, error)

GetKubernetesPodForContainer returns a KubernetesPod that contains the specified containerID.

func (*Store) Notify

func (s *Store) Notify(events []workloadmeta.CollectorEvent)

Notify is not implemented in the testing store.

func (*Store) Set

func (s *Store) Set(entity workloadmeta.Entity)

Set sets an entity in the store.

func (*Store) Start

func (s *Store) Start(ctx context.Context)

Start is not implemented in the testing store.

func (*Store) Subscribe

func (s *Store) Subscribe(name string, filter *workloadmeta.Filter) chan workloadmeta.EventBundle

Subscribe is not implemented in the testing store.

func (*Store) Unset

func (s *Store) Unset(entity workloadmeta.Entity)

Unset removes an entity from the store.

func (*Store) Unsubscribe

func (s *Store) Unsubscribe(ch chan workloadmeta.EventBundle)

Unsubscribe is not implemented in the testing store.

Jump to

Keyboard shortcuts

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