hummingbird/internal/models/dockerconfig.go
2023-08-28 14:51:31 +08:00

20 lines
607 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package models
// 驱动镜像配置表alias MirrorConfig
type DockerConfig struct {
Timestamps `gorm:"embedded"`
Id string `gorm:"id;primaryKey;not null;type:string;size:255;comment:主键"`
Address string `gorm:"type:string;size:255;comment:地址"`
Account string `gorm:"type:string;size:255;comment:用户名"`
Password string `gorm:"type:string;size:255;comment:密码"`
SaltKey string `gorm:"type:string;size:255;comment:盐值"`
}
func (table *DockerConfig) TableName() string {
return "docker_config"
}
func (table *DockerConfig) Get() interface{} {
return *table
}