Documentation
¶
Index ¶
- Variables
- func FileURLToString(url string) (string, error)
- func LoadFileURLToJSON(url string, to interface{}) error
- func LoadTextURLToRange(url string) ([]string, error)
- type Akamai
- type Alibaba
- type Aws
- type Azure
- type Cloudflare
- type Digitalocean
- type Fastly
- type FastlyIPRangeResponse
- type Gcp
- type IPCat
- type IPRange
- type IPRangeSource
- type Ibm
- type Linode
- type Oracle
- type Ovh
- type Scaleway
- type Tencent
- type Ucloud
- type Vercel
Constants ¶
This section is empty.
Variables ¶
View Source
var AkamaiASNs = []string{
"12222",
"16625",
"16702",
"17204",
"18680",
"18717",
"20189",
"20940",
"21342",
"21357",
"21399",
"22207",
"22452",
"23454",
"23455",
"23903",
"24319",
"26008",
"30675",
"31107",
"31108",
"31109",
"31110",
"31377",
"33047",
"33905",
"34164",
"34850",
"35204",
"35993",
"35994",
"36183",
"39836",
"43639",
"55409",
"55770",
"133103",
"393560",
}
source: https://github.com/SecOps-Institute/Akamai-ASN-and-IPs-List/blob/master/akamai_asn_list.lst
View Source
var AlibabaASNs = []string{
"24429",
"45102",
"37963",
}
View Source
var AllSources = []IPRangeSource{ Alibaba{}, Aws{}, Azure{}, Cloudflare{}, Digitalocean{}, Fastly{}, Gcp{}, Ibm{}, Linode{}, Oracle{}, Ovh{}, Scaleway{}, Tencent{}, Ucloud{}, Vercel{}, Akamai{}, }
View Source
var LinodeASNs = []string{
"63949",
"48337",
}
View Source
var OvhCloudASN = "16276"
Note: there is also AS22598 for OVHTelecom. But this probably doesn't expose hosting services
View Source
var ScalewayASN = "12876"
View Source
var TencentASNs = []string{
"132591",
"132203",
"45090",
}
View Source
var UcloudASN = "135377"
UCLOUD INFORMATION TECHNOLOGY (HK) LIMITED
Functions ¶
func FileURLToString ¶
func LoadFileURLToJSON ¶
func LoadTextURLToRange ¶
Types ¶
type Akamai ¶ added in v0.1.270
type Akamai struct{}
func (Akamai) GetIPRanges ¶ added in v0.1.270
func (Akamai) GetProvider ¶ added in v0.1.270
type Alibaba ¶
type Alibaba struct{}
func (Alibaba) GetIPRanges ¶
func (Alibaba) GetProvider ¶ added in v0.1.5
type Azure ¶
type Azure struct{}
func (Azure) GetIPRanges ¶
func (Azure) GetProvider ¶ added in v0.1.5
type Cloudflare ¶
type Cloudflare struct{}
func (Cloudflare) GetIPRanges ¶
func (a Cloudflare) GetIPRanges() []*IPRange
func (Cloudflare) GetProvider ¶ added in v0.1.5
func (a Cloudflare) GetProvider() provider.Provider
type Digitalocean ¶
type Digitalocean struct{}
func (Digitalocean) GetIPRanges ¶
func (a Digitalocean) GetIPRanges() []*IPRange
func (Digitalocean) GetProvider ¶ added in v0.1.5
func (a Digitalocean) GetProvider() provider.Provider
type Fastly ¶
type Fastly struct{}
func (Fastly) GetIPRanges ¶
func (Fastly) GetProvider ¶ added in v0.1.5
type FastlyIPRangeResponse ¶
type IPRange ¶
type IPRange struct { Network *net.IPNet `json:"n"` Cat IPCat `json:"c"` Provider provider.Provider `json:"p"` }
func GetAllIPRanges ¶
func GetAllIPRanges(sources []IPRangeSource) []*IPRange
type IPRangeSource ¶
type Linode ¶
type Linode struct{}
func (Linode) GetIPRanges ¶
func (Linode) GetProvider ¶ added in v0.1.5
type Oracle ¶
type Oracle struct{}
func (Oracle) GetIPRanges ¶
func (Oracle) GetProvider ¶ added in v0.1.5
type Scaleway ¶
type Scaleway struct{}
func (Scaleway) GetIPRanges ¶
func (Scaleway) GetProvider ¶ added in v0.1.5
type Tencent ¶
type Tencent struct{}
func (Tencent) GetIPRanges ¶
func (Tencent) GetProvider ¶ added in v0.1.5
type Ucloud ¶
type Ucloud struct{}
func (Ucloud) GetIPRanges ¶
func (Ucloud) GetProvider ¶ added in v0.1.5
Source Files
¶
Click to show internal directories.
Click to hide internal directories.