enums

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 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 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 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
JackTT - Gopher 🇻🇳