docker

package
v0.0.0-...-33854e1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainerIP

func GetContainerIP(name string) (err error, result string)

func StartHTTPServer

func StartHTTPServer(addr string)

Types

type Container

type Container struct {
	IPAddress struct {
		Networks struct {
			Bridge struct {
				IPAddress string `json:"IPAddress"`
			} `json:"bridge"`
		} `json:"Networks"`
	} `json:"NetworkSettings"`
	Ports []struct {
		PrivatePort int    `json:"PrivatePort"`
		Type        string `json:"Type"`
	} `json:"Ports"`
	Id     string   `json:"Id"`
	Names  []string `json:"Names"`
	Image  string   `json:"Image"`
	Status string   `json:"Status"`
}

func GetRunningContainers

func GetRunningContainers() (err error, result []Container)

type DNSResolver

type DNSResolver struct{}

func (DNSResolver) Resolve

func (d DNSResolver) Resolve(ctx context.Context, name string) (context.Context, net.IP, error)

Jump to

Keyboard shortcuts

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