agentpoller

package
v0.19.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Copyright 2018 Red Hat, Inc. *

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentPoller

type AgentPoller struct {
	Connection cli.Connection
	VmiUID     types.UID
	// contains filtered or unexported fields
}

func CreatePoller

func CreatePoller(connecton cli.Connection, vmiUID types.UID, agentUpdateChan chan AgentUpdateEvent, qemuAgentPollerInterval *time.Duration) *AgentPoller

func (*AgentPoller) GetInterfaceStatuses

func (p *AgentPoller) GetInterfaceStatuses(cmdResult string) []api.InterfaceStatus

func (*AgentPoller) Start

func (p *AgentPoller) Start()

func (*AgentPoller) Stop

func (p *AgentPoller) Stop()

func (*AgentPoller) UpdateDomain

func (p *AgentPoller) UpdateDomain(domain *api.Domain)

type AgentUpdateEvent

type AgentUpdateEvent struct {
	InterfaceStatuses *[]api.InterfaceStatus
	DomainName        string
}

type DomainData

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

type IP

type IP struct {
	IP     string `json:"ip-address"`
	Type   string `json:"ip-address-type"`
	Prefix int    `json:"prefix"`
}

IP for json unmarshalling

type Interface

type Interface struct {
	MAC  string `json:"hardware-address"`
	IPs  []IP   `json:"ip-addresses"`
	Name string `json:"name"`
}

Interface for json unmarshalling

type Result

type Result struct {
	Interfaces []Interface `json:"return"`
}

Result for json unmarshalling

Jump to

Keyboard shortcuts

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