models

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobContainer

type BlobContainer struct {
	bun.BaseModel `bun:"table:az_blob_container"`
	coremodels.Model

	Name               string          `bun:"name,notnull,unique:az_blob_container_key"`
	SubscriptionID     string          `bun:"subscription_id,notnull,unique:az_blob_container_key"`
	ResourceGroupName  string          `bun:"resource_group,notnull,unique:az_blob_container_key"`
	StorageAccountName string          `bun:"storage_account,notnull,unique:az_blob_container_key"`
	PublicAccess       string          `bun:"public_access,notnull"`
	Deleted            bool            `bun:"deleted,notnull"`
	LastModifiedTime   time.Time       `bun:"last_modified_time,nullzero"`
	Subscription       *Subscription   `bun:"rel:has-one,join:subscription_id=subscription_id"`
	ResourceGroup      *ResourceGroup  `bun:"rel:has-one,join:resource_group=name,join:subscription_id=subscription_id"`
	StorageAccount     *StorageAccount `bun:"rel:has-one,join:storage_account=name,join:resource_group=resource_group,join:subscription_id=subscription_id"`
}

BlobContainer represents an Azure Blob container.

type BlobContainerToResourceGroup

type BlobContainerToResourceGroup struct {
	bun.BaseModel `bun:"table:l_az_blob_container_to_rg"`
	coremodels.Model

	BlobContainerID uuid.UUID `bun:"blob_container_id,notnull,type:uuid,unique:l_az_blob_container_to_rg_key"`
	ResourceGroupID uuid.UUID `bun:"rg_id,notnull,type:uuid,unique:l_az_blob_container_to_rg_key"`
}

BlobContainerToResourceGroup represents a link table connecting the BlobContainer with ResourceGroup models.

type LoadBalancer

type LoadBalancer struct {
	bun.BaseModel `bun:"table:az_lb"`
	coremodels.Model

	Name              string         `bun:"name,notnull,unique:az_lb_key"`
	SubscriptionID    string         `bun:"subscription_id,notnull,unique:az_lb_key"`
	ResourceGroupName string         `bun:"resource_group,notnull,unique:az_lb_key"`
	Location          string         `bun:"location,notnull"`
	ProvisioningState string         `bun:"provisioning_state,notnull"`
	SKUName           string         `bun:"sku_name,notnull"`
	SKUTier           string         `bun:"sku_tier,notnull"`
	Subscription      *Subscription  `bun:"rel:has-one,join:subscription_id=subscription_id"`
	ResourceGroup     *ResourceGroup `bun:"rel:has-one,join:resource_group=name,join:subscription_id=subscription_id"`
}

LoadBalancer represents an Azure Load Balancer.

type LoadBalancerToResourceGroup

type LoadBalancerToResourceGroup struct {
	bun.BaseModel `bun:"table:l_az_lb_to_rg"`
	coremodels.Model

	ResourceGroupID uuid.UUID `bun:"rg_id,notnull,type:uuid,unique:l_az_lb_to_rg_key"`
	LoadBalancerID  uuid.UUID `bun:"lb_id,notnull,type:uuid,unique:l_az_lb_to_rg_key"`
}

LoadBalancerToResourceGroup represents a link table connecting the LoadBalancer with ResourceGroup models.

type PublicAddress

type PublicAddress struct {
	bun.BaseModel `bun:"table:az_public_address"`
	coremodels.Model

	Name              string         `bun:"name,notnull,unique:az_public_address_key"`
	SubscriptionID    string         `bun:"subscription_id,notnull,unique:az_public_address_key"`
	ResourceGroupName string         `bun:"resource_group,notnull,unique:az_public_address_key"`
	Location          string         `bun:"location,notnull"`
	ProvisioningState string         `bun:"provisioning_state,notnull"`
	SKUName           string         `bun:"sku_name,notnull"`
	SKUTier           string         `bun:"sku_tier,notnull"`
	DDoSProctection   string         `bun:"ddos_protection,nullzero"`
	FQDN              string         `bun:"fqdn,nullzero"`
	ReverseFQDN       string         `bun:"reverse_fqdn,nullzero"`
	NATGateway        string         `bun:"nat_gateway,nullzero"`
	IPAddress         net.IP         `bun:"ip_address,nullzero,type:inet"`
	IPVersion         string         `bun:"ip_version,nullzero"`
	Subscription      *Subscription  `bun:"rel:has-one,join:subscription_id=subscription_id"`
	ResourceGroup     *ResourceGroup `bun:"rel:has-one,join:resource_group=name,join:subscription_id=subscription_id"`
}

PublicAddress represents an Azure Public IP Address.

type PublicAddressToResourceGroup

type PublicAddressToResourceGroup struct {
	bun.BaseModel `bun:"table:l_az_pub_addr_to_rg"`
	coremodels.Model

	ResourceGroupID uuid.UUID `bun:"rg_id,notnull,type:uuid,unique:l_az_pub_addr_to_rg_key"`
	PublicAddressID uuid.UUID `bun:"pa_id,notnull,type:uuid,unique:l_az_pub_addr_to_rg_key"`
}

PublicAddressToResourceGroup represents a link table connecting the PublicAddress with ResourceGroup models.

type ResourceGroup

type ResourceGroup struct {
	bun.BaseModel `bun:"table:az_resource_group"`
	coremodels.Model

	Name           string        `bun:"name,notnull,unique:az_resource_group_key"`
	SubscriptionID string        `bun:"subscription_id,notnull,unique:az_resource_group_key"`
	Location       string        `bun:"location,notnull"`
	Subscription   *Subscription `bun:"rel:has-one,join:subscription_id=subscription_id"`
}

ResourceGroup represents an Azure Resource Group

type ResourceGroupToSubscription

type ResourceGroupToSubscription struct {
	bun.BaseModel `bun:"table:l_az_rg_to_subscription"`
	coremodels.Model

	ResourceGroupID uuid.UUID `bun:"rg_id,notnull,type:uuid,unique:l_az_rg_to_subscription_key"`
	SubscriptionID  uuid.UUID `bun:"sub_id,notnull,type:uuid,unique:l_az_rg_to_subscription_key"`
}

ResourceGroupToSubscription represents a link table connecting the Subscription with ResourceGroup models.

type StorageAccount

type StorageAccount struct {
	bun.BaseModel `bun:"table:az_storage_account"`
	coremodels.Model

	Name              string         `bun:"name,notnull,unique:az_storage_account_key"`
	SubscriptionID    string         `bun:"subscription_id,notnull,unique:az_storage_account_key"`
	ResourceGroupName string         `bun:"resource_group,notnull,unique:az_storage_account_key"`
	Location          string         `bun:"location,notnull"`
	ProvisioningState string         `bun:"provisioning_state,notnull"`
	Kind              string         `bun:"kind,notnull"`
	SKUName           string         `bun:"sku_name,notnull"`
	SKUTier           string         `bun:"sku_tier,notnull"`
	CreationTime      time.Time      `bun:"creation_time,nullzero"`
	Subscription      *Subscription  `bun:"rel:has-one,join:subscription_id=subscription_id"`
	ResourceGroup     *ResourceGroup `bun:"rel:has-one,join:resource_group=name,join:subscription_id=subscription_id"`
}

StorageAccount represents an Azure Storage Account.

type Subnet

type Subnet struct {
	bun.BaseModel `bun:"table:az_subnet"`
	coremodels.Model

	Name              string         `bun:"name,notnull,unique:az_subnet_key"`
	SubscriptionID    string         `bun:"subscription_id,notnull,unique:az_subnet_key"`
	ResourceGroupName string         `bun:"resource_group,notnull,unique:az_subnet_key"`
	VPCName           string         `bun:"vpc_name,notnull,unique:az_subnet_key"`
	Type              string         `bun:"type,notnull"`
	ProvisioningState string         `bun:"provisioning_state,notnull"`
	AddressPrefix     string         `bun:"address_prefix,notnull"`
	SecurityGroup     string         `bun:"security_group,notnull"`
	Purpose           string         `bun:"purpose,notnull"`
	Subscription      *Subscription  `bun:"rel:has-one,join:subscription_id=subscription_id"`
	ResourceGroup     *ResourceGroup `bun:"rel:has-one,join:resource_group=name,join:subscription_id=subscription_id"`
	VPC               *VPC           `bun:"rel:has-one,join:vpc_name=name,join:subscription_id=subscription_id,join:resource_group=resource_group"`
}

Subnet represents an Azure Subnet.

type SubnetToVPC

type SubnetToVPC struct {
	bun.BaseModel `bun:"table:l_az_subnet_to_vpc"`
	coremodels.Model

	SubnetID uuid.UUID `bun:"subnet_id,notnull,type:uuid,unique:l_az_subnet_to_vpc_key"`
	VPCID    uuid.UUID `bun:"vpc_id,notnull,type:uuid,unique:l_az_subnet_to_vpc_key"`
}

SubnetToVPC represents a link table connecting the Subnet with VPC models.

type Subscription

type Subscription struct {
	bun.BaseModel `bun:"table:az_subscription"`
	coremodels.Model

	SubscriptionID  string            `bun:"subscription_id,notnull,unique"`
	Name            string            `bun:"name,nullzero"`
	State           string            `bun:"state,nullzero"`
	ResourceGroups  []*ResourceGroup  `bun:"rel:has-many,join:subscription_id=subscription_id"`
	VirtualMachines []*VirtualMachine `bun:"rel:has-many,join:subscription_id=subscription_id"`
}

Subscription represents an Azure Subscription

type VPC

type VPC struct {
	bun.BaseModel `bun:"table:az_vpc"`
	coremodels.Model

	Name                string         `bun:"name,notnull,unique:az_vpc_key"`
	SubscriptionID      string         `bun:"subscription_id,notnull,unique:az_vpc_key"`
	ResourceGroupName   string         `bun:"resource_group,notnull,unique:az_vpc_key"`
	Location            string         `bun:"location,notnull"`
	ProvisioningState   string         `bun:"provisioning_state,notnull"`
	EncryptionEnabled   bool           `bun:"encryption_enabled,notnull"`
	VMProtectionEnabled bool           `bun:"vm_protection_enabled,notnull"`
	Subscription        *Subscription  `bun:"rel:has-one,join:subscription_id=subscription_id"`
	ResourceGroup       *ResourceGroup `bun:"rel:has-one,join:resource_group=name,join:subscription_id=subscription_id"`
}

VPC represents an Azure VPC.

type VPCToResourceGroup

type VPCToResourceGroup struct {
	bun.BaseModel `bun:"table:l_az_vpc_to_rg"`
	coremodels.Model

	VPCID           uuid.UUID `bun:"vpc_id,notnull,type:uuid,unique:l_az_vpc_to_rg_key"`
	ResourceGroupID uuid.UUID `bun:"rg_id,notnull,type:uuid,unique:l_az_vpc_to_rg_key"`
}

VPCToResourceGroup represents a link table connecting the VPC with ResourceGroup models.

type VirtualMachine

type VirtualMachine struct {
	bun.BaseModel `bun:"table:az_vm"`
	coremodels.Model

	Name              string         `bun:"name,notnull,unique:az_vm_key"`
	SubscriptionID    string         `bun:"subscription_id,notnull,unique:az_vm_key"`
	ResourceGroupName string         `bun:"resource_group,notnull,unique:az_vm_key"`
	Location          string         `bun:"location,notnull"`
	ProvisioningState string         `bun:"provisioning_state,notnull"`
	TimeCreated       time.Time      `bun:"vm_created_at,nullzero"`
	VMSize            string         `bun:"vm_size,nullzero"`
	PowerState        string         `bun:"power_state,nullzero"`
	HyperVGeneration  string         `bun:"hyper_v_gen,nullzero"`
	VMAgentVersion    string         `bun:"vm_agent_version,nullzero"`
	GalleryImageID    string         `bun:"gallery_image_id,nullzero"`
	Subscription      *Subscription  `bun:"rel:has-one,join:subscription_id=subscription_id"`
	ResourceGroup     *ResourceGroup `bun:"rel:has-one,join:resource_group=name,join:subscription_id=subscription_id"`
}

VirtualMachine represents an Azure Virtual Machine.

type VirtualMachineToResourceGroup

type VirtualMachineToResourceGroup struct {
	bun.BaseModel `bun:"table:l_az_vm_to_rg"`
	coremodels.Model

	ResourceGroupID uuid.UUID `bun:"rg_id,notnull,type:uuid,unique:l_az_vm_to_rg_key"`
	VMID            uuid.UUID `bun:"vm_id,notnull,type:uuid,unique:l_az_vm_to_rg_key"`
}

VirtualMachineToResourceGroup represents a link table connecting the VirtualMachine with ResourceGroup models.

Jump to

Keyboard shortcuts

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