container

package
v0.0.0-...-b7d6bc6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 7 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 {
	ID         string
	Name       string
	DomainName string
	Ip         string
	Port       int
}

type ContainerRuntime

type ContainerRuntime interface {
	ListContainers(ctx context.Context) ([]Container, error)
	Subscribe(ctx context.Context) (<-chan Event, <-chan error)
	LastModified() (time.Time, error)
}

func OpenDocker

func OpenDocker() (ContainerRuntime, error)

type Docker

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

func (*Docker) LastModified

func (docker *Docker) LastModified() (time.Time, error)

func (*Docker) ListContainers

func (docker *Docker) ListContainers(ctx context.Context) ([]Container, error)

func (*Docker) Subscribe

func (docker *Docker) Subscribe(ctx context.Context) (<-chan Event, <-chan error)

type Event

type Event struct {
	Type string
}

Jump to

Keyboard shortcuts

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