sql

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBInstances

func GetDBInstances(account internal.GCPAccount) []*sqladmin.DatabaseInstance

Get all the SQL instances of the account, only keep the instance of type CLOUD_SQL_INSTANCE

func RunChecks

func RunChecks(wa *sync.WaitGroup, account internal.GCPAccount, c *commons.Config, queue chan []commons.Check)

func SQLBackupsAreMultiRegional added in v1.4.0

func SQLBackupsAreMultiRegional(resource commons.Resource) bool

func SQLInstanceBackupWithPITREnabled

func SQLInstanceBackupWithPITREnabled(resource commons.Resource) bool

func SQLInstanceEncryptedTrafficEnforced

func SQLInstanceEncryptedTrafficEnforced(resource commons.Resource) bool

func SQLInstanceIsEncryptedWithKMS

func SQLInstanceIsEncryptedWithKMS(resource commons.Resource) bool

func SQLInstanceIsRegional

func SQLInstanceIsRegional(resource commons.Resource) bool

func SQLInstanceNotPublicIP

func SQLInstanceNotPublicIP(resource commons.Resource) bool

Types

type SQLInstance

type SQLInstance struct {
	Instance sqladmin.DatabaseInstance
}

func (*SQLInstance) GetID

func (s *SQLInstance) GetID() string

Jump to

Keyboard shortcuts

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