ccidr

package
v1.0.196 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Amazon        = "AMAZON"
	AmazonJsonUrl = "https://ip-ranges.amazonaws.com/ip-ranges.json"
)
View Source
const (
	AzureCloud   = "AzureCloud"
	AzureJsonUrl = "https://download.microsoft.com/download/7/1/D/71D86715-5596-4529-9B13-DA13A5DE5B63/ServiceTags_Public_%s.json"
)
View Source
const (
	RegionsArg  = "regions"
	ServicesArg = "services"
	IpsArg      = "ips"
	AzureArg    = "azure"
	AWSArgs     = "aws"
)

Variables

This section is empty.

Functions

func GetJsonString

func GetJsonString(filepath string) string

func RunCommand

func RunCommand(cmd *cobra.Command, args []string) error

Types

type AWS

type AWS struct {
	// contains filtered or unexported fields
}

func (AWS) ListAddressPrefixes

func (a AWS) ListAddressPrefixes() []string

func (AWS) ListAddressPrefixesByRegion

func (a AWS) ListAddressPrefixesByRegion(region string) []string

func (AWS) ListAddressPrefixesByService

func (a AWS) ListAddressPrefixesByService(service string) []string

func (AWS) ListAddressPrefixesByServiceAndRegion

func (a AWS) ListAddressPrefixesByServiceAndRegion(service string, region string) []string

func (AWS) ListRegions

func (a AWS) ListRegions() []string

func (AWS) ListServices

func (a AWS) ListServices() []string

func (AWS) ListServicesByRegion

func (a AWS) ListServicesByRegion(region string) []string

type Azure

type Azure struct {
	// contains filtered or unexported fields
}

func (Azure) ListAddressPrefixes

func (a Azure) ListAddressPrefixes() []string

func (Azure) ListAddressPrefixesByRegion

func (a Azure) ListAddressPrefixesByRegion(region string) []string

func (Azure) ListAddressPrefixesByService

func (a Azure) ListAddressPrefixesByService(service string) []string

func (Azure) ListAddressPrefixesByServiceAndRegion

func (a Azure) ListAddressPrefixesByServiceAndRegion(service string, region string) []string

func (Azure) ListRegions

func (a Azure) ListRegions() []string

func (Azure) ListServices

func (a Azure) ListServices() []string

func (Azure) ListServicesByRegion

func (a Azure) ListServicesByRegion(region string) []string

type Cloud

type Cloud interface {
	ListRegions() []string
	ListServices() []string
	ListServicesByRegion(region string) []string
	ListAddressPrefixes() []string
	ListAddressPrefixesByService(service string) []string
	ListAddressPrefixesByRegion(region string) []string
	ListAddressPrefixesByServiceAndRegion(service string, region string) []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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