Documentation ¶
Index ¶
- func JSON2HCL(w io.Writer, json []byte) error
- type Client
- func (g *Client) Connect() error
- func (g *Client) DNSManagedZones(project string) (dnszones []*dns.ManagedZone, e error)
- func (g *Client) Instances(project, zone string) (instances []*compute.Instance, e error)
- func (g *Client) ListDNSManagedZones(w io.Writer, project string) error
- func (g *Client) ListInstances(w io.Writer, project string, zone string) error
- func (g *Client) ListZones(w io.Writer, project string) error
- func (g *Client) Zones(project string) (zones []*compute.Zone, e error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client holds a connected Google compute.Service and context
func (*Client) Connect ¶
Connect connects the Client to Google Cloud with your application default credentials
func (*Client) DNSManagedZones ¶
func (g *Client) DNSManagedZones(project string) (dnszones []*dns.ManagedZone, e error)
DNSManagedZones returns all DNS managed zones in the specified project
func (*Client) Instances ¶
Instances returns all compute instances in the specified project and zone
func (*Client) ListDNSManagedZones ¶
ListDNSManagedZones gets the list of all DNS managed zones in the specified project and prints their names to the specified io.Writer.
func (*Client) ListInstances ¶
ListInstances gets the list of all GCP instances in the specified project and writes an HCL representation of each to the specified io.Writer.
Click to show internal directories.
Click to hide internal directories.