cloudsql

package
v0.0.0-...-6152d30 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package cloudsql provides the basic APIs to communicate with Google Cloud SQL

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCloudSQLService

func BuildCloudSQLService(serviceEmail string, key []byte) (*sql.Service, error)

BuildCloudSQLService builds the singlton service for CloudSQL

Types

type Manager

type Manager struct {
	Service *sql.Service `inject:""`
}

Manager https://godoc.org/google.golang.org/api/sqladmin/v1beta4

func (*Manager) GetDatabase

func (m *Manager) GetDatabase(projectID, dbName string) (*sql.DatabaseInstance, error)

GetDatabase gets the database instance

func (*Manager) GetFilteredAclEntriesOfDatabase

func (m *Manager) GetFilteredAclEntriesOfDatabase(
	projectID, dbName string, notContain func(string) bool) ([]*sql.AclEntry, error)

GetFilteredAclEntriesOfDatabase gets aclEntries which satisfies entry name filter

func (*Manager) PatchAclEntriesOfDatabase

func (m *Manager) PatchAclEntriesOfDatabase(projectID, dbName string, entries []*sql.AclEntry) (*sql.Operation, error)

PatchAclEntriesOfDatabase updates the aclEntries settings of the database instance

Jump to

Keyboard shortcuts

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