Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // IAM GetServiceAccount(accountName string) (*iam.ServiceAccount, error) CreateServiceAccount(name, displayName string) (*iam.ServiceAccount, error) DeleteServiceAccount(accountEmail string) error CreateServiceAccountKey(serviceAccountEmail string) (*iam.ServiceAccountKey, error) DeleteServiceAccountKeys(serviceAccountEmail string) error // Cloudresourcemanager GetIamPolicy(projectName string) (*cloudresourcemanager.Policy, error) SetIamPolicy(setIamPolicyRequest *cloudresourcemanager.SetIamPolicyRequest) (*cloudresourcemanager.Policy, error) ListProjects() ([]*cloudresourcemanager.Project, error) CreateProject(parentFolder string, claimName string) (*cloudresourcemanager.Operation, error) CreateProjectLabels(project *cloudresourcemanager.Project, labels map[string]string) error DeleteProject(parentFolder string) (*cloudresourcemanager.Empty, error) GetProject(projectID string) (*cloudresourcemanager.Project, error) // ServiceManagement EnableAPI(projectID, api string) error ListAPIs(projectID string) ([]string, error) // CloudBilling CreateCloudBillingAccount(projectID, billingAccount string) error //Compute ListAvailabilityZones(projectID, region string) ([]string, error) }
Client is a wrapper object for actual GCP libraries to allow for easier mocking/testing.
Click to show internal directories.
Click to hide internal directories.