docker

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("target not found")

Functions

This section is empty.

Types

type Config

type Config struct {
	DefaultHttpPort int
	LabelDomain     string
}

type Docker

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

func New

func New(cfg Config) (*Docker, error)

func (*Docker) GetTarget

func (d *Docker) GetTarget(ctx context.Context, dn domain.DomainName) (*DomainInfo, error)

type DomainInfo

type DomainInfo struct {
	TargetAddress string
}

type Interface

type Interface interface {
	GetTarget(ctx context.Context, domain domain.DomainName) (*DomainInfo, error)
}

Jump to

Keyboard shortcuts

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