docker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerHandler

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

ContainerHandler is used to manage an instance running in Docker.

func NewHandler

func NewHandler(client *docker.Client, container *docker.Container) *ContainerHandler

NewHandler returns a new handler for an instance running in a pod.

func (*ContainerHandler) Close

func (h *ContainerHandler) Close() error

func (*ContainerHandler) Command

func (h *ContainerHandler) Command(cmd string, args ...string) exec.Cmd

func (*ContainerHandler) GetAPI

func (h *ContainerHandler) GetAPI() (govppapi.Channel, error)

func (*ContainerHandler) GetCLI

func (h *ContainerHandler) GetCLI() (probe.CliExecutor, error)

func (*ContainerHandler) GetStats

func (h *ContainerHandler) GetStats() (govppapi.StatsProvider, error)

func (*ContainerHandler) ID

func (h *ContainerHandler) ID() string

func (*ContainerHandler) Metadata

func (h *ContainerHandler) Metadata() map[string]string

type ContainerQuery

type ContainerQuery struct {
	ID    string
	Name  string
	Label string
}

func (ContainerQuery) ListContainerOptions

func (q ContainerQuery) ListContainerOptions() docker.ListContainersOptions

func (ContainerQuery) String

func (q ContainerQuery) String() string

type Provider

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

Provider finds instances running in Docker containers.

func NewProvider

func NewProvider(endpoint string) (*Provider, error)

func NewProviderClient added in v0.2.0

func NewProviderClient(c *docker.Client) (*Provider, error)

func (*Provider) Env

func (p *Provider) Env() string

func (*Provider) Name

func (p *Provider) Name() string

func (*Provider) Query

func (p *Provider) Query(params ...map[string]string) ([]probe.Handler, error)

Jump to

Keyboard shortcuts

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