daos

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodDaoInterface

type PodDaoInterface interface {
	Get(podNs, podName string) (*PodForDB, error)
	Save(podForDB *PodForDB) error
	Delete(podNs, podName string) error
}

func GetPodDao

func GetPodDao() PodDaoInterface

type PodForDB

type PodForDB 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        []*PortForDB `json:"ports"`
}

type PortDao

type PortDao struct {
}

type PortForDB

type PortForDB 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"`

	ID         string     `json:"id"`
	LazyName   string     `json:"lazy_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