structs

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSummary

func GetSummary(paths []string) string

Types

type BgpAdvRouteEntries

type BgpAdvRouteEntries []BgpAdvRouteEntry

func (*BgpAdvRouteEntries) Print

func (ar *BgpAdvRouteEntries) Print()

type BgpAdvRouteEntry

type BgpAdvRouteEntry struct {
	AsPath    string `json:"as_path"`
	LocalPref int    `json:"local_pref"`
	Med       int    `json:"med"`
	Network   string `json:"network"`
	NextHop   string `json:"next_hop"`
	Weight    int    `json:"weight"`
}

type BgpConfig

type BgpConfig struct {
	Id              string `json:"id"`
	Name            string `json:"display_name"`
	Ecmp            bool   `json:"ecmp"`
	Enabled         bool   `json:"enabled"`
	GracefulRestart bool   `json:"graceful_restart"`
	InterSrRouting  bool   `json:"inter_sr_ibgp"`
	Asn             string `json:"local_as_num"`
}

type BgpNeighbor

type BgpNeighbor struct {
	Name    string   `json:"display_name"`
	Id      string   `json:"id"`
	Address string   `json:"neighbor_address"`
	Path    string   `json:"path"`
	Asn     string   `json:"remote_as_num"`
	Source  []string `json:"source_addresses"`
}

type Cloud

type Cloud struct {
	Id        string `json:"uuid"`
	Name      string `json:"name"`
	TenantRef string `json:"tenant_ref"`
}

type ComputeManager

type ComputeManager struct {
	Id     string
	Name   string
	Type   string
	Server string
	Detail string
	Status *ComputeManagerStatus
}

func (*ComputeManager) Print

func (cm *ComputeManager) Print()

type ComputeManagerStatus

type ComputeManagerStatus struct {
	Connection   string
	Registration string
}

type CpuReservationInfo

type CpuReservationInfo struct {
	MHz      uint64 `json:"reservation_in_mhz"`
	Priority string `json:"reservation_in_shares"`
}

type DfwPolicies

type DfwPolicies struct {
	Policies []DfwPolicy `json:"results"`
	Count    int         `json:"result_count"`
}

type DfwPolicy

type DfwPolicy struct {
	Path      string    `json:"path"`
	Name      string    `json:"display_name"`
	Id        string    `json:"id"`
	Seq       int64     `json:"sequence_number"`
	Scope     []string  `json:"scope"`
	Stateful  bool      `json:"stateful"`
	TcpStrict bool      `json:"tcp_strict"`
	RuleCount int       `json:"rule_count"`
	Category  string    `json:"category"`
	Rules     []DfwRule `json:"rules"`
}

type DfwRule

type DfwRule struct {
	Name                 string   `json:"display_name"`
	Id                   string   `json:"id"`
	RuleId               int      `json:"rule_id"`
	Sources              []string `json:"source_groups"`
	SourcesExcluded      bool     `json:"sources_excluded"`
	Destinations         []string `json:"destination_groups"`
	DestinationsExcluded bool     `json:"destinations_excluded"`
	Services             []string `json:"services"`
	Profiles             []string `json:"profiles"`
	Scope                []string `json:"scope"`
	Action               string   `json:"action"`
	Direction            string   `json:"direction"`
	IpProtocol           string   `json:"ip_protocol"`
	Logged               bool     `json:"logged"`
}

func (*DfwRule) Print

func (r *DfwRule) Print(w *tabwriter.Writer, policy DfwPolicy)

func (*DfwRule) PrintCsv

func (r *DfwRule) PrintCsv(w *csv.Writer, policy DfwPolicy)

type DfwRules

type DfwRules struct {
	Rules []DfwRule `json:"results"`
	Count int       `json:"result_count"`
}

type DnsVs

type DnsVs struct {
	Id      string   `json:"dns_vs_uuid"`
	Domains []string `json:"domain_names"`
}

type EdgeBgpAdvRoute

type EdgeBgpAdvRoute struct {
	Source  string             `json:"source_address"`
	EdgeId  string             `json:"transport_node_id"`
	Entries []BgpAdvRouteEntry `json:"routes"`
}

func (*EdgeBgpAdvRoute) GetEntries

func (ar *EdgeBgpAdvRoute) GetEntries() BgpAdvRouteEntries

func (*EdgeBgpAdvRoute) Print

func (ar *EdgeBgpAdvRoute) Print()

type EdgeCluster

type EdgeCluster struct {
	Id             string              `json:"id"`
	Name           string              `json:"display_name"`
	Type           string              `json:"deployment_type"`
	Members        []EdgeClusterMember `json:"members"`
	MemberNodeType string              `json:"member_node_type"`
}

type EdgeClusterMember

type EdgeClusterMember struct {
	Index int    `json:"member_index"`
	Id    string `json:"transport_node_id"`
	Name  string
}

type EdgeClusters

type EdgeClusters []EdgeCluster

func (*EdgeClusters) GetClusterById

func (ecs *EdgeClusters) GetClusterById(Id string) *EdgeCluster

func (*EdgeClusters) Print

func (ecs *EdgeClusters) Print(edgeName map[string]string)

type EdgeDeploymentConfig

type EdgeDeploymentConfig struct {
	Size               string             `json:"form_factor"`
	Users              map[string]string  `json:"node_user_settings"`
	VMDeploymentConfig VMDeploymentConfig `json:"vm_deployment_config"`
}

type EdgeNodeDeploymentInfo

type EdgeNodeDeploymentInfo struct {
	Name                 string               `json:"display_name"`
	IPAddress            []string             `json:"ip_addresses"`
	EdgeDeploymentConfig EdgeDeploymentConfig `json:"deployment_config"`
	NodeSettings         NodeSettings         `json:"node_settings"`
	ResourceType         string               `json:"resource_type"`
}

type EdgeRoute

type EdgeRoute struct {
	NodePath string       `json:"edge_node"`
	Entries  []RouteEntry `json:"route_entries"`
}

func (*EdgeRoute) GetEdgeClusterId

func (er *EdgeRoute) GetEdgeClusterId() string

func (*EdgeRoute) GetEdgeClusterNodeIdx

func (er *EdgeRoute) GetEdgeClusterNodeIdx() int

func (*EdgeRoute) GetEntries

func (er *EdgeRoute) GetEntries(version int) RouteEntries

func (*EdgeRoute) Print

func (er *EdgeRoute) Print()

type EnforcementPoint

type EnforcementPoint struct {
	Id   string
	Path string
}

type Gateway

type Gateway interface {
	Print()
}

type Gslb

type Gslb struct {
	Id                string              `json:"uuid"`
	Domains           []map[string]string `json:"dns_configs"`
	Name              string              `json:"name"`
	ReplicationPolicy map[string]string   `json:"replication_policy"`
	GslbSites         []GslbSite          `json:"sites"`
	ThirdPartySites   []ThirdPartySite    `json:"third_party_sites"`
	LeaderUuid        string              `json:"leader_cluster_uuid"`
}

func (*Gslb) Print

func (g *Gslb) Print()

type GslbPool

type GslbPool struct {
	Name      string           `json:"name"`
	Priority  int              `json:"priority"`
	Enabled   bool             `json:"enabled"`
	Algorithm string           `json:"algorithm"`
	Members   []GslbPoolMember `json:"members"`
}

type GslbPoolMember

type GslbPoolMember struct {
	Id              string            `json:"cluster_uuid"`
	Enabled         bool              `json:"enabled"`
	Ip              map[string]string `json:"ip"`
	Ratio           int               `json:"ratio"`
	ResolveFqdnToV6 bool              `json:"resolve_fqdn_to_v6"`
	VsId            string            `json:"vs_uuid"`
}

type GslbService

type GslbService struct {
	Id                            string            `json:"uuid"`
	Name                          string            `json:"name"`
	Fqdn                          []string          `json:"domain_names"`
	ControllerHealthStatusEnabled bool              `json:"controller_health_status_enabled"`
	DownResponse                  map[string]string `json:"down_response"`
	Enabled                       bool              `json:"enabled"`
	HealthMonitorRef              []string          `json:"health_monitor_refs"`
	HealthMonitorScope            string            `json:"health_monitor_scope"`
	PoolAlgorithm                 string            `json:"pool_algorithm"`
	ResolveCname                  bool              `json:"resolve_cname"`
	SitePersistenceEnabled        bool              `json:"site_persistence_enabled"`
	UseEdnsClientSubnet           bool              `json:"use_edns_client_subnet"`
	Groups                        []GslbPool        `json:"groups"`
}

type GslbServices

type GslbServices []GslbService

func (*GslbServices) Print

func (gs *GslbServices) Print(hm HealthMonitors)

type GslbSite

type GslbSite struct {
	Id      string              `json:"cluster_uuid"`
	Name    string              `json:"name"`
	Enabled bool                `json:"enabled"`
	Address []map[string]string `json:"ip_addresses"`
	Type    string              `json:"member_type"`
	DnsVs   []DnsVs             `json:"dns_vses"`
}

type HealthMonitor

type HealthMonitor struct {
	Id              string `json:"uuid"`
	Name            string `json:"name"`
	Type            string `json:"type"`
	SuccessfulCheck int    `json:"successful_checks"`
	FailedCheck     int    `json:"failed_checks"`
	Interval        int    `json:"send_interval"`
	Timeout         int    `json:"receive_timeout"`
	Federated       bool   `json:"is_federated"`
}

type HealthMonitors

type HealthMonitors []HealthMonitor

func (*HealthMonitors) GetHealthMonitorById

func (hms *HealthMonitors) GetHealthMonitorById(id string) *HealthMonitor

type HostSwitch

type HostSwitch struct {
	Mode                   string                   `json:"host_switch_mode"`
	Name                   string                   `json:"host_switch_name"`
	UplinkProfiles         []map[string]string      `json:"host_switch_profile_ids"`
	Type                   string                   `json:"host_switch_type"`
	IPAssignment           IpAssignmentSpec         `json:"ip_assignment_spec"`
	Pnics                  []map[string]string      `json:"pnics"`
	TransportZoneEndpoints []TransportZoneEndpoints `json:"transport_zone_endpoints"`
}

type HostSwitchSpec

type HostSwitchSpec struct {
	HostSwitches []HostSwitch `json:"host_switches"`
	ResourceType string       `json:"resource_type"`
}

type IpAssignmentSpec

type IpAssignmentSpec struct {
	ResourceType string `json:"resource_type"`
	IpPoolId     string `json:"ip_pool_id,omitempty"`
}

type IpBlock

type IpBlock struct {
	Name string `json:"display_name"`
	Id   string `json:"id"`
	Cidr string `json:"cidr"`
	Path string `json:"path"`
}

type IpBlocks

type IpBlocks []IpBlock

func (*IpBlocks) Print

func (bs *IpBlocks) Print()

type IpPool

type IpPool struct {
	Name  string         `json:"display_name"`
	Id    string         `json:"id"`
	Usage map[string]int `json:"pool_usage"`
}

type IpPools

type IpPools []IpPool

func (*IpPools) Print

func (ps *IpPools) Print()

type LicensingLedger

type LicensingLedger struct {
	Id         string      `json:"uuid"`
	SeInfos    []SeInfo    `json:"se_infos"`
	TierUsages []TierUsage `json:"tier_usages"`
}

type MemoryReservationInfo

type MemoryReservationInfo struct {
	Percentage int `json:"reservation_percentage"`
}

type NodeSettings

type NodeSettings struct {
	AllowSshRootLogin bool     `json:"allow_ssh_root_login"`
	DnsServers        []string `json:"dns_servers"`
	EnableSsh         bool     `json:"enable_ssh"`
	Hostname          string   `json:"hostname"`
	NtpServers        []string `json:"ntp_servers"`
	SearchDomains     []string `json:"search_domains"`
}

type PerNodeStatistics

type PerNodeStatistics struct {
	LastUpdate uint64              `json:"last_update_timestamp"`
	Rx         PerNodeStatisticsRx `json:"rx"`
	Tx         PerNodeStatisticsTx `json:"tx"`
}

type PerNodeStatisticsRx

type PerNodeStatisticsRx struct {
	TotalBytes                           uint64 `json:"total_bytes"`
	TotalPackets                         uint64 `json:"total_packets"`
	DroppedPackets                       uint64 `json:"dropped_packets"`
	BlockedPackets                       uint64 `json:"blocked_packets"`
	DestinationUnsupportedDroppedPackets uint64 `json:"destination_unsupported_dropped_packets"`
	FirewallDroppedPackets               uint64 `json:"firewall_dropped_packets"`
	IpsecDroppedPackets                  uint64 `json:"ipsec_dropped_packets"`
	IpsecNoSaDroppedPackets              uint64 `json:"ipsec_no_sa_dropped_packets"`
	IpsecNoVtiDroppedPackets             uint64 `json:"ipsec_no_vti_dropped_packets"`
	Ipv6DroppedPackets                   uint64 `json:"ipv6_dropped_packets"`
	KniDroppedPackets                    uint64 `json:"kni_dropped_packets"`
	L4portUnsupportedDroppedPackets      uint64 `json:"l4port_unsupported_dropped_packets"`
	MalformedDroppedPackets              uint64 `json:"malformed_dropped_packets"`
	NoReceiverDroppedPackets             uint64 `json:"no_receiver_dropped_packets"`
	NoRouteDroppedPackets                uint64 `json:"no_route_dropped_packets"`
	ProtoUnsupportedDroppedPackets       uint64 `json:"proto_unsupported_dropped_packets"`
	RedirectDroppedPackets               uint64 `json:"redirect_dropped_packets"`
	RpfCheckDroppedPackets               uint64 `json:"rpf_check_dropped_packets"`
	TtlExceededDroppedPackets            uint64 `json:"ttl_exceeded_dropped_packets"`
}

type PerNodeStatisticsTx

type PerNodeStatisticsTx struct {
	TotalBytes                  uint64 `json:"total_bytes"`
	TotalPackets                uint64 `json:"total_packets"`
	DroppedPackets              uint64 `json:"dropped_packets"`
	BlockedPackets              uint64 `json:"blocked_packets"`
	FirewallDroppedPackets      uint64 `json:"firewall_dropped_packets"`
	IpsecDroppedPackets         uint64 `json:"ipsec_dropped_packets"`
	IpsecNoSaDroppedPackets     uint64 `json:"ipsec_no_sa_dropped_packets"`
	IpsecNoVtiDroppedPackets    uint64 `json:"ipsec_no_vti_dropped_packets"`
	DadDroppedPackets           uint64 `json:"dad_dropped_packets"`
	FragNeededDroppedPackets    uint64 `json:"frag_needed_dropped_packets"`
	IpSecPolBlockDroppedPackets uint64 `json:"ipsec_pol_block_dropped_packets"`
	IpSecPolErrDroppedPackets   uint64 `json:"ipsec_pol_err_dropped_packets"`
	NoArpDroppedPackets         uint64 `json:"no_arp_dropped_packets"`
	NoLinkedDroppedPackets      uint64 `json:"no_linked_dropped_packets"`
	NoMemDroppedPackets         uint64 `json:"no_mem_dropped_packets"`
	NonIpDroppedPackets         uint64 `json:"non_ip_dropped_packets"`
	ServiceInsertDroppedPackets uint64 `json:"service_insert_dropped_packets"`
}

type ReservationInfo

type ReservationInfo struct {
	Cpu    CpuReservationInfo    `json:"cpu_reservation"`
	Memory MemoryReservationInfo `json:"memory_reservation"`
}

type RouteEntries

type RouteEntries []RouteEntry

func (*RouteEntries) Print

func (res *RouteEntries) Print()

type RouteEntry

type RouteEntry struct {
	Type       string `json:"route_type"`
	Network    string `json:"network"`
	NextHop    string `json:"next_hop"`
	Ad         uint8  `json:"admin_distance"`
	RouterId   string `json:"lr_component_id"`
	RouterType string `json:"lr_component_type"`
}

type RouterStats

type RouterStats struct {
	PortId            string              `json:"logical_router_port_id"`
	PerNodeStatistics []PerNodeStatistics `json:"per_node_statistics"`
}

type SEResult

type SEResult struct {
	ServiceEngineInventories []ServiceEngineInventory `json:"results"`
}

type SeInfo

type SeInfo struct {
	Id           string `json:"uuid"`
	LastUpdated  int    `json:"last_updated"`
	ServiceCores int    `json:"service_cores"`
	TenantUUID   string `json:"tenant_uuid"`
	Tier         string `json:"tier"`
}

type SeInterface

type SeInterface struct {
	Address map[string]string `json:"vip_intf_ip"`
	Mac     string            `json:"vip_intf_mac"`
	Vlan    int               `json:"vlan_id"`
}

type Segment

type Segment struct {
	Name              string                 `json:"display_name"`
	Id                string                 `json:"id"`
	AdminState        string                 `json:"admin_state,omitempty"`
	AdvancedConifg    map[string]interface{} `json:"advanced_config,omitempty"`
	Connectivity      string                 `json:"connectivity_path,omitempty"`
	ReplicationMode   string                 `json:"replication_mode,omitempty"`
	Subnets           []SegmentSubnet        `json:"subnets,omitempty"`
	TransportZonePath string                 `json:"transport_zone_path,omitempty"`
	Vlans             []string               `json:"vlan_ids"`
}

type SegmentSubnet

type SegmentSubnet struct {
	Gateway string `json:"gateway_address,omitempty"`
	Network string `json:"network,omitempty"`
}

type Segments

type Segments []Segment

func (*Segments) Print

func (segs *Segments) Print()

type ServiceEngine

type ServiceEngine struct {
	Primary    bool              `json:"is_primary"`
	Secondary  bool              `json:"is_secondary"`
	Memory     int               `json:"memory"`
	Address    map[string]string `json:"mgmt_ip"`
	SeRef      string            `json:"se_ref"`
	Cpu        int               `json:"vcpus"`
	Interfaces []SeInterface     `json:"vip_intf_list"`
	VipMac     string            `json:"vip_intf_mac"`
	VipMask    int               `json:"vip_intf_mask"`
}

type ServiceEngineConfig

type ServiceEngineConfig struct {
	CloudRef   string            `json:"cloud_ref"`
	Address    map[string]string `json:"mgmt_ip_address"`
	Name       string            `json:"name"`
	SEGroupRef string            `json:"se_group_ref"`
	TenantRef  string            `json:"tenant_ref"`
	UUID       string            `json:"uuid"`
}

type ServiceEngineGroup

type ServiceEngineGroup struct {
	Id           string `json:"uuid"`
	Name         string `json:"name"`
	HaMode       string `json:"ha_mode"`
	Buffer       int    `json:"buffer_se"`
	VsLimitPerSe int    `json:"max_vs_per_se"`
	TenantRef    string `json:"tenant_ref"`
	SE           []ServiceEngine
}

type ServiceEngineInventory

type ServiceEngineInventory struct {
	Config  ServiceEngineConfig  `json:"config"`
	Health  map[string]int       `json:"health_score"`
	Runtime ServiceEngineRuntime `json:"runtime"`
}

func (*ServiceEngineInventory) Print

func (sei *ServiceEngineInventory) Print(w *tabwriter.Writer)

type ServiceEngineRuntime

type ServiceEngineRuntime struct {
	GatewayUp    bool                `json:"gateway_up"`
	MigrateState string              `json:"migrate_state"`
	PowerState   string              `json:"power_state"`
	Status       ServiceEngineStatus `json:"oper_status"`
}

type ServiceEngineStatus

type ServiceEngineStatus struct {
	State  string   `json:"state"`
	Reason []string `json:"reason"`
}

type Subnet

type Subnet struct {
	IPAddresses  []string `json:"ip_addresses"`
	PrefixLength int      `json:"prefix_length"`
}

type SystemConfiguration

type SystemConfiguration struct {
	Id          string `json:"uuid"`
	LicenseTier string `json:"default_license_tier"`
	TierUsage   TierUsage
}

type ThirdPartySite

type ThirdPartySite struct {
	Id      string `json:"cluster_uuid"`
	Name    string `json:"name"`
	Enabled bool   `json:"enabled"`
}

type Tier0Gateway

type Tier0Gateway struct {
	Id            string `json:"id"`
	HaMode        string `json:"ha_mode"`
	Name          string `json:"display_name"`
	FailoverMode  string `json:"failover_mode"`
	RealizationId string `json:"realization_id"`
	Path          string `json:"path"`
}

func (*Tier0Gateway) Print

func (gw *Tier0Gateway) Print()

type Tier0Gateways

type Tier0Gateways []Tier0Gateway

func (*Tier0Gateways) Print

func (gws *Tier0Gateways) Print(output string)

type Tier1Gateway

type Tier1Gateway struct {
	Id            string `json:"id"`
	HaMode        string `json:"ha_mode"`
	Name          string `json:"display_name"`
	FailoverMode  string `json:"failover_mode"`
	RealizationId string `json:"realization_id"`
	Path          string `json:"path"`
}

func (*Tier1Gateway) Print

func (gw *Tier1Gateway) Print()

type Tier1Gateways

type Tier1Gateways []Tier1Gateway

func (*Tier1Gateways) Print

func (gws *Tier1Gateways) Print(output string)

type TierUsage

type TierUsage struct {
	Tier  string         `json:"tier"`
	Usage map[string]int `json:"usage"`
}

type TransportNode

type TransportNode struct {
	Id                     string                 `json:"id"`
	Name                   string                 `json:"display_name"`
	HostSwitchSpec         HostSwitchSpec         `json:"host_switch_spec"`
	EdgeNodeDeploymentInfo EdgeNodeDeploymentInfo `json:"node_deployment_info"`
	ResourceType           string                 `json:"resource_type"`
	Tunnels                TransportNodeTunnels
}

type TransportNodeProfile

type TransportNodeProfile struct {
	Id             string         `json:"id"`
	Name           string         `json:"display_name"`
	HostSwitchSpec HostSwitchSpec `json:"host_switch_spec"`
}

type TransportNodeProfiles

type TransportNodeProfiles []TransportNodeProfile

func (*TransportNodeProfiles) Print

func (tnps *TransportNodeProfiles) Print()

type TransportNodeTunnel

type TransportNodeTunnel struct {
	Name            string `json:"name"`
	Status          string `json:"status"`
	Encapsulation   string `json:"encap"`
	EgressInterface string `json:"egress_interface"`
	LocalIp         string `json:"local_ip"`
	RemoteIp        string `json:"remote_ip"`
	RemoteNodeName  string `json:"remote_node_display_name"`
	RemoteNodeId    string `json:"remote_node_id"`
}

type TransportNodeTunnels

type TransportNodeTunnels []TransportNodeTunnel

type TransportNodes

type TransportNodes []TransportNode

func (*TransportNodes) Print

func (tns *TransportNodes) Print()

type TransportZone

type TransportZone struct {
	Id   string `json:"id"`
	Name string `json:"display_name"`
	Type string `json:"tz_type"`
	Path string `json:"path"`
}

type TransportZoneEndpoints

type TransportZoneEndpoints struct {
	TransportZoneId         string              `json:"transport_zone_id"`
	TransportZoneProfileIds []map[string]string `json:"transport_zone_profile_ids"`
}

type TransportZones

type TransportZones []TransportZone

func (*TransportZones) Print

func (tzs *TransportZones) Print()

type VMDeploymentConfig

type VMDeploymentConfig struct {
	ComputeId             string          `json:"compute_id"`
	DataNetworkIds        []string        `json:"data_network_ids"`
	DefaultGateway        []string        `json:"default_gateway_addresses"`
	ManagementNetworkId   string          `json:"management_network_id"`
	ManagementPortSubnets []Subnet        `json:"management_port_subnets"`
	ReservationInfo       ReservationInfo `json:"reservation_info"`
	StorageId             string          `json:"storage_id"`
	VcId                  string          `json:"vc_id"`
	PlacementType         string          `json:"placement_type"`
}

type VSPort

type VSPort struct {
	Ssl       bool `json:"enable_ssl"`
	Port      uint `json:"port"`
	PortRange uint `json:"port_range_end"`
}

func (*VSPort) GetSummary

func (p *VSPort) GetSummary() string

type VSResult

type VSResult struct {
	VirtualServiceInventories []VirtualServiceInventory `json:"results"`
}

type VSRuntime

type VSRuntime struct {
	PersentSEsUp int                  `json:"percent_ses_up"`
	VipSummary   []VipSummary         `json:"vip_summary"`
	Status       VirtualServiceStatus `json:"oper_status"`
}

type Vip

type Vip struct {
	Id      string            `json:"vip_id"`
	Address map[string]string `json:"ip_address"`
}

type VipRuntime

type VipRuntime struct {
	Se []ServiceEngine `json:"se_list"`
}

type VipSummary

type VipSummary struct {
	Id     string                   `json:"vip_id"`
	Status map[string]string        `json:"oper_status"`
	Se     []map[string]interface{} `json:"service_engine"`
}

type VirtualService

type VirtualService struct {
	Type       string   `json:"type"`
	UUID       string   `json:"uuid"`
	Tenant     string   `json:"tenant_ref"`
	Name       string   `json:"name"`
	Ports      []VSPort `json:"services"`
	CloudRef   string   `json:"cloud_ref"`
	SeGroupRef string   `json:"se_group_ref"`
	Vips       []Vip    `json:"vip"`
}

func (*VirtualService) GetCloudId

func (v *VirtualService) GetCloudId() string

func (*VirtualService) GetSegId

func (v *VirtualService) GetSegId() string

type VirtualServiceInventory

type VirtualServiceInventory struct {
	Config  VirtualService `json:"config"`
	Health  map[string]int `json:"heal"`
	Runtime VSRuntime      `json:"runtime"`
}

func (*VirtualServiceInventory) Print

func (v *VirtualServiceInventory) Print(w *tabwriter.Writer, verbose bool)

type VirtualServiceStatus

type VirtualServiceStatus struct {
	State  string   `json:"state"`
	Reason []string `json:"reason"`
}

Jump to

Keyboard shortcuts

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