Documentation ¶
Index ¶
- Constants
- Variables
- type Variant
- func (it Variant) AllNameValues() []string
- func (it Variant) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
- func (it Variant) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
- func (it Variant) AsJsonContractsBinder() corejson.JsonContractsBinder
- func (it Variant) AsJsonMarshaller() corejson.JsonMarshaller
- func (it Variant) AsJsoner() corejson.Jsoner
- func (it Variant) EnumType() enuminf.EnumTyper
- func (it Variant) Format(format string) (compiled string)
- func (it Variant) FullName() string
- func (it Variant) HyphenName() string
- func (it Variant) IntegerEnumRanges() []int
- func (it Variant) Is(enum Variant) bool
- func (it Variant) IsAnyNamesOf(names ...string) bool
- func (it Variant) IsAnyOf(enums ...Variant) bool
- func (it Variant) IsAnyValuesEqual(anyByteValues ...byte) bool
- func (it Variant) IsByteValueEqual(value byte) bool
- func (it Variant) IsInvalid() bool
- func (it Variant) IsNameEqual(name string) bool
- func (it Variant) IsValid() bool
- func (it Variant) IsValueEqual(value byte) bool
- func (it Variant) Json() corejson.Result
- func (it *Variant) JsonParseSelfInject(jsonResult *corejson.Result) error
- func (it Variant) JsonPtr() *corejson.Result
- func (it Variant) MarshalJSON() ([]byte, error)
- func (it Variant) MaxByte() byte
- func (it Variant) MaxInt() int
- func (it Variant) MaxMaxAny() (min, max interface{})
- func (it Variant) MaxValueString() string
- func (it Variant) MinByte() byte
- func (it Variant) MinInt() int
- func (it Variant) MinValueString() string
- func (it Variant) Name() string
- func (it Variant) NameValue() string
- func (it Variant) OnlySupportedErr(names ...string) error
- func (it Variant) OnlySupportedMsgErr(message string, names ...string) error
- func (it Variant) RangeNamesCsv() string
- func (it Variant) RangesByte() []byte
- func (it Variant) RangesDynamicMap() map[string]interface{}
- func (it Variant) String() string
- func (it Variant) ToNameLower() string
- func (it Variant) ToNumberString() string
- func (it Variant) ToPtr() *Variant
- func (it Variant) TypeName() string
- func (it *Variant) UnmarshalJSON(data []byte) error
- func (it Variant) UnmarshallEnumToValue(jsonUnmarshallingValue []byte) (byte, error)
- func (it Variant) Value() byte
- func (it Variant) ValueByte() byte
- func (it Variant) ValueInt() int
- func (it Variant) ValueInt16() int16
- func (it Variant) ValueInt32() int32
- func (it Variant) ValueInt8() int8
- func (it Variant) ValueString() string
- func (it Variant) ValueUInt16() uint16
Constants ¶
View Source
const (
CommandName = "firewall"
)
Variables ¶
View Source
var ( Ranges = [...]string{ Invalid: "Invalid", Help: "Help", Install: "Install", Enable: "Enable", Disable: "Disable", EnablePort: "EnablePort", DisablePort: "DisablePort", EnableProtocol: "EnableProtocol", DisableProtocol: "DisableProtocol", EnablePortProtocol: "EnablePortProtocol", DisablePortProtocol: "DisablePortProtocol", ListVerbose: "ListVerbose", PortList: "PortList", ProtocolsList: "ProtocolsList", NothingEnabled: "NothingEnabled", AllEnabled: "AllEnabled", SshEnable: "SshEnable", SshDisable: "SshDisable", RejectPorts: "RejectPorts", DenyPorts: "DenyPorts", RejectPortsWithProtocol: "RejectPortsWithProtocol", DenyPortsWithProtocol: "DenyPortsWithProtocol", AllowPorts: "AllowPorts", AcceptPorts: "AcceptPorts", AllowPortsWithProtocol: "AllowPortsWithProtocol", AcceptPortsWithProtocol: "AcceptPortsWithProtocol", WhitelistIps: "WhitelistIps", BlacklistIps: "BlacklistIps", ListBackListedIps: "ListBackListedIps", ListWhiteListedIps: "ListWhiteListedIps", IsPortsEnabled: "IsPortsEnabled", IsPortsDisabled: "IsPortsDisabled", IsIpsWhitelisted: "IsIpsWhitelisted", IsIpsBlacklisted: "IsIpsBlacklisted", ListJson: "ListJson", List: "List", Search: "Search", Histories: "Histories", StateChange: "StateChange", MacroHistories: "MacroHistories", RemoveMacro: "RemoveMacro", ExportMacro: "ExportMacro", ImportMacro: "ImportMacro", Backup: "Backup", Import: "Import", } BasicEnumImpl = enumimpl.New.BasicByte.UsingTypeSlice( coredynamic.TypeName(Invalid), Ranges[:]) )
Functions ¶
This section is empty.
Types ¶
type Variant ¶
type Variant byte
const ( Invalid Variant = iota Help Install Enable Disable EnablePort DisablePort EnableProtocol DisableProtocol EnablePortProtocol DisablePortProtocol ListVerbose PortList ProtocolsList NothingEnabled AllEnabled SshEnable SshDisable RejectPorts DenyPorts RejectPortsWithProtocol DenyPortsWithProtocol AllowPorts AcceptPorts AllowPortsWithProtocol AcceptPortsWithProtocol WhitelistIps BlacklistIps ListBackListedIps ListWhiteListedIps IsPortsEnabled IsPortsDisabled IsIpsWhitelisted IsIpsBlacklisted ListJson List Search Histories StateChange MacroHistories RemoveMacro ExportMacro ImportMacro Backup Import )
func (Variant) AllNameValues ¶
func (Variant) AsBasicByteEnumContractsBinder ¶
func (it Variant) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
func (Variant) AsBasicEnumContractsBinder ¶
func (it Variant) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
func (Variant) AsJsonContractsBinder ¶
func (it Variant) AsJsonContractsBinder() corejson.JsonContractsBinder
func (Variant) AsJsonMarshaller ¶
func (it Variant) AsJsonMarshaller() corejson.JsonMarshaller
func (Variant) HyphenName ¶
func (Variant) IntegerEnumRanges ¶
func (Variant) IsAnyNamesOf ¶
func (Variant) IsAnyValuesEqual ¶
func (Variant) IsByteValueEqual ¶
func (Variant) IsNameEqual ¶
func (Variant) IsValueEqual ¶
func (*Variant) JsonParseSelfInject ¶
func (Variant) MarshalJSON ¶
func (Variant) MaxValueString ¶
func (Variant) MinValueString ¶
func (Variant) OnlySupportedErr ¶
func (Variant) OnlySupportedMsgErr ¶
func (Variant) RangeNamesCsv ¶
func (Variant) RangesByte ¶
func (Variant) RangesDynamicMap ¶
func (Variant) ToNameLower ¶
func (Variant) ToNumberString ¶
func (*Variant) UnmarshalJSON ¶
func (Variant) UnmarshallEnumToValue ¶
func (Variant) ValueInt16 ¶
func (Variant) ValueInt32 ¶
func (Variant) ValueString ¶
func (Variant) ValueUInt16 ¶
Click to show internal directories.
Click to hide internal directories.