apps

package
v0.0.0-...-9649b88 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodAppInterface

type PodAppInterface interface {
	Get(podNs, podName string) (*PodForAgent, error)
}

func GetPodApp

func GetPodApp() PodAppInterface

type PodForAgent

type PodForAgent struct {
	TenantId     string          `json:"tenant_id"`
	PodID        string          `json:"pod_id"`
	PodName      string          `json:"pod_name"`
	PodNs        string          `json:"pod_ns"`
	PodType      string          `json:"pod_type"`
	IsSuccessful bool            `json:"is_successful"`
	ErrorMsg     string          `json:"error_msg"`
	Ports        []*PortForAgent `json:"ports"`
}

type PortEagerAttrForAgent

type PortEagerAttrForAgent struct {
	NetworkName  string      `json:"network_name"`
	NetworkPlane string      `json:"network_plane"`
	PortName     string      `json:"port_name"`
	VnicType     string      `json:"vnic_type"`
	Accelerate   string      `json:"accelerate"`
	PodName      string      `json:"pod_name"`
	PodNs        string      `json:"pod_ns"`
	FixIP        string      `json:"fix_ip"`
	IPGroupName  string      `json:"ip_group_name"`
	Metadata     interface{} `json:"metadata"`
	Combinable   string      `json:"combinable"`
	Roles        []string    `json:"roles"`
}

type PortForAgent

type PortForAgent struct {
	LazyAttr  PortLazyAttrForAgent  `json:"lazy_attr"`
	EagerAttr PortEagerAttrForAgent `json:"eager_attr"`
}

type PortLazyAttrForAgent

type PortLazyAttrForAgent struct {
	//NetworkID      string
	ID         string     `json:"id"`
	Name       string     `json:"name"`
	TenantID   string     `json:"tenant_id"`
	MacAddress string     `json:"mac_address"`
	FixedIps   []ports.IP `json:"fixed_ips"`
	GatewayIP  string     `json:"gateway_ip"`
	Cidr       string     `json:"cidr"`
}

Jump to

Keyboard shortcuts

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