chart

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 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 Init

func Init(parser *flags.Parser)

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 ConfigConfiguration

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

type ConfigResult

type ConfigResult struct {
	Configuration ConfigConfiguration `json:"configuration"`
	Tags          []ConfigTags        `json:"tags"`
}

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"`
}

type NM added in v0.12.0

type NM struct {
	Profile string `short:"p" long:"profile" env:"AWS_PROFILE" default:"default" description:"What profile to use"`

	// Hardcoded to us-west-2 because network manager is only available there for now
	Region string `hidden:"true" short:"r" long:"region" env:"AWS_REGION" default:"us-east-1" description:"What region to use"`
}

func (*NM) Execute added in v0.12.0

func (p *NM) Execute(args []string) error

type Peering added in v0.12.0

type Peering struct {
	Profile string `short:"p" long:"profile" env:"AWS_PROFILE" default:"default" description:"What profile to use"`
	Account string `short:"a" long:"account" default:"" description:"Filter results to this account"`
	Region  string `short:"r" long:"region" env:"AWS_REGION" default:"us-east-1" description:"What region to use"`
}

func (*Peering) Execute added in v0.12.0

func (p *Peering) Execute(args []string) error

type PeeringConnection

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

type TGroutes added in v0.12.0

type TGroutes struct {
	Profile string `short:"p" long:"profile" env:"AWS_PROFILE" default:"default" description:"What profile to use"`
	Region  string `short:"r" long:"region" env:"AWS_REGION" default:"us-east-1" description:"What region to use"`
}

func (*TGroutes) Execute added in v0.12.0

func (p *TGroutes) Execute(args []string) error

type TreeDataIp

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

Jump to

Keyboard shortcuts

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