Versions in this module Expand all Collapse all v0 v0.0.3 Dec 18, 2023 v0.0.2 Oct 2, 2021 Changes in this version + var BasicAttachedDisk = &compute.AttachedDisk + var BasicExternalNATNetworkInterface = &compute.NetworkInterface + func ObjectURL(obj *storage.Object) string + type BucketCheck struct + Bucket string + Project string + Public bool + type Client struct + func NewDefaultClient(ctx context.Context, scopes ...string) (*Client, error) + func NewWithHTTPClient(hc *http.Client) (*Client, error) + func (c *Client) AddRecordSets(ctx context.Context, areq *UpdateRequest) (*dns.Change, error) + func (c *Client) CreateInstance(ctx context.Context, ireq *InstanceRequest) (*compute.Instance, error) + func (c *Client) DeleteRecordSets(ctx context.Context, dreq *UpdateRequest) (*dns.Change, error) + func (c *Client) Download(ctx context.Context, bucket, path string) (io.ReadCloser, error) + func (c *Client) EnsureBucketExists(ctx context.Context, bc *BucketCheck) (*storage.Bucket, error) + func (c *Client) FindInstance(ctx context.Context, ireq *InstanceRequest) (*compute.Instance, error) + func (c *Client) FullSetup(ctx context.Context, req *Setup) (*SetupResponse, error) + func (c *Client) ListDNSRecordSets(ctx context.Context, rreq *RecordSetRequest) (*RecordSetPagesResponse, error) + func (c *Client) ListInstances(ctx context.Context, req *InstancesRequest) (*InstancePagesResponse, error) + func (c *Client) ListZones(ctx context.Context, req *ZoneRequest) (*ZonePagesResponse, error) + func (c *Client) Object(ctx context.Context, bucket, path string) (*storage.Object, error) + func (c *Client) UpdateRecordSets(ctx context.Context, ureq *UpdateRequest) (*dns.Change, error) + func (c *Client) UploadWithParams(ctx context.Context, params *UploadParams) (*storage.Object, error) + type InstancePage struct + Err error + Instances []*compute.Instance + PageNumber int64 + type InstancePagesResponse struct + Cancel func() error + Pages <-chan *InstancePage + type InstanceRequest struct + BlockUntilCompletion bool + CanForwardIP bool + Description string + Disks []*compute.AttachedDisk + MachineType *MachineType + Metadata *compute.Metadata + Name string + NetworkInterface *compute.NetworkInterface + NullFields []string + Project string + ServiceAccounts []*compute.ServiceAccount + Zone string + type InstancesRequest struct + Filter string + MaxPages int64 + OrderBy string + Project string + ResultsPerPage int64 + Zone string + func (ireq *InstancesRequest) Validate() error + type MachineType struct + CPUCount int + MemoryMBs int + Type StandardType + func (mt *MachineType) Validate() error + type Record struct + CanonicalName string + CertificateAuthorityAuthorizations []string + DNSName string + IPV4Addresses []string + IPV6Addresses []string + NameServers []string + PreferenceAndMailServers []string + SPFData []string + SRVData []string + TTL int64 + TXTRecords []string + Type RecordType + func (r *Record) Validate() error + type RecordSetPage struct + Err error + PageNumber int64 + RecordSets []*dns.ResourceRecordSet + type RecordSetPagesResponse struct + Cancel func() error + Pages <-chan *RecordSetPage + type RecordSetRequest struct + DomainName string + MaxPages int64 + Project string + ResultsPerPage int64 + Zone string + func (rreq *RecordSetRequest) Validate() error + type RecordType string + const AAAName + const AName + const CAA + const CName + const MX + const NS + const SPF + const SRV + const TXT + type Setup struct + Aliases []string + DomainName string + Environ []string + IPV4Addresses []string + MachineName string + Project string + ProjectDescription string + ProxyAddress string + TargetGOOS string + Zone string + func (req *Setup) Validate() error + type SetupResponse struct + BinaryURL string + DNSAdditions []*dns.ResourceRecordSet + Domains []string + NonHTTPSRedirectURL string + type StandardType string + const N1Standard1 + const N1Standard16 + const N1Standard2 + const N1Standard32 + const N1Standard4 + const N1Standard64 + const N1Standard8 + type UpdateRequest struct + Additions []*Record + Deletions []*Record + Project string + Records []*Record + Zone string + type UploadParams struct + Bucket string + Name string + Project string + Public bool + Reader func() io.Reader + func (params *UploadParams) Validate() error + type ZonePage struct + Err error + PageNumber int64 + Zones []*compute.Zone + type ZonePagesResponse struct + Cancel func() error + Pages <-chan *ZonePage + type ZoneRequest struct + Filter string + MaxPages int64 + OrderBy string + Project string + ResultsPerPage int64 + func (zreq *ZoneRequest) Validate() error