podinterface

package
v0.5.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleFunc

func HandleFunc(aq monitor.AgentQuerier) http.HandlerFunc

HandleFunc returns the function which can handle queries issued by the pod-interface command,

Types

type Response

type Response struct {
	PodName       string `json:"name,omitempty" yaml:"name,omitempty" antctl:"name,Name of the Pod"`
	PodNamespace  string `json:"podNamespace,omitempty" yaml:"podNamespace,omitempty"`
	InterfaceName string `json:"interfaceName,omitempty" yaml:"interfaceName,omitempty"`
	IP            string `json:"ip,omitempty" yaml:"ip,omitempty"`
	MAC           string `json:"mac,omitempty" yaml:"mac,omitempty"`
	PortUUID      string `json:"portUUID,omitempty" yaml:"portUUID,omitempty"`
	OFPort        int32  `json:"ofPort,omitempty" yaml:"ofPort,omitempty"`
	ContainerID   string `json:"containerID,omitempty" yaml:"containerID,omitempty"`
}

Response describes the response struct of pod-interface command.

Jump to

Keyboard shortcuts

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