containers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelPrefix    = "tsdproxy."
	LabelIsEnabled = LabelEnable + "=true"

	// Container config labels
	LabelEnable        = LabelPrefix + "enable"
	LabelName          = LabelPrefix + "name"
	LabelContainerPort = LabelPrefix + "container_port"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Info           types.ContainerJSON
	ID             string
	TargetHostname string
}

func NewContainer

func NewContainer(ctx context.Context, containerID string, docker *client.Client, hostname string) (*Container, error)

func (*Container) GetName

func (c *Container) GetName() string

func (*Container) GetPort added in v0.1.0

func (c *Container) GetPort() (string, bool)

func (*Container) GetProxyURL

func (c *Container) GetProxyURL() (*url.URL, error)

func (*Container) GetTargetURL

func (c *Container) GetTargetURL() (*url.URL, error)

Jump to

Keyboard shortcuts

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