You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/internal/host/static/gorm.go

62 lines
1.2 KiB

package static
// TableName returns the table name for the host catalog.
func (c *HostCatalog) TableName() string {
if c.tableName != "" {
return c.tableName
}
return "static_host_catalog"
}
// SetTableName sets the table name.
func (c *HostCatalog) SetTableName(n string) {
if n != "" {
c.tableName = n
}
}
// TableName returns the table name for the host.
func (h *Host) TableName() string {
if h.tableName != "" {
return h.tableName
}
return "static_host"
}
// SetTableName sets the table name.
func (h *Host) SetTableName(n string) {
if n != "" {
h.tableName = n
}
}
// TableName returns the table name for the host set.
func (s *HostSet) TableName() string {
if s.tableName != "" {
return s.tableName
}
return "static_host_set"
}
// SetTableName sets the table name.
func (s *HostSet) SetTableName(n string) {
if n != "" {
s.tableName = n
}
}
// TableName returns the table name for the host set.
func (m *HostSetMember) TableName() string {
if m.tableName != "" {
return m.tableName
}
return "static_host_set_member"
}
// SetTableName sets the table name.
func (m *HostSetMember) SetTableName(n string) {
if n != "" {
m.tableName = n
}
}