Documentation
¶
Index ¶
- Constants
- func DecodeError(statusCode int, body []byte) error
- func IsAuthFailure(err error) bool
- func IsNotFound(err error) bool
- func IsRateLimited(err error) bool
- func NewHTTPClient() *http.Client
- type APIError
- type AccessConfig
- type Client
- type Instance
- type ListInstancesResponse
- type ListManagedZonesResponse
- type ListRRSetsResponse
- type ListServiceAccountsResponse
- type ListZonesResponse
- type ManagedZone
- type NetworkInterface
- type Option
- type Pager
- type RRSet
- type Request
- type RetryPolicy
- type ServiceAccount
- type Zone
Constants ¶
View Source
const ComputeBaseURL = "https://compute.googleapis.com"
View Source
const DNSBaseURL = "https://dns.googleapis.com"
View Source
const IAMBaseURL = "https://iam.googleapis.com"
Variables ¶
This section is empty.
Functions ¶
func DecodeError ¶
func IsAuthFailure ¶
func IsNotFound ¶
func IsRateLimited ¶
func NewHTTPClient ¶
Types ¶
type APIError ¶
type AccessConfig ¶
type AccessConfig struct {
NatIP string `json:"natIP"`
}
type Instance ¶
type Instance struct {
Hostname string `json:"hostname"`
Name string `json:"name"`
Zone string `json:"zone"`
Status string `json:"status"`
NetworkInterfaces []NetworkInterface `json:"networkInterfaces"`
}
type ListInstancesResponse ¶
type ListManagedZonesResponse ¶
type ListManagedZonesResponse struct {
ManagedZones []ManagedZone `json:"managedZones"`
NextPageToken string `json:"nextPageToken"`
}
type ListRRSetsResponse ¶
type ListServiceAccountsResponse ¶
type ListServiceAccountsResponse struct {
Accounts []ServiceAccount `json:"accounts"`
NextPageToken string `json:"nextPageToken"`
}
type ListZonesResponse ¶
type ManagedZone ¶
type NetworkInterface ¶
type NetworkInterface struct {
NetworkIP string `json:"networkIP"`
AccessConfigs []AccessConfig `json:"accessConfigs"`
}
type Option ¶
type Option func(*Client)
func WithHTTPClient ¶
func WithRetryPolicy ¶
func WithRetryPolicy(p RetryPolicy) Option
type RetryPolicy ¶
type RetryPolicy = httpclient.RetryPolicy
func DefaultRetryPolicy ¶
func DefaultRetryPolicy() RetryPolicy
type ServiceAccount ¶
Click to show internal directories.
Click to hide internal directories.