sqldb

package
v0.4.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	armDeployer arm.Deployer,
	mssqlManager mssql.Manager,
	mssqlConfig Config,
) service.Module

New returns a new instance of a type that fulfills the service.Module interface and is capable of provisioning MS SQL servers and databases using "Azure SQL Database"

Types

type BindingParameters

type BindingParameters struct {
}

BindingParameters encapsulates MSSQL-specific binding options

type Config

type Config struct {
	Servers map[string]ServerConfig
}

Config contains only a map of ServerConfig

func GetConfig

func GetConfig() (Config, error)

GetConfig parses configuration details needed for connecting to Azure SQL Servers from environment variables and returns a Config object that encapsulates those details

type Credentials

type Credentials struct {
	Host     string `json:"host"`
	Port     int    `json:"port"`
	Database string `json:"database"`
	Username string `json:"username"`
	Password string `json:"password"`
}

Credentials encapsulates MSSQL-specific coonection details and credentials.

type ProvisioningParameters

type ProvisioningParameters struct {
	ServerName string `json:"server"`
}

ProvisioningParameters encapsulates MSSQL-specific provisioning options

type ServerConfig

type ServerConfig struct {
	ServerName                 string `json:"serverName"`
	ResourceGroupName          string `json:"resourceGroup"`
	Location                   string `json:"location"`
	AdministratorLogin         string `json:"administratorLogin"`
	AdministratorLoginPassword string `json:"administratorLoginPassword"`
}

ServerConfig represents all configuration details needed for connecting to an Azure SQL Server.

type UpdatingParameters

type UpdatingParameters struct {
}

UpdatingParameters encapsulates MSSQL-specific updating options

Jump to

Keyboard shortcuts

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