Versions in this module Expand all Collapse all v0 v0.0.2 Dec 13, 2019 v0.0.1 Dec 12, 2019 Changes in this version + func SamplesFromDomain(domain string) ([]string, error) + type BigQuery struct + func NewBigQuery(ctx context.Context, authFile, projectID string) (*BigQuery, error) + func (bq *BigQuery) DatasetMetadata(ctx context.Context, projectID, datasetID string) (*bigquery.DatasetMetadata, error) + func (bq *BigQuery) OverwriteDatasetMetadata(ctx context.Context, projectID, datasetID string, ...) (*bigquery.DatasetMetadata, error) + type CloudResourceManager struct + func NewCloudResourceManager(ctx context.Context, authFile string) (*CloudResourceManager, error) + func (c *CloudResourceManager) GetAncestry(ctx context.Context, projectID string) (*crm.GetAncestryResponse, error) + func (c *CloudResourceManager) GetOrganization(ctx context.Context, name string) (*crm.Organization, error) + func (c *CloudResourceManager) GetPolicyOrganization(ctx context.Context, name string) (*crm.Policy, error) + func (c *CloudResourceManager) GetPolicyProject(ctx context.Context, projectID string) (*crm.Policy, error) + func (c *CloudResourceManager) SetPolicyOrganization(ctx context.Context, name string, p *crm.Policy) (*crm.Policy, error) + func (c *CloudResourceManager) SetPolicyProject(ctx context.Context, projectID string, p *crm.Policy) (*crm.Policy, error) + func (c *CloudResourceManager) SetPolicyProjectWithMask(ctx context.Context, projectID string, p *crm.Policy, updateField ...string) (*crm.Policy, error) + type CloudSQL struct + func NewCloudSQL(ctx context.Context, authFile string) (*CloudSQL, error) + func (s *CloudSQL) InstanceDetails(ctx context.Context, projectID string, instance string) (*sqladmin.DatabaseInstance, error) + func (s *CloudSQL) PatchInstance(ctx context.Context, projectID, instance string, ...) (*sqladmin.Operation, error) + func (s *CloudSQL) UpdateUser(ctx context.Context, projectID, instance, host, name string, ...) (*sqladmin.Operation, error) + func (s *CloudSQL) WaitSQL(projectID string, op *sqladmin.Operation) []error + type Compute struct + func NewCompute(ctx context.Context, authFile string) (*Compute, error) + func (c *Compute) CreateSnapshot(ctx context.Context, projectID, zone, disk string, rb *compute.Snapshot) (*compute.Operation, error) + func (c *Compute) DeleteAccessConfig(ctx context.Context, ...) (*compute.Operation, error) + func (c *Compute) DeleteDiskSnapshot(ctx context.Context, project, snapshot string) (*compute.Operation, error) + func (c *Compute) DeleteFirewallRule(ctx context.Context, projectID string, rule string) (*compute.Operation, error) + func (c *Compute) DeleteInstance(ctx context.Context, projectID, zone, instance string) (*compute.Operation, error) + func (c *Compute) DiskInsert(ctx context.Context, projectID, zone string, disk *compute.Disk) (*compute.Operation, error) + func (c *Compute) FirewallRule(ctx context.Context, projectID string, ruleID string) (*compute.Firewall, error) + func (c *Compute) GetInstance(ctx context.Context, project, zone, instance string) (*compute.Instance, error) + func (c *Compute) InsertFirewallRule(ctx context.Context, projectID string, fw *compute.Firewall) (*compute.Operation, error) + func (c *Compute) ListDisks(ctx context.Context, projectID, zone string) (*compute.DiskList, error) + func (c *Compute) ListProjectSnapshots(ctx context.Context, projectID string) (*compute.SnapshotList, error) + func (c *Compute) PatchFirewallRule(ctx context.Context, projectID string, rule string, rb *compute.Firewall) (*compute.Operation, error) + func (c *Compute) SetLabels(ctx context.Context, projectID, resource string, ...) (*compute.Operation, error) + func (c *Compute) StartInstance(ctx context.Context, projectID, zone, instance string) (*compute.Operation, error) + func (c *Compute) StopInstance(ctx context.Context, projectID, zone, instance string) (*compute.Operation, error) + func (c *Compute) WaitGlobal(project string, op *compute.Operation) []error + func (c *Compute) WaitZone(project, zone string, op *compute.Operation) []error + type Container struct + func NewContainer(ctx context.Context, authFile string) (*Container, error) + func (c *Container) UpdateAddonsConfig(ctx context.Context, projectID, zone, clusterID string, ...) (*container.Operation, error) + type DomainReport struct + Samples []Sample + type Logger struct + func NewLogger(ctx context.Context, authFile string) (*Logger, error) + func (l *Logger) Close() + func (l *Logger) Debug(message string, a ...interface{}) + func (l *Logger) Error(message string, a ...interface{}) + func (l *Logger) Info(message string, a ...interface{}) + func (l *Logger) Warning(message string, a ...interface{}) + type PagerDuty struct + func NewPagerDuty(apiKey string) *PagerDuty + func (p *PagerDuty) CreateIncident(from, serviceID, title, body string) (*pagerduty.Incident, error) + type PubSub struct + func NewPubSub(ctx context.Context, authFile, projectID string) (*PubSub, error) + func (p *PubSub) Publish(ctx context.Context, topic *pubsub.Topic, message *pubsub.Message) (string, error) + func (p *PubSub) Topic(id string) *pubsub.Topic + type Sample struct + SHA256 string + type SecurityCommandCenter struct + func NewSecurityCommandCenter(ctx context.Context, authFile string) (*SecurityCommandCenter, error) + func (s *SecurityCommandCenter) AddSecurityMarks(ctx context.Context, request *sccpb.UpdateSecurityMarksRequest) (*sccpb.SecurityMarks, error) + func (s *SecurityCommandCenter) UpdateFinding(ctx context.Context, request *sccpb.UpdateFindingRequest) (*sccpb.Finding, error) + type SendGrid struct + Service SendGridClient + func NewSendGridClient(apiKey string) *SendGrid + func (s *SendGrid) Send(subject, from, body string, to []string) (*rest.Response, error) + type SendGridClient interface + Send func(mail *mail.SGMailV3) (*rest.Response, error) + type Storage struct + func NewStorage(ctx context.Context, authFile string) (*Storage, error) + func (s *Storage) BucketPolicy(ctx context.Context, bucketName string) (*iam.Policy, error) + func (s *Storage) EnableBucketOnlyPolicy(ctx context.Context, bucketName string) error + func (s *Storage) SetBucketPolicy(ctx context.Context, bucketName string, policy *iam.Policy) error