chart

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToGraph

func AddToGraph(graph *charts.Graph, nodes []opts.GraphNode, links []opts.GraphLink, categories []*opts.GraphCategory)

func Command added in v0.20.0

func Command() *cli.Command

func NetworkManager

func NetworkManager(ctx context.Context, p *NM) ([]opts.TreeData, error)

func NewGraph

func NewGraph() *charts.Graph

func NewPage

func NewPage() *components.Page

func NewTree

func NewTree(title string) *charts.Tree

Types

type ConfigTags

type ConfigTags struct {
	Value string `json:"value"`
	Key   string `json:"key"`
}

type ConfigVpc

type ConfigVpc struct {
	VpcId   string `json:"vpcId"`
	OwnerId string `json:"ownerId"`
	Region  string `json:"region"`
}

type NM added in v0.12.0

type NM struct {
	Profile string
}

func NewNM added in v0.20.0

func NewNM(profile string) *NM

func (*NM) Execute added in v0.12.0

func (p *NM) Execute(ctx context.Context) error

type Node added in v0.15.0

type Node struct {
	Id      string
	Name    string
	Account string
}

type Peering added in v0.12.0

type Peering struct {
	Profile string
	Account string
	Region  string
}

func NewPeering added in v0.20.0

func NewPeering(profile, account, region string) *Peering

func (*Peering) Execute added in v0.12.0

func (p *Peering) Execute(ctx context.Context) error

type PeeringConfiguration added in v0.15.0

type PeeringConfiguration struct {
	RequesterVpc ConfigVpc `json:"requesterVpcInfo"`
	AccepterVpc  ConfigVpc `json:"accepterVpcInfo"`
	PeeringId    string    `json:"vpcPeeringConnectionId"`
	Status       string    `json:"status"`
}

type PeeringConnection

type PeeringConnection struct {
	Requester    string
	RequesterVpc string
	Accepter     string
	AccepterVpc  string
}

type PeeringResult added in v0.15.0

type PeeringResult struct {
	Configuration PeeringConfiguration `json:"configuration"`
	Tags          []ConfigTags         `json:"tags"`
}

type PeeringStatus added in v0.15.1

type PeeringStatus struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

type TGRoutes added in v0.20.0

type TGRoutes struct {
	Profile string
	Region  string
}

func NewTGRoutes added in v0.20.0

func NewTGRoutes(profile, region string) *TGRoutes

func (*TGRoutes) Execute added in v0.20.0

func (p *TGRoutes) Execute(ctx context.Context) error

type TreeDataIp

type TreeDataIp struct {
	Name     string
	Children []*net.IPNet
}

type VPCResult added in v0.15.0

type VPCResult struct {
	VpcId   string       `json:"resourceId"`
	Tags    []ConfigTags `json:"tags"`
	OwnerId string       `json:"configuration.ownerId"`
}

Jump to

Keyboard shortcuts

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