Documentation ¶
Index ¶
- Constants
- func GetJsonString(filepath string) string
- func RunCommand(cmd *cobra.Command, args []string) error
- type AWS
- func (a AWS) ListAddressPrefixes() []string
- func (a AWS) ListAddressPrefixesByRegion(region string) []string
- func (a AWS) ListAddressPrefixesByService(service string) []string
- func (a AWS) ListAddressPrefixesByServiceAndRegion(service string, region string) []string
- func (a AWS) ListRegions() []string
- func (a AWS) ListServices() []string
- func (a AWS) ListServicesByRegion(region string) []string
- type Azure
- func (a Azure) ListAddressPrefixes() []string
- func (a Azure) ListAddressPrefixesByRegion(region string) []string
- func (a Azure) ListAddressPrefixesByService(service string) []string
- func (a Azure) ListAddressPrefixesByServiceAndRegion(service string, region string) []string
- func (a Azure) ListRegions() []string
- func (a Azure) ListServices() []string
- func (a Azure) ListServicesByRegion(region string) []string
- type Cloud
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 ¶
Types ¶
type AWS ¶
type AWS struct {
// contains filtered or unexported fields
}
func (AWS) ListAddressPrefixes ¶
func (AWS) ListAddressPrefixesByRegion ¶
func (AWS) ListAddressPrefixesByService ¶
func (AWS) ListAddressPrefixesByServiceAndRegion ¶
func (AWS) ListRegions ¶
func (AWS) ListServices ¶
func (AWS) ListServicesByRegion ¶
type Azure ¶
type Azure struct {
// contains filtered or unexported fields
}
func (Azure) ListAddressPrefixes ¶
func (Azure) ListAddressPrefixesByRegion ¶
func (Azure) ListAddressPrefixesByService ¶
func (Azure) ListAddressPrefixesByServiceAndRegion ¶
func (Azure) ListRegions ¶
func (Azure) ListServices ¶
func (Azure) ListServicesByRegion ¶
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 }
Click to show internal directories.
Click to hide internal directories.