Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetInstance(project string, instanceName string) (*sqladmin.DatabaseInstance, error) PatchInstance(project string, instanceName string, patchRequest *sqladmin.DatabaseInstance) error GetInstanceLocalUsers(project string, instanceName string) ([]string, error) ResetPassword(project string, instanceName string, username string, password string) error DeleteUser(project string, instanceName string, username string) error AddUser(project string, instanceName string, user *sqladmin.User) error }
Client a wrapper for the go-generated sqladmin api client library we do this so that we can generate mocks to test code that makes api calls (unlike other GCP APIs, the sqladmin client is a struct instead of an interface).
Click to show internal directories.
Click to hide internal directories.