Documentation ¶
Index ¶
- func AddDrpParam(c *api.Client, objtype, objkey, param string, new interface{}) *models.Error
- func AddOrSetDrpParam(c *api.Client, objtype, objkey, param string, new interface{}) *models.Error
- func AddToJobLog(c *api.Client, jid, data string) *models.Error
- func ConvertError(code int, err error) *models.Error
- func DeleteDrpMachine(c *api.Client, uuid string) *models.Error
- func GetDrpBooleanParam(c *api.Client, objtype, objkey, param string) (bool, *models.Error)
- func GetDrpIntParam(c *api.Client, objtype, objkey, param string) (int, *models.Error)
- func GetDrpMachineByParam(c *api.Client, param, value string) (*models.Machine, *models.Error)
- func GetDrpObjByParam(c *api.Client, objtype, param, value string) (models.Model, *models.Error)
- func GetDrpParam(c *api.Client, objtype, objkey, param string) (interface{}, *models.Error)
- func GetDrpStringParam(c *api.Client, objtype, objkey, param string) (string, *models.Error)
- func GetParamOrBoolean(m map[string]interface{}, p string, b bool) bool
- func GetParamOrInt(m map[string]interface{}, p string, i int) int
- func GetParamOrInt64(m map[string]interface{}, p string, i int64) int64
- func GetParamOrString(m map[string]interface{}, p, s string) string
- func MakeError(code int, msg string) *models.Error
- func RemoveDrpParam(c *api.Client, objtype, objkey, param string, old interface{}) *models.Error
- func SetDrpParam(c *api.Client, objtype, objkey, param string, old, new interface{}) *models.Error
- func SetErrorName(name string)
- func ValidateBooleanValue(param string, val interface{}) (bool, *models.Error)
- func ValidateIntValue(param string, val interface{}) (int, *models.Error)
- func ValidateStringValue(param string, val interface{}) (string, *models.Error)
- type PerIdQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDrpParam ¶
func AddOrSetDrpParam ¶
func GetDrpBooleanParam ¶
func GetDrpIntParam ¶
func GetDrpMachineByParam ¶
func GetDrpObjByParam ¶
func GetDrpParam ¶
* Helper function to lookup an object's parameter in aggregate so that * the parameter default could be retrieved if unset.
func GetDrpStringParam ¶
func GetParamOrString ¶
func RemoveDrpParam ¶
func SetDrpParam ¶
func SetErrorName ¶
func SetErrorName(name string)
func ValidateBooleanValue ¶
Types ¶
type PerIdQueue ¶ added in v4.5.4
type PerIdQueue struct { Capacity int // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.