Documentation ¶
Index ¶
- Variables
- func RangesInvalidErr() error
- 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) IntegerEnumRanges() []int
- func (it Variant) IsAaCompromise() bool
- func (it Variant) IsAffiliationChanged() bool
- func (it Variant) IsAnyNamesOf(names ...string) bool
- func (it Variant) IsAnyOf(logTypes ...Variant) bool
- func (it Variant) IsAnyValuesEqual(anyByteValues ...byte) bool
- func (it Variant) IsByteValueEqual(value byte) bool
- func (it Variant) IsCaCompromise() bool
- func (it Variant) IsCertificateHold() bool
- func (it Variant) IsCessationOfOperation() bool
- func (it Variant) IsInvalid() bool
- func (it Variant) IsKeyCompromise() bool
- func (it Variant) IsNameEqual(name string) bool
- func (it Variant) IsNameOf(anyNames ...string) bool
- func (it Variant) IsPrivilegeWithdrawn() bool
- func (it Variant) IsRemoveFromCRL() bool
- func (it Variant) IsSuperseded() bool
- func (it Variant) IsUnspecified() bool
- func (it Variant) IsUnspecifiedLogically() 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) MaxValueString() string
- func (it Variant) MinByte() byte
- func (it Variant) MinInt() int
- func (it Variant) MinMaxAny() (min, max interface{})
- 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) ToNumberString() string
- func (it Variant) ToPtr() *Variant
- func (it *Variant) ToSimple() 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 ¶
This section is empty.
Variables ¶
View Source
var ( Ranges = [...]string{ Unspecified: "Unspecified", KeyCompromise: "KeyCompromise", CaCompromise: "CaCompromise", AffiliationChanged: "AffiliationChanged", Superseded: "Superseded", CessationOfOperation: "CessationOfOperation", CertificateHold: "CertificateHold", RemoveFromCRL: "RemoveFromCRL", PrivilegeWithdrawn: "PrivilegeWithdrawn", AaCompromise: "AaCompromise", // contains filtered or unexported fields } RangesMap = map[string]Variant{ "": Unspecified, "Unspecified": Unspecified, "KeyCompromise": KeyCompromise, "CaCompromise": CaCompromise, "AffiliationChanged": AffiliationChanged, "Superseded": Superseded, "CessationOfOperation": CessationOfOperation, "CertificateHold": CertificateHold, "_Unused": _Unused, "RemoveFromCRL": RemoveFromCRL, "PrivilegeWithdrawn": PrivilegeWithdrawn, "AaCompromise": AaCompromise, } BasicEnumImpl = enumimpl.New.BasicByte.UsingTypeSlice( coredynamic.TypeName(Unspecified), Ranges[:]) )
Functions ¶
func RangesInvalidErr ¶
func RangesInvalidErr() error
Types ¶
type Variant ¶
type Variant byte
Variant
RevokeCertification reasoning
- Unspecified Variant = iota
- KeyCompromise Variant = 1
- CaCompromise Variant = 2
- AffiliationChanged Variant = 3
- Superseded Variant = 4
- CessationOfOperation Variant = 5
- CertificateHold Variant = 6
- _Unused Variant = 7
- RemoveFromCRL Variant = 8
- PrivilegeWithdrawn Variant = 9
- AaCompromise Variant = 10
References:
- Reason Code : https://tools.ietf.org/html/rfc5280#section-5.3.1
- Reasoning Numbers : https://prnt.sc/26gwwsm
- PKIX Certificate and CRL Profile : https://prnt.sc/26gwxgi
const ( Unspecified Variant = iota // 0 - needs to be as it is, cannot be changed KeyCompromise Variant = 1 // 1 CaCompromise Variant = 2 // 2 AffiliationChanged Variant = 3 // 3 Superseded Variant = 4 // 4 CessationOfOperation Variant = 5 // 5 CertificateHold Variant = 6 // 6 RemoveFromCRL Variant = 8 // 8 PrivilegeWithdrawn Variant = 9 // 9 AaCompromise Variant = 10 // 10 )
Don't modify, order matters Constants used for certificate revocation, used for RevokeCertificate See https://tools.ietf.org/html/rfc5280#section-5.3.1
func (Variant) AllNameValues ¶ added in v0.0.4
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) IntegerEnumRanges ¶ added in v0.0.4
func (Variant) IsAaCompromise ¶
func (Variant) IsAffiliationChanged ¶
func (Variant) IsAnyNamesOf ¶ added in v0.0.4
func (Variant) IsAnyValuesEqual ¶ added in v0.0.4
func (Variant) IsByteValueEqual ¶ added in v0.0.4
func (Variant) IsCaCompromise ¶
func (Variant) IsCertificateHold ¶
func (Variant) IsCessationOfOperation ¶
func (Variant) IsKeyCompromise ¶
func (Variant) IsNameEqual ¶ added in v0.0.4
func (Variant) IsPrivilegeWithdrawn ¶
func (Variant) IsRemoveFromCRL ¶
func (Variant) IsSuperseded ¶
func (Variant) IsUnspecified ¶
func (Variant) IsUnspecifiedLogically ¶ added in v0.0.2
func (Variant) IsValueEqual ¶ added in v0.0.4
func (*Variant) JsonParseSelfInject ¶
func (Variant) MarshalJSON ¶
func (Variant) MaxValueString ¶ added in v0.0.4
func (Variant) MinValueString ¶ added in v0.0.4
func (Variant) OnlySupportedErr ¶ added in v0.0.4
func (Variant) OnlySupportedMsgErr ¶ added in v0.0.4
func (Variant) RangeNamesCsv ¶
func (Variant) RangesByte ¶
func (Variant) RangesDynamicMap ¶ added in v0.0.4
func (Variant) ToNumberString ¶
func (*Variant) UnmarshalJSON ¶
func (Variant) UnmarshallEnumToValue ¶
func (Variant) ValueInt16 ¶ added in v0.0.4
func (Variant) ValueInt32 ¶ added in v0.0.4
func (Variant) ValueString ¶ added in v0.0.4
func (Variant) ValueUInt16 ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.