docker

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDockerImage

func BuildDockerImage(host *models.Host, image string, path string, dockerfile string) error

BuildDockerImage builds a docker image on a remote host.

func BuildDockerImageFromGitRepo

func BuildDockerImageFromGitRepo(host *models.Host, image string, gitRepo string, commit string) error

BuildDockerImageFromGitRepo builds a docker image from a git repo on a remote host.

func ComposeOverSSH

func ComposeOverSSH(
	composeDesc string,
	host *models.Host,
	timeout time.Duration,
	composePath string,
	composeVars dockerComposeInputs,
) error

ComposeOverSSH sets up a docker-compose file on a remote host over SSH.

func ComposeSSHSetupAWMRelayer

func ComposeSSHSetupAWMRelayer(host *models.Host) error

func ComposeSSHSetupLoadTest

func ComposeSSHSetupLoadTest(host *models.Host) error

func ComposeSSHSetupMonitoring

func ComposeSSHSetupMonitoring(host *models.Host) error

ComposeSSHSetupMonitoring sets up monitoring using docker-compose.

func ComposeSSHSetupNode

func ComposeSSHSetupNode(host *models.Host, network models.Network, avalancheGoVersion string, withMonitoring bool) error

ComposeSSHSetupNode sets up an AvalancheGo node and dependencies on a remote host over SSH.

func DockerLocalImageExists

func DockerLocalImageExists(host *models.Host, image string) (bool, error)

DockerLocalImageExists checks if a docker image exists on a remote host.

func GetRemoteComposeContent

func GetRemoteComposeContent(host *models.Host, composeFile string, timeout time.Duration) (string, error)

GetRemoteComposeContent gets the content of a remote docker-compose file.

func HasRemoteComposeService

func HasRemoteComposeService(host *models.Host, composeFile string, service string, timeout time.Duration) (bool, error)

HasRemoteComposeService checks if a service is present in a remote docker-compose file.

func InitDockerComposeService

func InitDockerComposeService(host *models.Host, composeFile string, service string, timeout time.Duration) error

func ListRemoteComposeServices

func ListRemoteComposeServices(host *models.Host, composeFile string, timeout time.Duration) ([]string, error)

ListRemoteComposeServices lists the services in a remote docker-compose file.

func ParseRemoteComposeContent

func ParseRemoteComposeContent(host *models.Host, composeFile string, pattern string, timeout time.Duration) (string, error)

ParseRemoteComposeContent extracts a value from a remote docker-compose file.

func PrepareDockerImageWithRepo

func PrepareDockerImageWithRepo(host *models.Host, image string, gitRepo string, commit string) error

func PullDockerImage

func PullDockerImage(host *models.Host, image string) error

PullDockerImage pulls a docker image on a remote host.

func RestartDockerCompose

func RestartDockerCompose(host *models.Host, timeout time.Duration) error

func RestartDockerComposeService

func RestartDockerComposeService(host *models.Host, composeFile string, service string, timeout time.Duration) error

func StartDockerCompose

func StartDockerCompose(host *models.Host, timeout time.Duration) error

func StartDockerComposeService

func StartDockerComposeService(host *models.Host, composeFile string, service string, timeout time.Duration) error

func StopDockerCompose

func StopDockerCompose(host *models.Host, timeout time.Duration) error

func StopDockerComposeService

func StopDockerComposeService(host *models.Host, composeFile string, service string, timeout time.Duration) error

func ValidateComposeFile

func ValidateComposeFile(host *models.Host, composeFile string, timeout time.Duration) error

ValidateComposeFile validates a docker-compose file on a remote host.

func WasNodeSetupWithMonitoring

func WasNodeSetupWithMonitoring(host *models.Host) (bool, error)

WasNodeSetupWithMonitoring checks if an AvalancheGo node was setup with monitoring on a remote host.

Types

This section is empty.

Jump to

Keyboard shortcuts

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