Documentation ¶
Index ¶
- type Container
- type ContainerTracker
- func (t *ContainerTracker) Add(artifact graph.Artifact, c Container)
- func (t *ContainerTracker) ArtifactForContainer(id string) graph.Artifact
- func (t *ContainerTracker) ContainerForImage(image string) (Container, bool)
- func (t *ContainerTracker) DeployedContainers() map[string]Container
- func (t *ContainerTracker) Notifier() chan string
- func (t *ContainerTracker) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerTracker ¶
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.
Click to show internal directories.
Click to hide internal directories.