Documentation
¶
Index ¶
- Variables
- func RangesInvalidErr() error
- func RangesNotMeet(message string, reqs ...Request) string
- func RangesNotMeetError(message string, reqs ...Request) error
- func RangesNotSupportedFor(message string, requests ...Request) error
- func RangesOnlySupportedFor(message string, requests ...Request) error
- func RangesString(joiner string, requests ...Request) string
- func RangesStringDefaultJoiner(requests ...Request) string
- func RangesStrings(requests ...Request) []string
- type Request
- func (it *Request) AsBasicByteEnumContractsBinder() coreinterface.BasicByteEnumContractsBinder
- func (it *Request) AsBasicEnumContractsBinder() coreinterface.BasicEnumContractsBinder
- func (it *Request) AsJsonMarshaller() corejson.JsonMarshaller
- func (it Request) CurrentNotImpl(reference interface{}, messages ...string) error
- func (it Request) GetInBetweenStatus(start, end Request) *ResultStatus
- func (it Request) GetStatusAnyOf(reqs ...Request) *ResultStatus
- func (it Request) IsAnyApplyOnExist() bool
- func (it Request) IsAnyCreate() bool
- func (it Request) IsAnyDrop() bool
- func (it Request) IsAnyOf(checkingItems ...byte) bool
- func (it Request) IsAnyOfReqs(reqs ...Request) bool
- func (it Request) IsAnySkipOnExist() bool
- func (it Request) IsAppend() bool
- func (it Request) IsAppendByCompare() bool
- func (it Request) IsAppendByCompareWhereCommentFound() bool
- func (it Request) IsAppendLines() bool
- func (it Request) IsAppendLinesByCompare() bool
- func (it Request) IsChange() bool
- func (it Request) IsCreate() bool
- func (it Request) IsCreateOrAppend() bool
- func (it Request) IsCreateOrPrepend() bool
- func (it Request) IsCreateOrSkipOnExist() bool
- func (it Request) IsCreateOrUpdate() bool
- func (it Request) IsCrud() bool
- func (it Request) IsCrudOrSkip() bool
- func (it Request) IsCrudSkip() bool
- func (it Request) IsDelete() bool
- func (it Request) IsDeleteHttp() bool
- func (it Request) IsDeleteOrSkipOnNonExist() bool
- func (it Request) IsDrop() bool
- func (it Request) IsDropCreate() bool
- func (it Request) IsDropOnExist() bool
- func (it Request) IsDropOrSkipOnNonExist() bool
- func (it Request) IsDropSafe() bool
- func (it Request) IsExistCheck() bool
- func (it Request) IsGetHttp() bool
- func (it Request) IsHttp() bool
- func (it Request) IsInBetween(start, end Request) bool
- func (it Request) IsInheritOnly() bool
- func (it Request) IsInheritPlusOverride() bool
- func (it Request) IsMerge() bool
- func (it Request) IsMergeLines() bool
- func (it Request) IsNotAnyOfReqs(reqs ...Request) bool
- func (it Request) IsPatchHttp() bool
- func (it Request) IsPause() bool
- func (it Request) IsPostHttp() bool
- func (it Request) IsPrepend() bool
- func (it Request) IsPrependLines() bool
- func (it Request) IsPutHttp() bool
- func (it Request) IsRead() bool
- func (it Request) IsReload() bool
- func (it Request) IsRename() bool
- func (it Request) IsRestart() bool
- func (it Request) IsRestartOrReload() bool
- func (it Request) IsResumed() bool
- func (it Request) IsSkipOnExist() bool
- func (it Request) IsStart() bool
- func (it Request) IsStop() bool
- func (it Request) IsStopSleepStart() bool
- func (it Request) IsSuspend() bool
- func (it Request) IsTouch() bool
- func (it Request) IsTryRestart3Times() bool
- func (it Request) IsTryRestart5Times() bool
- func (it Request) IsTryStart3Times() bool
- func (it Request) IsTryStart5Times() bool
- func (it Request) IsTryStop3Times() bool
- func (it Request) IsTryStop5Times() bool
- func (it Request) IsUninitialized() bool
- func (it Request) IsUpdate() bool
- func (it Request) IsUpdateOnExist() bool
- func (it Request) IsUpdateOrSkipOnNonExist() bool
- func (it Request) IsValidRange() bool
- func (it Request) MarshalJSON() ([]byte, error)
- func (it Request) MaxByte() byte
- func (it Request) MinByte() byte
- func (it Request) Name() string
- func (it Request) NameValue() string
- func (it Request) NotSupportedErr(message string, reference interface{}) error
- func (it Request) RangeNamesCsv() string
- func (it Request) RangesByte() []byte
- func (it Request) String() string
- func (it Request) ToNumberString() string
- func (it Request) ToPtr() *Request
- func (it *Request) ToSimple() Request
- func (it Request) TypeName() string
- func (it *Request) UnmarshalJSON(data []byte) error
- func (it Request) UnmarshallEnumToValue(jsonUnmarshallingValue []byte) (byte, error)
- func (it Request) Value() byte
- func (it Request) ValueByte() byte
- func (it Request) ValueInt() int
- type ResultStatus
Constants ¶
This section is empty.
Variables ¶
var ( Ranges = [...]string{ Uninitialized: "Uninitialized", Create: "Create", Read: "Read", Update: "Update", Delete: "Delete", Drop: "Drop", CreateOrUpdate: "CreateOrUpdate", ExistCheck: "ExistCheck", SkipOnExist: "SkipOnExist", CreateOrSkipOnExist: "CreateOrSkipOnExist", UpdateOrSkipOnNonExist: "UpdateOrSkipOnNonExist", DeleteOrSkipOnNonExist: "DeleteOrSkipOnNonExist", DropOrSkipOnNonExist: "DropOrSkipOnNonExist", UpdateOnExist: "UpdateOnExist", DropOnExist: "DropOnExist", DropCreate: "DropCreate", Append: "Append", AppendByCompare: "AppendByCompare", AppendByCompareWhereCommentFound: "AppendByCompareWhereCommentFound", AppendLinesByCompare: "AppendLinesByCompare", AppendLines: "AppendLines", CreateOrAppend: "CreateOrAppend", Prepend: "Prepend", CreateOrPrepend: "CreateOrPrepend", PrependLines: "PrependLines", Rename: "Rename", Change: "Change", Merge: "Merge", MergeLines: "MergeLines", GetHttp: "GetHttp", PutHttp: "PutHttp", PostHttp: "PostHttp", DeleteHttp: "DeleteHttp", PatchHttp: "PatchHttp", Touch: "Touch", Start: "Start", Stop: "Stop", Restart: "Restart", Reload: "Reload", StopSleepStart: "StopSleepStart", Suspend: "Suspend", Pause: "Pause", Resumed: "Resumed", TryRestart3Times: "TryRestart3Times", TryRestart5Times: "TryRestart5Times", TryStart3Times: "TryStart3Times", TryStart5Times: "TryStart5Times", TryStop3Times: "TryStop3Times", TryStop5Times: "TryStop5Times", InheritOnly: "InheritOnly", InheritPlusOverride: "InheritPlusOverride", DynamicAction: "DynamicAction", } RangesMap = map[string]Request{ "Uninitialized": Uninitialized, "Create": Create, "Read": Read, "Update": Update, "Delete": Delete, "Drop": Drop, "CreateOrUpdate": CreateOrUpdate, "ExistCheck": ExistCheck, "SkipOnExist": SkipOnExist, "CreateOrSkipOnExist": CreateOrSkipOnExist, "UpdateOrSkipOnNonExist": UpdateOrSkipOnNonExist, "DeleteOrSkipOnNonExist": DeleteOrSkipOnNonExist, "DropOrSkipOnNonExist": DropOrSkipOnNonExist, "UpdateOnExist": UpdateOnExist, "DropOnExist": DropOnExist, "DropCreate": DropCreate, "Append": Append, "AppendByCompare": AppendByCompare, "AppendByCompareWhereCommentFound": AppendByCompareWhereCommentFound, "AppendLinesByCompare": AppendLinesByCompare, "AppendLines": AppendLines, "CreateOrAppend": CreateOrAppend, "Prepend": Prepend, "CreateOrPrepend": CreateOrPrepend, "PrependLines": PrependLines, "Rename": Rename, "Change": Change, "Merge": Merge, "MergeLines": MergeLines, "GetHttp": GetHttp, "PutHttp": PutHttp, "PostHttp": PostHttp, "DeleteHttp": DeleteHttp, "PatchHttp": PatchHttp, "Touch": Touch, "Start": Start, "Stop": Stop, "Restart": Restart, "Reload": Reload, "StopSleepStart": StopSleepStart, "Suspend": Suspend, "Pause": Pause, "Resumed": Resumed, "TryRestart3Times": TryRestart3Times, "TryRestart5Times": TryRestart5Times, "TryStart3Times": TryStart3Times, "TryStart5Times": TryStart5Times, "TryStop3Times": TryStop3Times, "TryStop5Times": TryStop5Times, "InheritOnly": InheritOnly, "InheritPlusOverride": InheritPlusOverride, "DynamicAction": DynamicAction, } BasicEnumImpl = enumimpl.NewBasicByteUsingIndexedSlice( reflectinternal.TypeName(Uninitialized), Ranges[:]) )
Functions ¶
func RangesInvalidErr ¶ added in v0.5.0
func RangesInvalidErr() error
func RangesNotMeet ¶
func RangesNotMeetError ¶
func RangesNotSupportedFor ¶ added in v0.5.6
func RangesOnlySupportedFor ¶ added in v0.7.5
func RangesString ¶ added in v0.5.6
func RangesStringDefaultJoiner ¶ added in v0.5.6
func RangesStrings ¶ added in v0.5.6
Types ¶
type Request ¶
type Request byte
const ( Uninitialized Request = iota Create Read Update Delete Drop CreateOrUpdate ExistCheck SkipOnExist CreateOrSkipOnExist UpdateOrSkipOnNonExist DeleteOrSkipOnNonExist DropOrSkipOnNonExist UpdateOnExist DropOnExist DropCreate Append AppendByCompare AppendByCompareWhereCommentFound AppendLinesByCompare AppendLines CreateOrAppend Prepend CreateOrPrepend PrependLines Rename Change Merge MergeLines GetHttp PutHttp PostHttp DeleteHttp PatchHttp Touch Start Stop Restart Reload StopSleepStart Suspend Pause Resumed TryRestart3Times TryRestart5Times TryStart3Times TryStart5Times TryStop3Times TryStop5Times InheritOnly InheritPlusOverride DynamicAction )
func RangesInBetween ¶
func (*Request) AsBasicByteEnumContractsBinder ¶
func (it *Request) AsBasicByteEnumContractsBinder() coreinterface.BasicByteEnumContractsBinder
func (*Request) AsBasicEnumContractsBinder ¶
func (it *Request) AsBasicEnumContractsBinder() coreinterface.BasicEnumContractsBinder
func (*Request) AsJsonMarshaller ¶
func (it *Request) AsJsonMarshaller() corejson.JsonMarshaller
func (Request) CurrentNotImpl ¶
func (Request) GetInBetweenStatus ¶
func (it Request) GetInBetweenStatus(start, end Request) *ResultStatus
GetInBetweenStatus edge case including the start, end
func (Request) GetStatusAnyOf ¶
func (it Request) GetStatusAnyOf(reqs ...Request) *ResultStatus
GetStatusAnyOf returns status success true if current one is any of the given values.
func (Request) IsAnyApplyOnExist ¶ added in v0.7.6
IsAnyApplyOnExist => IsUpdateOnExist, IsDropOnExist,
func (Request) IsAnyCreate ¶
IsAnyCreate
returns true if IsCreate, IsCreateOrUpdate, IsCreateOrAppend, IsCreateOrPrepend, IsCreateOrSkipOnExist, IsDropCreate
func (Request) IsAnyDrop ¶
IsAnyDrop
returns true if IsDrop, IsDelete, IsDeleteOrSkipOnNonExist, IsDropOnExist, IsDropCreate, IsDropOrSkipOnNonExist
func (Request) IsAnyOfReqs ¶
IsAnyOfReqs returns true if current one is matching with any of it
func (Request) IsAnySkipOnExist ¶ added in v0.7.6
IsAnySkipOnExist => IsSkipOnExist, IsCreateOrSkipOnExist, IsUpdateOrSkipOnNonExist, IsDeleteOrSkipOnNonExist, IsDeleteOrSkipOnNonExist, IsDropOrSkipOnNonExist
func (Request) IsAppendByCompare ¶
func (Request) IsAppendByCompareWhereCommentFound ¶
func (Request) IsAppendLines ¶
func (Request) IsAppendLinesByCompare ¶
func (Request) IsCreateOrAppend ¶
func (Request) IsCreateOrPrepend ¶
func (Request) IsCreateOrSkipOnExist ¶
func (Request) IsCreateOrUpdate ¶
func (Request) IsCrudSkip ¶
IsCrudSkip
returns true if IsCreateOrSkipOnExist, IsUpdateOrSkipOnNonExist, IsDeleteOrSkipOnNonExist, IsDropOnExist, IsDropOrSkipOnNonExist,
func (Request) IsDeleteHttp ¶
func (Request) IsDeleteOrSkipOnNonExist ¶
func (Request) IsDropCreate ¶
func (Request) IsDropOnExist ¶
func (Request) IsDropOrSkipOnNonExist ¶
func (Request) IsDropSafe ¶
IsDropSafe
returns true if IsDeleteOrSkipOnNonExist, IsDropOnExist, IsDropOrSkipOnNonExist
func (Request) IsExistCheck ¶
func (Request) IsHttp ¶
IsHttp
returns true if IsGetHttp, IsPostHttp, IsPutHttp, IsDeleteHttp, IsPatchHttp
func (Request) IsInBetween ¶
IsInBetween edge case including the start, end
func (Request) IsInheritOnly ¶
func (Request) IsInheritPlusOverride ¶
func (Request) IsMergeLines ¶
func (Request) IsNotAnyOfReqs ¶ added in v0.7.5
IsNotAnyOfReqs returns true only if none of these matches
func (Request) IsPatchHttp ¶
func (Request) IsPostHttp ¶
func (Request) IsPrependLines ¶
func (Request) IsRestartOrReload ¶ added in v0.5.6
IsRestartOrReload receiver. IsRestart() || receiver. IsReload()