docker

package
v0.0.0-...-03b13e9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package docker contains template functions that use docker client to retrieve info about running docker containers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

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

Docker struct holds docker-related template functions.

func New

func New() (*Docker, error)

New initializes new Docker struct.

func (*Docker) Port

func (d *Docker) Port(containerName string, port uint16) (string, error)

Port is a template function that mimics `docker port <container name> <private port>` function.

Jump to

Keyboard shortcuts

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