Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPlannerAgent ¶
func NewPlannerAgent(sourceID uuid.UUID, name string, idForTest string, svc PlannerService) (*plannerAgentLibvirt, error)
NewPlannerAgent creates a new libvirt-based planner agent instance
func WaitForDomainState ¶
func WaitForDomainState(duration time.Duration, domain *libvirt.Domain, desiredState libvirt.DomainState) error
WaitForDomainState polls the libvirt domain state until the desired state is reached or a timeout occurs. It checks the state once every second.
Types ¶
type AgentApi ¶
type AgentApi struct {
// contains filtered or unexported fields
}
AgentApi provides a client to interact with the Planner Agent API
func DefaultAgentApi ¶
DefaultAgentApi creates an AgentApi client with a default HTTP client that skips TLS verification
func NewAgentApi ¶
NewAgentApi creates an AgentApi client with a custom HTTP client, useful for test customization
Click to show internal directories.
Click to hide internal directories.