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