request

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessConfig added in v0.2.0

type AccessConfig struct {
	NatIP string `json:"natIP"`
}

type DefaultHttpRequest

type DefaultHttpRequest struct {
	Endpoint string
	Path     string
	Method   string
	Token    string
}

func (*DefaultHttpRequest) DoGetRequest

func (req *DefaultHttpRequest) DoGetRequest() ([]byte, error)

func (*DefaultHttpRequest) ListManagedZones

func (r *DefaultHttpRequest) ListManagedZones(project string) ([]ManagedZone, error)

func (*DefaultHttpRequest) ListRRSets

func (r *DefaultHttpRequest) ListRRSets(project, zone string) ([]RRSet, error)

func (*DefaultHttpRequest) ListServiceAccounts

func (r *DefaultHttpRequest) ListServiceAccounts(project string) (map[string]string, error)

func (*DefaultHttpRequest) ListZones

func (r *DefaultHttpRequest) ListZones(project string) ([]string, error)

type Instance added in v0.2.0

type Instance struct {
	Hostname          string             `json:"hostname"`
	Zone              string             `json:"zone"`
	NetworkInterfaces []NetworkInterface `json:"networkInterfaces"`
}

type ManagedZone added in v0.2.0

type ManagedZone struct {
	Name    string `json:"name"`
	DNSName string `json:"dnsName"`
}

type NetworkInterface added in v0.2.0

type NetworkInterface struct {
	NetworkIP     string         `json:"networkIP"`
	AccessConfigs []AccessConfig `json:"accessConfigs"`
}

type RRSet added in v0.2.0

type RRSet struct {
	Name    string   `json:"name"`
	Type    string   `json:"type"`
	RRDatas []string `json:"rrdatas"`
}

type ServiceAccount added in v0.2.0

type ServiceAccount struct {
	DisplayName string `json:"displayName"`
	UniqueID    string `json:"uniqueId"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL