package
0.0.0-20201009145100-02be50dc5d05
Repository: https://github.com/googleinterns/recomator.git
Documentation: pkg.go.dev
# Functions
Apply is the method used to apply recommendations from Recommender API.
ApplyByName gets the recommendation by name and applies the recommendation using the Apply function.
AwaitCompletion takes a function that needs to be called repeatedly to check if a process (some Google Service request) has finished.
DoOperation does the action specified in the operation.
DoOperations calls DoOperation for each operation specified in the recommendation.
DoRequestWithRetries calls the specified function while it returns error with error code listed in httpStatusesToRetry, and tries again after some time.
ListLocations return the list of all locations per project(zones and regions).
ListProjectRequirements is a function that lists all permissions and APIs and their statuses for a project.
ListProjectsRecommendations gets recommendations for the specified projects.
ListRecommendations returns the list of recommendations for a Cloud project from googleRecommenders.
ListRequirements lists the requirements and their statuses for every project.
NewGoogleService creates new googleServices.
# Structs
ListResult contains information about listing recommendations for all projects.
ProjectRequirements contains information about permissions for the user for the project.
Requirement contains information about the required permission or api.
Task is the structure that helps get the percentage of work done.
# Interfaces
GoogleService is the inferface that prodives methods required to list recommendations and apply them.