route53model

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: 6 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 route53 module.

Types

type Route53Domain

type Route53Domain struct {
	ID        uint `gorm:"primary_key"`
	CreatedAt time.Time
	UpdatedAt time.Time

	Organization auth.Organization `gorm:"foreignkey:OrganizationId"`

	OrganizationId uint   `gorm:"unique_index:idx_amazon_route53_domains_organization_id;not null"`
	Domain         string `gorm:"unique_index:idx_amazon_route53_domains_domain;not null"`
	HostedZoneId   string
	PolicyArn      string
	IamUser        string
	AwsAccessKeyId string
	Status         string `gorm:"not null"`
	ErrorMessage   string `sql:"type:text;"`
}

Route53Domain describes the database model for storing the state of domains registered with with Amazon Route53 DNS service

func (Route53Domain) TableName

func (Route53Domain) TableName() string

TableName changes the default table name.

Jump to

Keyboard shortcuts

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