Documentation ¶
Index ¶
- func BuildDockerImage(host *models.Host, image string, path string, dockerfile string) error
- func BuildDockerImageFromGitRepo(host *models.Host, image string, gitRepo string, commit string) error
- func ComposeOverSSH(composeDesc string, host *models.Host, timeout time.Duration, ...) error
- func ComposeSSHSetupAWMRelayer(host *models.Host) error
- func ComposeSSHSetupLoadTest(host *models.Host) error
- func ComposeSSHSetupMonitoring(host *models.Host) error
- func ComposeSSHSetupNode(host *models.Host, network models.Network, avalancheGoVersion string, ...) error
- func DockerLocalImageExists(host *models.Host, image string) (bool, error)
- func GetRemoteComposeContent(host *models.Host, composeFile string, timeout time.Duration) (string, error)
- func HasRemoteComposeService(host *models.Host, composeFile string, service string, timeout time.Duration) (bool, error)
- func InitDockerComposeService(host *models.Host, composeFile string, service string, timeout time.Duration) error
- func ListRemoteComposeServices(host *models.Host, composeFile string, timeout time.Duration) ([]string, error)
- func ParseRemoteComposeContent(host *models.Host, composeFile string, pattern string, timeout time.Duration) (string, error)
- func PrepareDockerImageWithRepo(host *models.Host, image string, gitRepo string, commit string) error
- func PullDockerImage(host *models.Host, image string) error
- func RestartDockerCompose(host *models.Host, timeout time.Duration) error
- func RestartDockerComposeService(host *models.Host, composeFile string, service string, timeout time.Duration) error
- func StartDockerCompose(host *models.Host, timeout time.Duration) error
- func StartDockerComposeService(host *models.Host, composeFile string, service string, timeout time.Duration) error
- func StopDockerCompose(host *models.Host, timeout time.Duration) error
- func StopDockerComposeService(host *models.Host, composeFile string, service string, timeout time.Duration) error
- func ValidateComposeFile(host *models.Host, composeFile string, timeout time.Duration) error
- func WasNodeSetupWithMonitoring(host *models.Host) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDockerImage ¶
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 ComposeSSHSetupLoadTest ¶
func ComposeSSHSetupMonitoring ¶
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 ¶
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 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 PullDockerImage ¶
PullDockerImage pulls a docker image on a remote host.
func RestartDockerCompose ¶
func ValidateComposeFile ¶
ValidateComposeFile validates a docker-compose file on a remote host.
Types ¶
This section is empty.