agent

package
v0.0.0-...-21311fb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentServer

type AgentServer struct {
	// Hostname is agent server hostname
	Hostname string
	// contains filtered or unexported fields
}

AgentServer is agent server ui model

func CreateAgentServer

func CreateAgentServer(page *web.Page, cssSelector string) AgentServer

CreateAgentServer finds agent servers on the page and creates ui models

func (*AgentServer) GetIPs

func (a *AgentServer) GetIPs() []string

GetIPs returns the list of all server IPs

func (*AgentServer) NeedsDockerDevice

func (a *AgentServer) NeedsDockerDevice() bool

NeedsDockerDevice checks if this server needs a dedicated device for dock

func (*AgentServer) SetDockerDevice

func (a *AgentServer) SetDockerDevice(value string)

SetDockerDevice assigns docker device to this server

func (*AgentServer) SetIP

func (a *AgentServer) SetIP(value string)

SetIP assigns IP to this server

func (*AgentServer) SetIPByInfra

func (a *AgentServer) SetIPByInfra(provisioner infra.Provisioner)

Jump to

Keyboard shortcuts

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