enums

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EVENTTYPEDEFAULT         = "DEFAULT"
	MONITOR_EVENTTYPEDEFAULT = "MONITOR_DEFAULT"
)

Variables

View Source
var InvalidAccountIdentityType = errors.New("invalid AccountIdentityType type")
View Source
var InvalidAccountState = errors.New("invalid AccountState type")
View Source
var InvalidCacheMode = errors.New("invalid CacheMode type")
View Source
var InvalidConfigType = errors.New("invalid ConfigType type")
View Source
var InvalidDeployCmd = errors.New("invalid DeployCmd type")
View Source
var InvalidInstanceState = errors.New("invalid InstanceState type")
View Source
var InvalidMqttQOS = errors.New("invalid MqttQOS type")
View Source
var InvalidPasswordType = errors.New("invalid PasswordType type")
View Source
var InvalidProtocol = errors.New("invalid Protocol type")

Functions

This section is empty.

Types

type AccountIdentityType

type AccountIdentityType uint8
const (
	ACCOUNT_IDENTITY_TYPE_UNKNOWN AccountIdentityType = iota
	ACCOUNT_IDENTITY_TYPE__MOBILE
	ACCOUNT_IDENTITY_TYPE__EMAIL
	ACCOUNT_IDENTITY_TYPE__USERNAME
	ACCOUNT_IDENTITY_TYPE__BUILTIN
)

func ParseAccountIdentityTypeFromLabel

func ParseAccountIdentityTypeFromLabel(s string) (AccountIdentityType, error)

func ParseAccountIdentityTypeFromString

func ParseAccountIdentityTypeFromString(s string) (AccountIdentityType, error)

func (AccountIdentityType) ConstValues

func (v AccountIdentityType) ConstValues() []enum.IntStringerEnum

func (AccountIdentityType) Int

func (v AccountIdentityType) Int() int

func (AccountIdentityType) Label

func (v AccountIdentityType) Label() string

func (AccountIdentityType) MarshalText

func (v AccountIdentityType) MarshalText() ([]byte, error)

func (*AccountIdentityType) Scan

func (v *AccountIdentityType) Scan(src interface{}) error

func (AccountIdentityType) String

func (v AccountIdentityType) String() string

func (AccountIdentityType) TypeName

func (v AccountIdentityType) TypeName() string

func (*AccountIdentityType) UnmarshalText

func (v *AccountIdentityType) UnmarshalText(data []byte) error

func (AccountIdentityType) Value

func (v AccountIdentityType) Value() (driver.Value, error)

type AccountState

type AccountState uint8
const (
	ACCOUNT_STATE_UNKNOWN AccountState = iota
	ACCOUNT_STATE__ENABLED
	ACCOUNT_STATE__DISABLED
)

func ParseAccountStateFromLabel

func ParseAccountStateFromLabel(s string) (AccountState, error)

func ParseAccountStateFromString

func ParseAccountStateFromString(s string) (AccountState, error)

func (AccountState) ConstValues

func (v AccountState) ConstValues() []enum.IntStringerEnum

func (AccountState) Int

func (v AccountState) Int() int

func (AccountState) Label

func (v AccountState) Label() string

func (AccountState) MarshalText

func (v AccountState) MarshalText() ([]byte, error)

func (*AccountState) Scan

func (v *AccountState) Scan(src interface{}) error

func (AccountState) String

func (v AccountState) String() string

func (AccountState) TypeName

func (v AccountState) TypeName() string

func (*AccountState) UnmarshalText

func (v *AccountState) UnmarshalText(data []byte) error

func (AccountState) Value

func (v AccountState) Value() (driver.Value, error)

type CacheMode added in v1.0.0

type CacheMode uint8
const (
	CACHE_MODE_UNKNOWN CacheMode = iota
	CACHE_MODE__MEMORY
	CACHE_MODE__REDIS
)

func ParseCacheModeFromLabel added in v1.0.0

func ParseCacheModeFromLabel(s string) (CacheMode, error)

func ParseCacheModeFromString added in v1.0.0

func ParseCacheModeFromString(s string) (CacheMode, error)

func (CacheMode) ConstValues added in v1.0.0

func (v CacheMode) ConstValues() []enum.IntStringerEnum

func (CacheMode) Int added in v1.0.0

func (v CacheMode) Int() int

func (CacheMode) Label added in v1.0.0

func (v CacheMode) Label() string

func (CacheMode) MarshalText added in v1.0.0

func (v CacheMode) MarshalText() ([]byte, error)

func (*CacheMode) Scan added in v1.0.0

func (v *CacheMode) Scan(src interface{}) error

func (CacheMode) String added in v1.0.0

func (v CacheMode) String() string

func (CacheMode) TypeName added in v1.0.0

func (v CacheMode) TypeName() string

func (*CacheMode) UnmarshalText added in v1.0.0

func (v *CacheMode) UnmarshalText(data []byte) error

func (CacheMode) Value added in v1.0.0

func (v CacheMode) Value() (driver.Value, error)

type ConfigType added in v1.0.0

type ConfigType uint8
const (
	CONFIG_TYPE_UNKNOWN ConfigType = iota
	CONFIG_TYPE__PROJECT_SCHEMA
	CONFIG_TYPE__INSTANCE_CACHE
	CONFIG_TYPE__PROJECT_ENV
)

func ParseConfigTypeFromLabel added in v1.0.0

func ParseConfigTypeFromLabel(s string) (ConfigType, error)

func ParseConfigTypeFromString added in v1.0.0

func ParseConfigTypeFromString(s string) (ConfigType, error)

func (ConfigType) ConstValues added in v1.0.0

func (v ConfigType) ConstValues() []enum.IntStringerEnum

func (ConfigType) Int added in v1.0.0

func (v ConfigType) Int() int

func (ConfigType) Label added in v1.0.0

func (v ConfigType) Label() string

func (ConfigType) MarshalText added in v1.0.0

func (v ConfigType) MarshalText() ([]byte, error)

func (*ConfigType) Scan added in v1.0.0

func (v *ConfigType) Scan(src interface{}) error

func (ConfigType) String added in v1.0.0

func (v ConfigType) String() string

func (ConfigType) TypeName added in v1.0.0

func (v ConfigType) TypeName() string

func (*ConfigType) UnmarshalText added in v1.0.0

func (v *ConfigType) UnmarshalText(data []byte) error

func (ConfigType) Value added in v1.0.0

func (v ConfigType) Value() (driver.Value, error)

type DeployCmd

type DeployCmd uint8
const (
	DEPLOY_CMD_UNKNOWN DeployCmd = iota
	DEPLOY_CMD__CREATE
	DEPLOY_CMD__START
	DEPLOY_CMD__STOP
	DEPLOY_CMD__REMOVE
	DEPLOY_CMD__RESTART
)

func ParseDeployCmdFromLabel

func ParseDeployCmdFromLabel(s string) (DeployCmd, error)

func ParseDeployCmdFromString

func ParseDeployCmdFromString(s string) (DeployCmd, error)

func (DeployCmd) ConstValues

func (v DeployCmd) ConstValues() []enum.IntStringerEnum

func (DeployCmd) Int

func (v DeployCmd) Int() int

func (DeployCmd) Label

func (v DeployCmd) Label() string

func (DeployCmd) MarshalText

func (v DeployCmd) MarshalText() ([]byte, error)

func (*DeployCmd) Scan

func (v *DeployCmd) Scan(src interface{}) error

func (DeployCmd) String

func (v DeployCmd) String() string

func (DeployCmd) TypeName

func (v DeployCmd) TypeName() string

func (*DeployCmd) UnmarshalText

func (v *DeployCmd) UnmarshalText(data []byte) error

func (DeployCmd) Value

func (v DeployCmd) Value() (driver.Value, error)

type InstanceState

type InstanceState uint8
const (
	INSTANCE_STATE_UNKNOWN InstanceState = iota
	INSTANCE_STATE__CREATED
	INSTANCE_STATE__STARTED
	INSTANCE_STATE__STOPPED
)

func ParseInstanceStateFromLabel

func ParseInstanceStateFromLabel(s string) (InstanceState, error)

func ParseInstanceStateFromString

func ParseInstanceStateFromString(s string) (InstanceState, error)

func (InstanceState) ConstValues

func (v InstanceState) ConstValues() []enum.IntStringerEnum

func (InstanceState) Int

func (v InstanceState) Int() int

func (InstanceState) Label

func (v InstanceState) Label() string

func (InstanceState) MarshalText

func (v InstanceState) MarshalText() ([]byte, error)

func (*InstanceState) Scan

func (v *InstanceState) Scan(src interface{}) error

func (InstanceState) String

func (v InstanceState) String() string

func (InstanceState) TypeName

func (v InstanceState) TypeName() string

func (*InstanceState) UnmarshalText

func (v *InstanceState) UnmarshalText(data []byte) error

func (InstanceState) Value

func (v InstanceState) Value() (driver.Value, error)

type MqttQOS

type MqttQOS int8
const (
	MQTT_QOS_UNKNOWN        MqttQOS = iota - 1
	MQTT_QOS__ONCE                  // 0
	MQTT_QOS__AT_LEAST_ONCE         // 1
	MQTT_QOS__ONLY_ONCE             // 2
)

func ParseMqttQOSFromLabel

func ParseMqttQOSFromLabel(s string) (MqttQOS, error)

func ParseMqttQOSFromString

func ParseMqttQOSFromString(s string) (MqttQOS, error)

func (MqttQOS) ConstValues

func (v MqttQOS) ConstValues() []enum.IntStringerEnum

func (MqttQOS) Int

func (v MqttQOS) Int() int

func (MqttQOS) Label

func (v MqttQOS) Label() string

func (MqttQOS) MarshalText

func (v MqttQOS) MarshalText() ([]byte, error)

func (*MqttQOS) Scan

func (v *MqttQOS) Scan(src interface{}) error

func (MqttQOS) String

func (v MqttQOS) String() string

func (MqttQOS) TypeName

func (v MqttQOS) TypeName() string

func (*MqttQOS) UnmarshalText

func (v *MqttQOS) UnmarshalText(data []byte) error

func (MqttQOS) Value

func (v MqttQOS) Value() (driver.Value, error)

type PasswordType

type PasswordType uint8
const (
	PASSWORD_TYPE_UNKNOWN PasswordType = iota
	PASSWORD_TYPE__LOGIN
	PASSWORD_TYPE__PERSONAL_TOKEN
)

func ParsePasswordTypeFromLabel

func ParsePasswordTypeFromLabel(s string) (PasswordType, error)

func ParsePasswordTypeFromString

func ParsePasswordTypeFromString(s string) (PasswordType, error)

func (PasswordType) ConstValues

func (v PasswordType) ConstValues() []enum.IntStringerEnum

func (PasswordType) Int

func (v PasswordType) Int() int

func (PasswordType) Label

func (v PasswordType) Label() string

func (PasswordType) MarshalText

func (v PasswordType) MarshalText() ([]byte, error)

func (*PasswordType) Scan

func (v *PasswordType) Scan(src interface{}) error

func (PasswordType) String

func (v PasswordType) String() string

func (PasswordType) TypeName

func (v PasswordType) TypeName() string

func (*PasswordType) UnmarshalText

func (v *PasswordType) UnmarshalText(data []byte) error

func (PasswordType) Value

func (v PasswordType) Value() (driver.Value, error)

type Protocol

type Protocol int8

Protocol

const (
	PROTOCOL_UNKNOWN   Protocol = iota
	PROTOCOL__TCP               // tcp
	PROTOCOL__UDP               // udp
	PROTOCOL__WEBSOCET          // websocket
	PROTOCOL__HTTP              // http
	PROTOCOL__HTTPS             // https
	PROTOCOL__MQTT              // mqtt
)

func ParseProtocolFromLabel

func ParseProtocolFromLabel(s string) (Protocol, error)

func ParseProtocolFromString

func ParseProtocolFromString(s string) (Protocol, error)

func (Protocol) ConstValues

func (v Protocol) ConstValues() []enum.IntStringerEnum

func (Protocol) Int

func (v Protocol) Int() int

func (Protocol) Label

func (v Protocol) Label() string

func (Protocol) MarshalText

func (v Protocol) MarshalText() ([]byte, error)

func (*Protocol) Scan

func (v *Protocol) Scan(src interface{}) error

func (Protocol) String

func (v Protocol) String() string

func (Protocol) TypeName

func (v Protocol) TypeName() string

func (*Protocol) UnmarshalText

func (v *Protocol) UnmarshalText(data []byte) error

func (Protocol) Value

func (v Protocol) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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