ebs

package
v0.0.0-...-e75c356 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 19 Imported by: ? 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 EBSWatcher

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

func NewWatcher

func NewWatcher(ctx context.Context,
	cfg *config.Config,
	state dockerstate.TaskEngineState,
	taskEngine ecsengine.TaskEngine,
	dockerClient dockerapi.DockerClient) *EBSWatcher

NewWatcher is used to return a new instance of the EBSWatcher struct

func (*EBSWatcher) HandleEBSResourceAttachment

func (w *EBSWatcher) HandleEBSResourceAttachment(ebs *apiebs.ResourceAttachment) error

HandleResourceAttachment processes the resource attachment message. It will: 1. Check whether we already have this attachment in state and if so it's a noop. 2. Otherwise add the attachment to state, start its ack timer, and save to the agent state.

func (*EBSWatcher) HandleResourceAttachment

func (w *EBSWatcher) HandleResourceAttachment(ebs *apiebs.ResourceAttachment)

func (*EBSWatcher) NotifyAttached

func (w *EBSWatcher) NotifyAttached(foundVolumes map[string]string) []error

NotifyAttached will go through the list of found EBS volumes from the scanning process and mark them as found.

func (*EBSWatcher) StageAll

func (w *EBSWatcher) StageAll(foundVolumes map[string]string) []error

assumes CSI Driver Managed Daemon is running else call will timeout

func (*EBSWatcher) Start

func (w *EBSWatcher) Start()

Start is used to kick off the periodic scanning process of the EBS volume attachments for the EBS watcher. It will be start and continue to run whenever there's a pending EBS volume attachment that hasn't been found. If there aren't any, the scan ticker will not start up/scan for volumes.

func (*EBSWatcher) Stop

func (w *EBSWatcher) Stop()

Stop will stop the EBS watcher

Jump to

Keyboard shortcuts

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