resauthtype

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Ranges = [...]string{
		Invalid:         "Invalid",
		AllAccess:       "AllAccess",
		Error:           "Error",
		Warning:         "Warning",
		Restricted:      "Restricted",
		UnAuthorized:    "UnAuthorized",
		PermissionIssue: "PermissionIssue",
		Forbidden:       "Forbidden",
		ReadAccess:      "ReadAccess",
		WriteAccess:     "WriteAccess",
		CreateAccess:    "CreateAccess",
		EditAccess:      "EditAccess",
		AccessGranted:   "AccessGranted",
		AccessRejected:  "AccessRejected",
	}

	BasicEnumImpl = enumimpl.New.BasicByte.UsingTypeSlice(
		coredynamic.TypeName(Invalid),
		Ranges[:])
)

Functions

func RangesInvalidErr

func RangesInvalidErr() error

Types

type Variant

type Variant byte

Variant

authorization response type

Types:

  • Invalid
  • AllAccess
  • Error
  • Warning
  • Restricted
  • UnAuthorized
  • PermissionIssue
  • Forbidden
  • ReadAccess
  • WriteAccess
  • CreateAccess
  • EditAccess
const (
	Invalid Variant = iota
	AllAccess
	Error
	Warning
	Restricted
	UnAuthorized
	PermissionIssue
	Forbidden
	ReadAccess
	WriteAccess
	CreateAccess
	EditAccess
	AccessGranted
	AccessRejected
)

func Max

func Max() Variant

func Min

func Min() Variant

func New

func New(name string) (Variant, error)

func NewMust

func NewMust(name string) Variant

func (Variant) AllNameValues

func (it Variant) AllNameValues() []string

func (Variant) AsBasicByteEnumContractsBinder

func (it Variant) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder

func (Variant) AsBasicEnumContractsBinder

func (it Variant) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder

func (Variant) AsIsSuccessValidator

func (it Variant) AsIsSuccessValidator() coreinterface.IsSuccessValidator

func (*Variant) AsJsonContractsBinder

func (it *Variant) AsJsonContractsBinder() corejson.JsonContractsBinder

func (Variant) AsJsonMarshaller

func (it Variant) AsJsonMarshaller() corejson.JsonMarshaller

func (Variant) AsJsoner

func (it Variant) AsJsoner() corejson.Jsoner

func (Variant) AsYesNoAcceptRejecter

func (it Variant) AsYesNoAcceptRejecter() coreinterface.YesNoAcceptRejecter

func (Variant) EnumType

func (it Variant) EnumType() enuminf.EnumTyper

func (Variant) Format

func (it Variant) Format(format string) (compiled string)

func (Variant) IntegerEnumRanges

func (it Variant) IntegerEnumRanges() []int

func (Variant) IsAccept

func (it Variant) IsAccept() bool

func (Variant) IsAccess

func (it Variant) IsAccess() bool

func (Variant) IsAnyErrorLogically

func (it Variant) IsAnyErrorLogically() bool

func (Variant) IsAnyNamesOf

func (it Variant) IsAnyNamesOf(names ...string) bool

func (Variant) IsAnyOf

func (it Variant) IsAnyOf(anyOfItems ...Variant) bool

func (Variant) IsAnyValuesEqual

func (it Variant) IsAnyValuesEqual(anyByteValues ...byte) bool

func (Variant) IsAsk

func (it Variant) IsAsk() bool

func (Variant) IsByteValueEqual

func (it Variant) IsByteValueEqual(value byte) bool

func (Variant) IsCreateAccess

func (it Variant) IsCreateAccess() bool

func (Variant) IsCreateLogically

func (it Variant) IsCreateLogically() bool

func (Variant) IsEditAccess

func (it Variant) IsEditAccess() bool

func (Variant) IsEditLogically

func (it Variant) IsEditLogically() bool

func (Variant) IsError

func (it Variant) IsError() bool

func (Variant) IsFailed

func (it Variant) IsFailed() bool

func (Variant) IsForbidden

func (it Variant) IsForbidden() bool

func (Variant) IsIndeterminate

func (it Variant) IsIndeterminate() bool

func (Variant) IsInvalid

func (it Variant) IsInvalid() bool

func (Variant) IsNameEqual

func (it Variant) IsNameEqual(name string) bool

func (Variant) IsNameOf

func (it Variant) IsNameOf(anyNames ...string) bool

func (Variant) IsNo

func (it Variant) IsNo() bool

func (Variant) IsPermissionIssue

func (it Variant) IsPermissionIssue() bool

func (Variant) IsReadAccess

func (it Variant) IsReadAccess() bool

func (Variant) IsReadLogically

func (it Variant) IsReadLogically() bool

func (Variant) IsReadOrUpdateLogically

func (it Variant) IsReadOrUpdateLogically() bool

func (Variant) IsReject

func (it Variant) IsReject() bool

func (Variant) IsRestricted

func (it Variant) IsRestricted() bool

func (Variant) IsSkip

func (it Variant) IsSkip() bool

func (Variant) IsSuccess

func (it Variant) IsSuccess() bool

func (Variant) IsUnAuthorized

func (it Variant) IsUnAuthorized() bool

func (Variant) IsUnAuthorizedLogically

func (it Variant) IsUnAuthorizedLogically() bool

func (Variant) IsUninitialized

func (it Variant) IsUninitialized() bool

func (Variant) IsValid

func (it Variant) IsValid() bool

func (Variant) IsValueEqual

func (it Variant) IsValueEqual(value byte) bool

func (Variant) IsWarning

func (it Variant) IsWarning() bool

func (Variant) IsWriteAccess

func (it Variant) IsWriteAccess() bool

func (Variant) IsWriteLogically

func (it Variant) IsWriteLogically() bool

func (Variant) IsYes

func (it Variant) IsYes() bool

func (Variant) Json

func (it Variant) Json() corejson.Result

func (*Variant) JsonParseSelfInject

func (it *Variant) JsonParseSelfInject(jsonResult *corejson.Result) error

func (Variant) JsonPtr

func (it Variant) JsonPtr() *corejson.Result

func (Variant) MarshalJSON

func (it Variant) MarshalJSON() ([]byte, error)

func (Variant) MaxByte

func (it Variant) MaxByte() byte

func (Variant) MaxInt

func (it Variant) MaxInt() int

func (Variant) MaxMaxAny

func (it Variant) MaxMaxAny() (min, max interface{})

func (Variant) MaxValueString

func (it Variant) MaxValueString() string

func (Variant) MinByte

func (it Variant) MinByte() byte

func (Variant) MinInt

func (it Variant) MinInt() int

func (Variant) MinValueString

func (it Variant) MinValueString() string

func (Variant) Name

func (it Variant) Name() string

func (Variant) NameValue

func (it Variant) NameValue() string

func (Variant) OnlySupportedErr

func (it Variant) OnlySupportedErr(names ...string) error

func (Variant) OnlySupportedMsgErr

func (it Variant) OnlySupportedMsgErr(message string, names ...string) error

func (Variant) RangeNamesCsv

func (it Variant) RangeNamesCsv() string

func (Variant) RangesByte

func (it Variant) RangesByte() []byte

func (Variant) RangesDynamicMap

func (it Variant) RangesDynamicMap() map[string]interface{}

func (Variant) String

func (it Variant) String() string

func (Variant) ToNumberString

func (it Variant) ToNumberString() string

func (Variant) ToPtr

func (it Variant) ToPtr() *Variant

func (*Variant) ToSimple

func (it *Variant) ToSimple() Variant

func (Variant) TypeName

func (it Variant) TypeName() string

func (*Variant) UnmarshalJSON

func (it *Variant) UnmarshalJSON(data []byte) error

func (Variant) UnmarshallEnumToValue

func (it Variant) UnmarshallEnumToValue(
	jsonUnmarshallingValue []byte,
) (byte, error)

func (Variant) Value

func (it Variant) Value() byte

func (Variant) ValueByte

func (it Variant) ValueByte() byte

func (Variant) ValueInt

func (it Variant) ValueInt() int

func (Variant) ValueInt16

func (it Variant) ValueInt16() int16

func (Variant) ValueInt32

func (it Variant) ValueInt32() int32

func (Variant) ValueInt8

func (it Variant) ValueInt8() int8

func (Variant) ValueString

func (it Variant) ValueString() string

func (Variant) ValueUInt16

func (it Variant) ValueUInt16() uint16

Jump to

Keyboard shortcuts

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