Documentation ¶
Index ¶
- Constants
- func CreateGoogleSQLDatabase(objectMeta metav1.ObjectMeta, instanceName, dbName, projectId string, ...) *google_sql_crd.SQLDatabase
- func CreateGoogleSQLUsers(source Source, ast *resource.Ast, cfg Config, ...)
- func CreateGoogleSqlInstance(objectMeta metav1.ObjectMeta, instance *nais_io_v1.CloudSqlInstance, ...) (*google_sql_crd.SQLInstance, error)
- func CreateIAMPolicyMemberForInstance(source resource.Source, resourceName string, cfg Config) *google_iam_crd.IAMPolicyMember
- func CreateInstance(source Source, ast *resource.Ast, cfg Config) error
- func CreateSqlSSLCertResource(ast *resource.Ast, instanceName string, source Source, ...)
- func MergeAndFilterDatabaseSQLUsers(dbUsers []nais.CloudSqlDatabaseUser, instanceName string) []nais.CloudSqlDatabaseUser
- func NaisCloudSqlInstanceWithDefaults(instance *nais_io_v1.CloudSqlInstance, appName string) (*nais_io_v1.CloudSqlInstance, error)
- func ValidateFlag(key string, value string) error
- type Config
- type GoogleSqlUser
- type Source
Constants ¶
View Source
const ( AvailabilityTypeRegional = "REGIONAL" AvailabilityTypeZonal = "ZONAL" DefaultSqlInstanceAutoBackupHour = 2 DefaultSqlInstanceCollation = "en_US.UTF8" DefaultSqlInstanceDiskSize = 10 DefaultSqlInstanceDiskType = nais_io_v1.CloudSqlInstanceDiskTypeSSD DefaultSqlInstanceEdition = google_sql_crd.SQLInstanceEditionEnterprise )
View Source
const (
GoogleSQLPasswordSuffix = "_PASSWORD"
)
Variables ¶
This section is empty.
Functions ¶
func CreateGoogleSQLDatabase ¶
func CreateGoogleSQLDatabase(objectMeta metav1.ObjectMeta, instanceName, dbName, projectId string, cascadingDelete bool) *google_sql_crd.SQLDatabase
func CreateGoogleSQLUsers ¶
func CreateGoogleSQLUsers(source Source, ast *resource.Ast, cfg Config, naisSqlDatabase *nais_io_v1.CloudSqlDatabase, naisSqlInstance *nais_io_v1.CloudSqlInstance, googleSqlInstance *googlesqlcrd.SQLInstance)
func CreateGoogleSqlInstance ¶
func CreateGoogleSqlInstance(objectMeta metav1.ObjectMeta, instance *nais_io_v1.CloudSqlInstance, cfg Config) (*google_sql_crd.SQLInstance, error)
func CreateIAMPolicyMemberForInstance ¶
func CreateIAMPolicyMemberForInstance(source resource.Source, resourceName string, cfg Config) *google_iam_crd.IAMPolicyMember
func MergeAndFilterDatabaseSQLUsers ¶
func MergeAndFilterDatabaseSQLUsers(dbUsers []nais.CloudSqlDatabaseUser, instanceName string) []nais.CloudSqlDatabaseUser
func NaisCloudSqlInstanceWithDefaults ¶
func NaisCloudSqlInstanceWithDefaults(instance *nais_io_v1.CloudSqlInstance, appName string) (*nais_io_v1.CloudSqlInstance, error)
func ValidateFlag ¶
Types ¶
type GoogleSqlUser ¶
type GoogleSqlUser struct { Username string AppName string DB *nais.CloudSqlDatabase Instance *googlesqlcrd.SQLInstance }
func (GoogleSqlUser) Create ¶
func (in GoogleSqlUser) Create(objectMeta metav1.ObjectMeta, cascadingDelete bool, appName, projectId string) *googlesqlcrd.SQLUser
func (GoogleSqlUser) CreateUserEnvVars ¶
func (in GoogleSqlUser) CreateUserEnvVars(password string) map[string]string
Click to show internal directories.
Click to hide internal directories.