compute

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DiskTables = []interface{}{
	&Disk{},
	&DiskEncryptionSetting{},
	&DiskShareInfo{},
	&DiskTag{},
}

Functions

func Disks

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

Types

type Disk

type Disk struct {
	ID uint `gorm:"primarykey"`

	SubscriptionID    string
	ManagedBy         *string
	ManagedByExtended []*DiskManagedByExtended `gorm:"constraint:OnDelete:CASCADE;"`

	SkuName string
	SkuTier *string
	Zones   []*DiskZones `gorm:"constraint:OnDelete:CASCADE;"`

	TimeCreated      *time.Time
	OsType           string
	HyperVGeneration string

	CreationDataCreateOption     string
	CreationDataStorageAccountID *string

	CreationDataImageReferenceID  *string
	CreationDataImageReferenceLun *int32

	CreationDataGalleryImageReferenceID  *string
	CreationDataGalleryImageReferenceLun *int32
	CreationDataSourceURI                *string
	CreationDataSourceResourceID         *string
	CreationDataSourceUniqueID           *string
	CreationDataUploadSizeBytes          *int64
	DiskSizeGB                           *int32
	DiskSizeBytes                        *int64
	UniqueID                             *string

	EncryptionSettingsCollectionEnabled         *bool
	EncryptionSettingsCollectionSettings        []*DiskEncryptionSetting `gorm:"constraint:OnDelete:CASCADE;"`
	EncryptionSettingsCollectionSettingsVersion *string
	ProvisioningState                           *string
	DiskIOPSReadWrite                           *int64
	DiskMBpsReadWrite                           *int64
	DiskIOPSReadOnly                            *int64
	DiskMBpsReadOnly                            *int64
	DiskState                                   string

	EncryptionDiskEncryptionSetID *string
	EncryptionType                string
	MaxShares                     *int32
	ShareInfo                     []*DiskShareInfo `gorm:"constraint:OnDelete:CASCADE;"`
	NetworkAccessPolicy           string
	DiskAccessID                  *string
	ResourceID                    *string
	Name                          *string
	Type                          *string
	Location                      *string
	Tags                          []*DiskTag `gorm:"constraint:OnDelete:CASCADE;"`
	// contains filtered or unexported fields
}

func (Disk) TableName

func (Disk) TableName() string

type DiskConfig

type DiskConfig struct {
	Filter string
}

type DiskEncryptionSetting

type DiskEncryptionSetting struct {
	ID             uint   `gorm:"primarykey"`
	DiskID         uint   `neo:"ignore"`
	SubscriptionID string `gorm:"-"`

	DiskEncryptionKeySourceVaultID *string
	DiskEncryptionKeySecretURL     *string

	KeyEncryptionKeySourceVaultID *string
	KeyEncryptionKeyURL           *string
}

func (DiskEncryptionSetting) TableName

func (DiskEncryptionSetting) TableName() string

type DiskManagedByExtended

type DiskManagedByExtended struct {
	ID             uint   `gorm:"primarykey"`
	DiskID         uint   `neo:"ignore"`
	SubscriptionID string `gorm:"-"`
	Value          string
}

type DiskShareInfo

type DiskShareInfo struct {
	ID             uint   `gorm:"primarykey"`
	DiskID         uint   `neo:"ignore"`
	SubscriptionID string `gorm:"-"`
	VMURI          *string
}

func (DiskShareInfo) TableName

func (DiskShareInfo) TableName() string

type DiskTag

type DiskTag struct {
	ID             uint   `gorm:"primarykey"`
	DiskID         uint   `neo:"ignore"`
	SubscriptionID string `gorm:"-"`

	Key   string
	Value *string
}

func (DiskTag) TableName

func (DiskTag) TableName() string

type DiskZones

type DiskZones struct {
	ID             uint   `gorm:"primarykey"`
	DiskID         uint   `neo:"ignore"`
	SubscriptionID string `gorm:"-"`
	Value          string
}

Jump to

Keyboard shortcuts

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