partners

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommandsTo

func AddCommandsTo(rootCmd *cobra.Command)

func FindPartners

func FindPartners(cmd *cobra.Command, args []string, noColor bool) error

FindPartners implements the interactive search functionality for partner ports.

func ListPartners

func ListPartners(cmd *cobra.Command, args []string, noColor bool, outputFormat string) error

Types

type PartnerOutput

type PartnerOutput struct {
	output.Output `json:"-" header:"-"`
	ProductName   string `json:"product_name"`
	UID           string `json:"uid"`
	ConnectType   string `json:"connect_type"`
	CompanyName   string `json:"company_name"`
	LocationId    int    `json:"location_id"`
	DiversityZone string `json:"diversity_zone"`
	VXCPermitted  bool   `json:"vxc_permitted"`
}

PartnerOutput represents the desired fields for JSON output.

func ToPartnerOutput

func ToPartnerOutput(p *megaport.PartnerMegaport) PartnerOutput

ToPartnerOutput converts a PartnerMegaport to a PartnerOutput.

Jump to

Keyboard shortcuts

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