Documentation ¶
Index ¶
- Constants
- func TrimQuotes(in *string)
- type AWS
- func (a *AWS) Fetch() (doc Doc, etag string, err error)
- func (a *AWS) FetchData() (data []byte, headers http.Header, status int, err error)
- func (a *AWS) FetchETag() (etag string, err error)
- func (a *AWS) FullName() string
- func (a *AWS) HostType() string
- func (a *AWS) ShortName() string
- func (a *AWS) SourceURL() string
- type Doc
- type IPv6Prefix
- type Prefix
- type RawDoc
- type RawIPv6Prefix
- type RawPrefix
Constants ¶
View Source
const ( ShortName = "aws" FullName = "Amazon Web Services" HostType = "cloud" SourceURL = "https://docs.aws.amazon.com/vpc/latest/userguide/aws-ip-ranges.html" DownloadURL = "https://ip-ranges.amazonaws.com/ip-ranges.json" )
Variables ¶
This section is empty.
Functions ¶
func TrimQuotes ¶
func TrimQuotes(in *string)
Types ¶
type Doc ¶
type Doc struct { SyncToken string `json:"syncToken"` CreateDate string `json:"createDate"` Prefixes []Prefix `json:"prefixes" yaml:"prefixes"` IPv6Prefixes []IPv6Prefix `json:"ipv6_prefixes" yaml:"ipv6_prefixes"` }
func ProcessData ¶
type IPv6Prefix ¶
type RawDoc ¶
type RawDoc struct { SyncToken string `json:"syncToken"` CreateDate string `json:"createDate"` Prefixes []RawPrefix `json:"prefixes" yaml:"prefixes"` IPv6Prefixes []RawIPv6Prefix `json:"ipv6_prefixes" yaml:"ipv6_prefixes"` }
type RawIPv6Prefix ¶
Click to show internal directories.
Click to hide internal directories.