mssql

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 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 {
	Location      string            `json:"location"`
	ServerName    string            `json:"server"`
	ResourceGroup string            `json:"resourceGroup"`
	Tags          map[string]string `json:"tags"`
}

ProvisioningParameters encapsulates MSSQL-specific provisioning options

func (*ProvisioningParameters) SetResourceGroup

func (p *ProvisioningParameters) SetResourceGroup(resourceGroup string)

SetResourceGroup sets the name of the resource group into which service instances will be deployed

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