mysql

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateServer

func MigrateServer(db *gorm.DB) error

func Servers

func Servers(subscriptionID string, auth autorest.Authorizer, db *gorm.DB, log *zap.Logger, gConfig interface{}) error

Types

type Server

type Server struct {
	ID             uint `gorm:"primarykey"`
	SubscriptionID string

	IdentityPrincipalID *string
	IdentityType        string
	IdentityTenantID    *string

	SkuName     *string
	SkuTier     string
	SkuCapacity *int32
	SkuSize     *string
	SkuFamily   *string

	AdministratorLogin       *string
	Version                  string
	SslEnforcement           string
	MinimalTLSVersion        string
	ByokEnforcement          *string
	InfrastructureEncryption string
	UserVisibleState         string
	FullyQualifiedDomainName *string
	EarliestRestoreDate      *time.Time

	StorageProfileBackupRetentionDays *int32
	StorageProfileGeoRedundantBackup  string
	StorageProfileStorageMB           *int32
	StorageProfileStorageAutogrow     string
	ReplicationRole                   *string
	MasterServerID                    *string
	ReplicaCapacity                   *int32
	PublicNetworkAccess               string
	PrivateEndpointConnections        []*ServerPrivateEndpointConnection `gorm:"constraint:OnDelete:CASCADE;"`
	Tags                              []*ServerTag                       `gorm:"constraint:OnDelete:CASCADE;"`
	Configurations                    []*ServerConfiguration             `gorm:"constraint:OnDelete:CASCADE;"`
	Location                          *string
	ResourceID                        *string
	Name                              *string
	Type                              *string
}

func (Server) TableName

func (Server) TableName() string

type ServerConfig

type ServerConfig struct {
	Filter string
}

type ServerConfiguration

type ServerConfiguration struct {
	ID       uint `gorm:"primarykey"`
	ServerID uint

	Value         *string
	DefaultValue  *string
	DataType      *string
	AllowedValues *string
	Source        *string
	ResourceID    *string
	Name          *string
	Type          *string
}

func (ServerConfiguration) TableName

func (ServerConfiguration) TableName() string

type ServerPrivateEndpointConnection

type ServerPrivateEndpointConnection struct {
	ID         uint `gorm:"primarykey"`
	ServerID   uint
	ResourceID *string

	PrivateEndpointID                                *string
	PrivateLinkServiceConnectionStateStatus          string
	PrivateLinkServiceConnectionStateDescription     *string
	PrivateLinkServiceConnectionStateActionsRequired string
	ProvisioningState                                string
}

func (ServerPrivateEndpointConnection) TableName

type ServerTag

type ServerTag struct {
	ID       uint
	ServerID uint
	Key      string
	Value    *string
}

func (ServerTag) TableName

func (ServerTag) TableName() string

Jump to

Keyboard shortcuts

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