package
module
Version:
v0.0.0-...-247b226
Opens a new window with list of versions in this module.
Published: Feb 7, 2021
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
aws-ip
The package to get AWS IP address ranges.
SYNOPSIS
package main
import (
"fmt"
awsip "github.com/shmokmt/aws-ip"
)
func main() {
prefixes := awsip.Query().Service("CODEBUILD").Select()
for _, p := range prefixes {
fmt.Println(p.IPPrefix)
fmt.Println(p.Region)
fmt.Println(p.Service)
fmt.Println(p.NetworkBorderGroup)
}
}
LICENSE
MIT
Documentation
¶
The package to get AWS IP ranges.
Tha package to get AWS IP ranges.
Code generated by internal/gen/gen.go; DO NOT EDIT.
type IPRange struct {
IPPrefix string `json:"ip_prefix"`
Region string `json:"region"`
Service string `json:"service"`
NetworkBorderGroup string `json:"network_border_group"`
}
IPRanges has various information related to `ip_prefix`.
IPRanges is a slice of IPRange.
Querier executes query.
NetworkBorderGroup filters IPRanges by network's name.
Region filters IPRanges by region's name.
Service filters IPRanges by service's name.
Source Files
¶
Directories
¶
cmd
|
|
|
|
internal
|
|
|
|
Click to show internal directories.
Click to hide internal directories.