provider

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package provider defines the provider interface for container data sources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	// Name returns the provider name.
	Name() string

	// Connect establishes connection to the container runtime.
	Connect(ctx context.Context) error

	// Close closes the provider connection.
	Close() error

	// ListContainers returns all running containers.
	ListContainers(ctx context.Context) ([]*types.ContainerInfo, error)

	// GetContainer returns a specific container by ID.
	GetContainer(ctx context.Context, id string) (*types.ContainerInfo, error)

	// Watch starts watching for container events and sends them to the channel.
	// It returns when the context is cancelled.
	Watch(ctx context.Context, events chan<- *types.ContainerEvent) error
}

Provider defines the interface for container data sources.

Directories

Path Synopsis
Package docker provides Docker container provider implementation.
Package docker provides Docker container provider implementation.

Jump to

Keyboard shortcuts

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