Documentation ¶
Index ¶
- type SBaremetalProfile
- type SBaremetalProfileManager
- func (bpm *SBaremetalProfileManager) InitializeData() error
- func (bpm *SBaremetalProfileManager) ListItemExportKeys(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (bpm *SBaremetalProfileManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (bpm *SBaremetalProfileManager) OrderByExtraFields(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (bpm *SBaremetalProfileManager) QueryDistinctExtraField(q *sqlchemy.SQuery, field string) (*sqlchemy.SQuery, error)
- func (bpm *SBaremetalProfileManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (baremetalapi.BaremetalProfileCreateInput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SBaremetalProfile ¶
type SBaremetalProfile struct { db.SStandaloneAnonResourceBase // 品牌名称(English) OemName string `width:"64" charset:"ascii" nullable:"false" default:"" index:"true" list:"user" create:"required"` Model string `width:"64" charset:"utf8" list:"user" create:"optional"` LanChannel uint8 `list:"user" update:"user" create:"optional"` LanChannel2 uint8 `list:"user" update:"user" create:"optional"` LanChannel3 uint8 `list:"user" update:"user" create:"optional"` // BMC Root账号名称,默认为 root RootName string `width:"64" charset:"ascii" nullable:"false" list:"user" update:"user" create:"required" default:"root"` // BMC Root账号ID,默认为 2 RootId int `list:"user" update:"user" create:"optional" default:"2"` // 是否要求强密码 StrongPass bool `list:"user" update:"user" create:"optional"` }
func (*SBaremetalProfile) ValidateUpdateData ¶
func (bp *SBaremetalProfile) ValidateUpdateData( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input baremetalapi.BaremetalProfileUpdateInput, ) (baremetalapi.BaremetalProfileUpdateInput, error)
type SBaremetalProfileManager ¶
type SBaremetalProfileManager struct {
db.SStandaloneAnonResourceBaseManager
}
var BaremetalProfileManager *SBaremetalProfileManager
func (*SBaremetalProfileManager) InitializeData ¶
func (bpm *SBaremetalProfileManager) InitializeData() error
func (*SBaremetalProfileManager) ListItemExportKeys ¶
func (bpm *SBaremetalProfileManager) ListItemExportKeys(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, keys stringutils2.SSortedStrings) (*sqlchemy.SQuery, error)
func (*SBaremetalProfileManager) ListItemFilter ¶
func (bpm *SBaremetalProfileManager) ListItemFilter( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query baremetalapi.BaremetalProfileListInput, ) (*sqlchemy.SQuery, error)
func (*SBaremetalProfileManager) OrderByExtraFields ¶
func (bpm *SBaremetalProfileManager) OrderByExtraFields( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, query baremetalapi.BaremetalProfileListInput, ) (*sqlchemy.SQuery, error)
func (*SBaremetalProfileManager) QueryDistinctExtraField ¶
func (*SBaremetalProfileManager) ValidateCreateData ¶
func (bpm *SBaremetalProfileManager) ValidateCreateData( ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, input baremetalapi.BaremetalProfileCreateInput, ) (baremetalapi.BaremetalProfileCreateInput, error)
Click to show internal directories.
Click to hide internal directories.