-
Notifications
You must be signed in to change notification settings - Fork 0
/
getIPRanges.go
39 lines (35 loc) · 1.41 KB
/
getIPRanges.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package github
import (
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
// Use this data source to retrieve information about a GitHub's IP addresses.
//
// > This content is derived from https://github.com/terraform-providers/terraform-provider-github/blob/master/website/docs/d/ip_ranges.html.markdown.
func LookupIPRanges(ctx *pulumi.Context) (*GetIPRangesResult, error) {
outputs, err := ctx.Invoke("github:index/getIPRanges:getIPRanges", nil)
if err != nil {
return nil, err
}
return &GetIPRangesResult{
Gits: outputs["gits"],
Hooks: outputs["hooks"],
Importers: outputs["importers"],
Pages: outputs["pages"],
Id: outputs["id"],
}, nil
}
// A collection of values returned by getIPRanges.
type GetIPRangesResult struct {
// An Array of IP addresses in CIDR format specifying the Git servers.
Gits interface{}
// An Array of IP addresses in CIDR format specifying the addresses that incoming service hooks will originate from.
Hooks interface{}
// An Array of IP addresses in CIDR format specifying the A records for GitHub Importer.
Importers interface{}
// An Array of IP addresses in CIDR format specifying the A records for GitHub Pages.
Pages interface{}
// id is the provider-assigned unique ID for this managed resource.
Id interface{}
}