Documentation ¶
Index ¶
- func Len() int
- type WorkerType
- type WorkerTypes
- func (WorkerTypes) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (WorkerTypes) GormDataType() string
- func (js WorkerTypes) GormValue(ctx context.Context, db *gorm.DB) (expr clause.Expr)
- func (c WorkerTypes) MarshalJSON() ([]byte, error)
- func (c WorkerTypes) MarshalYAML() (any, error)
- func (c *WorkerTypes) Scan(value interface{}) (err error)
- func (c *WorkerTypes) UnmarshalJSON(b []byte) error
- func (c *WorkerTypes) UnmarshalYAML(b *yaml.Node) error
- func (c WorkerTypes) Value() (value driver.Value, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WorkerType ¶
type WorkerType byte
const ( Host WorkerType = iota Docker SSH Unknown WorkerType = 255 )
func FromString ¶
func FromString(s string) WorkerType
func Random ¶
func Random() WorkerType
func (WorkerType) MarshalJSON ¶
func (c WorkerType) MarshalJSON() ([]byte, error)
func (WorkerType) MarshalYAML ¶
func (c WorkerType) MarshalYAML() (any, error)
func (WorkerType) String ¶
func (c WorkerType) String() string
func (*WorkerType) UnmarshalJSON ¶
func (c *WorkerType) UnmarshalJSON(b []byte) error
func (*WorkerType) UnmarshalYAML ¶
func (c *WorkerType) UnmarshalYAML(b *yaml.Node) error
type WorkerTypes ¶
type WorkerTypes []WorkerType
func (WorkerTypes) GormDBDataType ¶
func (WorkerTypes) GormDataType ¶
func (WorkerTypes) GormDataType() string
func (WorkerTypes) MarshalJSON ¶
func (c WorkerTypes) MarshalJSON() ([]byte, error)
func (WorkerTypes) MarshalYAML ¶
func (c WorkerTypes) MarshalYAML() (any, error)
func (*WorkerTypes) Scan ¶
func (c *WorkerTypes) Scan(value interface{}) (err error)
func (*WorkerTypes) UnmarshalJSON ¶
func (c *WorkerTypes) UnmarshalJSON(b []byte) error
func (*WorkerTypes) UnmarshalYAML ¶
func (c *WorkerTypes) UnmarshalYAML(b *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.