sqladmin

package
v1.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

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).

func New

func New(sqladminClient *sqladmin.Service) Client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL