mysql

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerTables = []interface{}{
	&Server{},
	&ServerConfiguration{},
	&ServerPrivateEndpointConnection{},
	&ServerTag{},
}

Functions

func Servers

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

Types

type Server

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

	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 `neo:"unique"`
	Name                              *string
	Type                              *string
	// contains filtered or unexported fields
}

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   `neo:"ignore"`
	SubscriptionID string `gorm:"ignore"`

	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   `neo:"ignore"`
	SubscriptionID string `gorm:"ignore"`

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

func (ServerPrivateEndpointConnection) TableName

type ServerTag

type ServerTag struct {
	ID             uint   `gorm:"primarykey"`
	ServerID       uint   `neo:"ignore"`
	SubscriptionID string `gorm:"ignore"`

	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