worker_type

package
v0.0.0-...-e02a78a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Len

func Len() int

Types

type WorkerType

type WorkerType byte
const (
	Host WorkerType = iota
	Docker
	VM
	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) GormDBDataType(db *gorm.DB, field *schema.Field) string

func (WorkerTypes) GormDataType

func (WorkerTypes) GormDataType() string

func (WorkerTypes) GormValue

func (js WorkerTypes) GormValue(ctx context.Context, db *gorm.DB) (expr clause.Expr)

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

func (WorkerTypes) Value

func (c WorkerTypes) Value() (value driver.Value, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL