tracker

package
v1.39.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name string
	ID   string
}

type ContainerTracker

type ContainerTracker struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewContainerTracker

func NewContainerTracker() *ContainerTracker

NewContainerTracker creates a new ContainerTracker.

func (*ContainerTracker) Add

func (t *ContainerTracker) Add(artifact graph.Artifact, c Container)

Add adds a container to the list.

func (*ContainerTracker) ArtifactForContainer

func (t *ContainerTracker) ArtifactForContainer(id string) graph.Artifact

func (*ContainerTracker) ContainerForImage

func (t *ContainerTracker) ContainerForImage(image string) (Container, bool)

ContainerIdForImage returns the deployed container created from the provided image, if it exists.

func (*ContainerTracker) DeployedContainers

func (t *ContainerTracker) DeployedContainers() map[string]Container

DeployedContainers returns the list of all containers deployed during this run.

func (*ContainerTracker) Notifier

func (t *ContainerTracker) Notifier() chan string

Notifier returns the notifier channel for this tracker. Used by the log streamer to be notified when a new container is added to the tracker.

func (*ContainerTracker) Reset

func (t *ContainerTracker) Reset()

Reset resets the entire tracker when a new dev cycle starts.

Jump to

Keyboard shortcuts

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