storage

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accounts

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

func ListContainerItems

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

func MigrateAccount

func MigrateAccount(db *database.Database) error

func MigrateListContainerItem

func MigrateListContainerItem(db *database.Database) error

Types

type Account

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

	SkuName string
	SkuTier string
	Kind    string

	IdentityPrincipalID *string
	IdentityTenantID    *string
	IdentityType        *string

	AccountPropertiesProvisioningState string

	AccountPropertiesPrimaryEndpointsBlob  *string
	AccountPropertiesPrimaryEndpointsQueue *string
	AccountPropertiesPrimaryEndpointsTable *string
	AccountPropertiesPrimaryEndpointsFile  *string
	AccountPropertiesPrimaryEndpointsWeb   *string
	AccountPropertiesPrimaryEndpointsDfs   *string

	AccountPropertiesPrimaryEndpointsMicrosoftEndpointsBlob  *string
	AccountPropertiesPrimaryEndpointsMicrosoftEndpointsQueue *string
	AccountPropertiesPrimaryEndpointsMicrosoftEndpointsTable *string
	AccountPropertiesPrimaryEndpointsMicrosoftEndpointsFile  *string
	AccountPropertiesPrimaryEndpointsMicrosoftEndpointsWeb   *string
	AccountPropertiesPrimaryEndpointsMicrosoftEndpointsDfs   *string

	AccountPropertiesPrimaryEndpointsInternetEndpointsBlob *string
	AccountPropertiesPrimaryEndpointsInternetEndpointsFile *string
	AccountPropertiesPrimaryEndpointsInternetEndpointsWeb  *string
	AccountPropertiesPrimaryEndpointsInternetEndpointsDfs  *string
	AccountPropertiesPrimaryLocation                       *string
	AccountPropertiesStatusOfPrimary                       string
	AccountPropertiesLastGeoFailoverTime                   time.Time
	AccountPropertiesSecondaryLocation                     *string
	AccountPropertiesStatusOfSecondary                     string
	AccountPropertiesCreationTime                          time.Time

	AccountPropertiesCustomDomainName             *string
	AccountPropertiesCustomDomainUseSubDomainName *bool

	AccountPropertiesSecondaryEndpointsBlob  *string
	AccountPropertiesSecondaryEndpointsQueue *string
	AccountPropertiesSecondaryEndpointsTable *string
	AccountPropertiesSecondaryEndpointsFile  *string
	AccountPropertiesSecondaryEndpointsWeb   *string
	AccountPropertiesSecondaryEndpointsDfs   *string

	AccountPropertiesSecondaryEndpointsMicrosoftEndpointsBlob  *string
	AccountPropertiesSecondaryEndpointsMicrosoftEndpointsQueue *string
	AccountPropertiesSecondaryEndpointsMicrosoftEndpointsTable *string
	AccountPropertiesSecondaryEndpointsMicrosoftEndpointsFile  *string
	AccountPropertiesSecondaryEndpointsMicrosoftEndpointsWeb   *string
	AccountPropertiesSecondaryEndpointsMicrosoftEndpointsDfs   *string

	AccountPropertiesSecondaryEndpointsInternetEndpointsBlob *string
	AccountPropertiesSecondaryEndpointsInternetEndpointsFile *string
	AccountPropertiesSecondaryEndpointsInternetEndpointsWeb  *string
	AccountPropertiesSecondaryEndpointsInternetEndpointsDfs  *string

	AccountPropertiesEncryptionServicesBlobEnabled         *bool
	AccountPropertiesEncryptionServicesBlobLastEnabledTime time.Time
	AccountPropertiesEncryptionServicesBlobKeyType         string

	AccountPropertiesEncryptionServicesFileEnabled         *bool
	AccountPropertiesEncryptionServicesFileLastEnabledTime time.Time
	AccountPropertiesEncryptionServicesFileKeyType         string

	AccountPropertiesEncryptionServicesTableEnabled         *bool
	AccountPropertiesEncryptionServicesTableLastEnabledTime time.Time
	AccountPropertiesEncryptionServicesTableKeyType         string

	AccountPropertiesEncryptionServicesQueueEnabled            *bool
	AccountPropertiesEncryptionServicesQueueLastEnabledTime    time.Time
	AccountPropertiesEncryptionServicesQueueKeyType            string
	AccountPropertiesEncryptionKeySource                       string
	AccountPropertiesEncryptionRequireInfrastructureEncryption *bool

	AccountPropertiesEncryptionKeyVaultPropertiesKeyName                       *string
	AccountPropertiesEncryptionKeyVaultPropertiesKeyVersion                    *string
	AccountPropertiesEncryptionKeyVaultPropertiesKeyVaultURI                   *string
	AccountPropertiesEncryptionKeyVaultPropertiesCurrentVersionedKeyIdentifier *string
	AccountPropertiesEncryptionKeyVaultPropertiesLastKeyRotationTimestamp      time.Time
	AccountPropertiesAccessTier                                                string

	AccountPropertiesAzureFilesIdentityBasedAuthenticationDirectoryServiceOptions string

	AccountPropertiesAzureFilesIdentityBasedAuthenticationActiveDirectoryPropertiesDomainName        *string
	AccountPropertiesAzureFilesIdentityBasedAuthenticationActiveDirectoryPropertiesNetBiosDomainName *string
	AccountPropertiesAzureFilesIdentityBasedAuthenticationActiveDirectoryPropertiesForestName        *string
	AccountPropertiesAzureFilesIdentityBasedAuthenticationActiveDirectoryPropertiesDomainGUID        *string
	AccountPropertiesAzureFilesIdentityBasedAuthenticationActiveDirectoryPropertiesDomainSid         *string
	AccountPropertiesAzureFilesIdentityBasedAuthenticationActiveDirectoryPropertiesAzureStorageSid   *string
	AccountPropertiesEnableHTTPSTrafficOnly                                                          *bool

	AccountPropertiesNetworkRuleSetBypass              string
	AccountPropertiesNetworkRuleSetVirtualNetworkRules []AccountVirtualNetworkRule `gorm:"constraint:OnDelete:CASCADE;"`
	AccountPropertiesNetworkRuleSetIPRules             []AccountIPRule             `gorm:"constraint:OnDelete:CASCADE;"`
	AccountPropertiesNetworkRuleSetDefaultAction       string
	AccountPropertiesIsHnsEnabled                      *bool

	AccountPropertiesGeoReplicationStatsStatus       string
	AccountPropertiesGeoReplicationStatsLastSyncTime time.Time
	AccountPropertiesGeoReplicationStatsCanFailover  *bool
	AccountPropertiesFailoverInProgress              *bool
	AccountPropertiesLargeFileSharesState            string
	AccountPropertiesPrivateEndpointConnections      []AccountPrivateEndpointConnection `gorm:"constraint:OnDelete:CASCADE;"`

	AccountPropertiesRoutingPreferenceRoutingChoice             string
	AccountPropertiesRoutingPreferencePublishMicrosoftEndpoints *bool
	AccountPropertiesRoutingPreferencePublishInternetEndpoints  *bool

	AccountPropertiesBlobRestoreStatusStatus        string
	AccountPropertiesBlobRestoreStatusFailureReason *string
	AccountPropertiesBlobRestoreStatusRestoreID     *string

	AccountPropertiesBlobRestoreStatusParametersTimeToRestore time.Time
	AccountPropertiesBlobRestoreStatusParametersBlobRanges    []AccountBlobRestoreRange `gorm:"constraint:OnDelete:CASCADE;"`
	AccountPropertiesAllowBlobPublicAccess                    *bool
	AccountPropertiesMinimumTLSVersion                        string
	Location                                                  *string
	ResourceID                                                *string
	Name                                                      *string
	Type                                                      *string
}

func (Account) TableName

func (Account) TableName() string

type AccountBlobRestoreRange

type AccountBlobRestoreRange struct {
	ID                             uint `gorm:"primarykey"`
	AccountID                      uint
	AccountBlobRestoreParametersID uint
	StartRange                     *string
	EndRange                       *string
}

func (AccountBlobRestoreRange) TableName

func (AccountBlobRestoreRange) TableName() string

type AccountConfig

type AccountConfig struct {
	Filter string
}

type AccountIPRule

type AccountIPRule struct {
	ID                      uint `gorm:"primarykey"`
	AccountID               uint
	AccountNetworkRuleSetID uint
	IPAddressOrRange        *string
	Action                  string
}

func (AccountIPRule) TableName

func (AccountIPRule) TableName() string

type AccountPrivateEndpointConnection

type AccountPrivateEndpointConnection struct {
	ID                  uint `gorm:"primarykey"`
	AccountID           uint
	AccountPropertiesID uint

	PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionStateStatus         string
	PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionStateDescription    *string
	PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionStateActionRequired *string
	PrivateEndpointConnectionPropertiesProvisioningState                               string
	ResourceID                                                                         *string
	Name                                                                               *string
	Type                                                                               *string
}

func (AccountPrivateEndpointConnection) TableName

type AccountVirtualNetworkRule

type AccountVirtualNetworkRule struct {
	ID                       uint `gorm:"primarykey"`
	AccountID                uint
	AccountNetworkRuleSetID  uint
	VirtualNetworkResourceID *string
	Action                   string
	State                    string
}

func (AccountVirtualNetworkRule) TableName

func (AccountVirtualNetworkRule) TableName() string

type ListContainerItem

type ListContainerItem struct {
	ID        uint `gorm:"primarykey"`
	AccountID string

	ContainerPropertiesVersion                     *string
	ContainerPropertiesDeleted                     *bool
	ContainerPropertiesDeletedTime                 time.Time
	ContainerPropertiesRemainingRetentionDays      *int32
	ContainerPropertiesDefaultEncryptionScope      *string
	ContainerPropertiesDenyEncryptionScopeOverride *bool
	ContainerPropertiesPublicAccess                string
	ContainerPropertiesLastModifiedTime            time.Time
	ContainerPropertiesLeaseStatus                 string
	ContainerPropertiesLeaseState                  string
	ContainerPropertiesLeaseDuration               string

	ContainerPropertiesImmutabilityPolicyImmutabilityPolicyPropertyImmutabilityPeriodSinceCreationInDays *int32
	ContainerPropertiesImmutabilityPolicyImmutabilityPolicyPropertyState                                 string
	ContainerPropertiesImmutabilityPolicyImmutabilityPolicyPropertyAllowProtectedAppendWrites            *bool
	ContainerPropertiesImmutabilityPolicyEtag                                                            *string
	ContainerPropertiesImmutabilityPolicyUpdateHistory                                                   []ListContainerItemUpdateHistoryProperty `gorm:"constraint:OnDelete:CASCADE;"`

	ContainerPropertiesLegalHoldHasLegalHold *bool
	ContainerPropertiesLegalHoldTags         []ListContainerItemTagProperty `gorm:"constraint:OnDelete:CASCADE;"`
	ContainerPropertiesHasLegalHold          *bool
	ContainerPropertiesHasImmutabilityPolicy *bool
	Etag                                     *string
	ResourceID                               *string
	Name                                     *string
	Type                                     *string
}

func (ListContainerItem) TableName

func (ListContainerItem) TableName() string

type ListContainerItemConfig

type ListContainerItemConfig struct {
	Filter string
}

type ListContainerItemTagProperty

type ListContainerItemTagProperty struct {
	ID                                     uint `gorm:"primarykey"`
	ListContainerItemID                    uint
	ListContainerItemLegalHoldPropertiesID uint
	Tag                                    *string
	Timestamp                              time.Time
	ObjectIdentifier                       *string
	TenantID                               *string
	Upn                                    *string
}

func (ListContainerItemTagProperty) TableName

type ListContainerItemUpdateHistoryProperty

type ListContainerItemUpdateHistoryProperty struct {
	ID                                              uint `gorm:"primarykey"`
	ListContainerItemID                             uint
	ListContainerItemImmutabilityPolicyPropertiesID uint
	Update                                          string
	ImmutabilityPeriodSinceCreationInDays           *int32
	Timestamp                                       time.Time
	ObjectIdentifier                                *string
	TenantID                                        *string
	Upn                                             *string
}

func (ListContainerItemUpdateHistoryProperty) TableName

Jump to

Keyboard shortcuts

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