docker

package module
v0.0.0-...-b8d0453 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2017 License: Unlicense Imports: 13 Imported by: 0

README

Connection Utils

Library providing utilities to manage connection in Go

Install

go get github.com/normegil/connectionutils

Usage

See Godoc. For examples, check test files.

Documentation

Index

Constants

View Source
const DOCKER_ADDRESS string = "127.0.0.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerInfo

type ContainerInfo struct {
	Address net.IP
	Ports   map[PortBinding]int
}

func New

func New(options Options) (*ContainerInfo, func() error, error)

type DefaultLogger

type DefaultLogger struct{}

func (DefaultLogger) Print

func (l DefaultLogger) Print(v ...interface{})

func (DefaultLogger) Printf

func (l DefaultLogger) Printf(fomat string, v ...interface{})

type Logger

type Logger interface {
	Print(v ...interface{})
	Printf(format string, v ...interface{})
}

type Options

type Options struct {
	Name   string
	Image  string
	Ports  []PortBinding
	Logger Logger
}

type PortBinding

type PortBinding struct {
	Protocol         string
	Internal         int
	ExternalInterval string
}

Jump to

Keyboard shortcuts

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