azureadapter

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *gorm.DB, logger logrus.FieldLogger) error

Migrate executes the table migrations for the application models.

Types

type AKSClusterModel

type AKSClusterModel struct {
	ID                uint `gorm:"primary_key"`
	ResourceGroup     string
	KubernetesVersion string
	NodePools         []*AKSNodePoolModel `gorm:"foreignkey:ClusterID"`
}

AKSClusterModel describes the aks cluster model

func (AKSClusterModel) TableName

func (AKSClusterModel) TableName() string

TableName sets AzureClusterModel's table name

type AKSNodePoolModel

type AKSNodePoolModel struct {
	ID               uint `gorm:"primary_key"`
	CreatedAt        time.Time
	CreatedBy        uint
	ClusterID        uint   `gorm:"unique_index:idx_aks_node_pools_cluster_id_name"`
	Name             string `gorm:"unique_index:idx_aks_node_pools_cluster_id_name"`
	Autoscaling      bool
	NodeMinCount     int
	NodeMaxCount     int
	Count            int
	NodeInstanceType string
	VNetSubnetID     string
	Labels           map[string]string `gorm:"-"`
}

AKSNodePoolModel describes AKS node pools model of a cluster

func (AKSNodePoolModel) TableName

func (AKSNodePoolModel) TableName() string

TableName sets AzureNodePoolModel's table name

Jump to

Keyboard shortcuts

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