podinterface

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleFunc

func HandleFunc(aq querier.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" antctl:"name,Name of the Pod"`
	PodNamespace  string   `json:"podNamespace,omitempty"`
	InterfaceName string   `json:"interfaceName,omitempty"`
	IPs           []string `json:"ips,omitempty"`
	MAC           string   `json:"mac,omitempty"`
	PortUUID      string   `json:"portUUID,omitempty"`
	OFPort        int32    `json:"ofPort,omitempty"`
	ContainerID   string   `json:"containerID,omitempty"`
}

Response describes the response struct of pod-interface command.

func (Response) GetContainerIDStr added in v0.6.0

func (r Response) GetContainerIDStr() string

func (Response) GetTableHeader added in v0.6.0

func (r Response) GetTableHeader() []string

func (Response) GetTableRow added in v0.6.0

func (r Response) GetTableRow(_ int) []string

func (Response) SortRows added in v0.6.0

func (r Response) SortRows() bool

Jump to

Keyboard shortcuts

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