Documentation
¶
Index ¶
Constants ¶
const ( // TlvExtractRequestDataTypeHex captures enum value "hex" TlvExtractRequestDataTypeHex string = "hex" // TlvExtractRequestDataTypeUTF8 captures enum value "utf8" TlvExtractRequestDataTypeUTF8 string = "utf8" // TlvExtractRequestDataTypeASCII captures enum value "ascii" TlvExtractRequestDataTypeASCII string = "ascii" // TlvExtractRequestDataTypeNumeric captures enum value "numeric" TlvExtractRequestDataTypeNumeric string = "numeric" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct {
// Response code, 0 for success, non-zero for errors
Code int32 `json:"code"`
// Response data, contains the actual response data or empty object for errors
Data interface{} `json:"data,omitempty"`
// Response message, "success" for successful operations, error message for failures
Message string `json:"message,omitempty"`
}
APIResponse Api response
swagger:model ApiResponse
func (*APIResponse) ContextValidate ¶
ContextValidate validates this Api response based on context it is used
func (*APIResponse) MarshalBinary ¶
func (m *APIResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIResponse) UnmarshalBinary ¶
func (m *APIResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ApduResContent ¶
type ApduResContent struct {
// Content of the .apdures file
Content string `json:"content,omitempty"`
// ID of the .apdures file
ID string `json:"id,omitempty"`
// Name of the .apdures file
Name string `json:"name,omitempty"`
}
ApduResContent apdu res content
swagger:model ApduResContent
func (*ApduResContent) ContextValidate ¶
ContextValidate validates this apdu res content based on context it is used
func (*ApduResContent) MarshalBinary ¶
func (m *ApduResContent) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ApduResContent) UnmarshalBinary ¶
func (m *ApduResContent) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ApduResFile ¶
type ApduResFile struct {
// ID of the .apdures file
ID string `json:"id,omitempty"`
// Modification time of the .apdures file
// Format: date-time
ModTime strfmt.DateTime `json:"mod_time,omitempty"`
// Name of the .apdures file
Name string `json:"name,omitempty"`
// Path to the .apdures file
Path string `json:"path,omitempty"`
// Size of the .apdures file in bytes
Size int64 `json:"size,omitempty"`
}
ApduResFile apdu res file
swagger:model ApduResFile
func (*ApduResFile) ContextValidate ¶
ContextValidate validates this apdu res file based on context it is used
func (*ApduResFile) MarshalBinary ¶
func (m *ApduResFile) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ApduResFile) UnmarshalBinary ¶
func (m *ApduResFile) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DecodeRequest ¶
type DecodeRequest struct {
// Whether to enable debug mode
Debug *bool `json:"debug,omitempty"`
// Content of the format template to use (alternative to format_id)
FormatContent string `json:"format_content,omitempty"`
// ID of the format template to use
FormatID string `json:"format_id,omitempty"`
// APDU response data to decode
// Required: true
ResponseData *string `json:"response_data"`
}
DecodeRequest decode request
swagger:model DecodeRequest
func (*DecodeRequest) ContextValidate ¶
ContextValidate validates this decode request based on context it is used
func (*DecodeRequest) MarshalBinary ¶
func (m *DecodeRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DecodeRequest) UnmarshalBinary ¶
func (m *DecodeRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DecodeResult ¶
type DecodeResult struct {
// Errors encountered during decoding (only in debug mode)
Errors []string `json:"errors"`
// Decoded output
Output string `json:"output,omitempty"`
// Status of the APDU response
Status string `json:"status,omitempty"`
}
DecodeResult decode result
swagger:model DecodeResult
func (*DecodeResult) ContextValidate ¶
ContextValidate validates this decode result based on context it is used
func (*DecodeResult) MarshalBinary ¶
func (m *DecodeResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DecodeResult) UnmarshalBinary ¶
func (m *DecodeResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Error ¶
type Error struct {
// Error code
Code int32 `json:"code,omitempty"`
// Error message
Message string `json:"message,omitempty"`
}
Error error
swagger:model Error
func (*Error) ContextValidate ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type FlipperDevice ¶
type FlipperDevice struct {
// ID of the Flipper Zero device
ID string `json:"id,omitempty"`
// Whether the device is connected via serial
IsSerial bool `json:"is_serial,omitempty"`
// Path to the Flipper Zero device
Path string `json:"path,omitempty"`
// Serial port for the Flipper Zero device
SerialPort string `json:"serial_port,omitempty"`
}
FlipperDevice flipper device
swagger:model FlipperDevice
func (*FlipperDevice) ContextValidate ¶
ContextValidate validates this flipper device based on context it is used
func (*FlipperDevice) MarshalBinary ¶
func (m *FlipperDevice) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FlipperDevice) UnmarshalBinary ¶
func (m *FlipperDevice) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FormatTemplate ¶
type FormatTemplate struct {
// Description of the format template
Description string `json:"description,omitempty"`
// ID of the format template
ID string `json:"id,omitempty"`
// Name of the format template
Name string `json:"name,omitempty"`
// Path to the format template file
Path string `json:"path,omitempty"`
}
FormatTemplate format template
swagger:model FormatTemplate
func (*FormatTemplate) ContextValidate ¶
ContextValidate validates this format template based on context it is used
func (*FormatTemplate) MarshalBinary ¶
func (m *FormatTemplate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FormatTemplate) UnmarshalBinary ¶
func (m *FormatTemplate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FormatTemplateContent ¶
type FormatTemplateContent struct {
// Content of the format template
Content string `json:"content,omitempty"`
// ID of the format template
ID string `json:"id,omitempty"`
// Name of the format template
Name string `json:"name,omitempty"`
}
FormatTemplateContent format template content
swagger:model FormatTemplateContent
func (*FormatTemplateContent) ContextValidate ¶
ContextValidate validates this format template content based on context it is used
func (*FormatTemplateContent) MarshalBinary ¶
func (m *FormatTemplateContent) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FormatTemplateContent) UnmarshalBinary ¶
func (m *FormatTemplateContent) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SystemInfo ¶
type SystemInfo struct {
// Architecture
Arch string `json:"arch,omitempty"`
// Build date of the NFC Analysis Platform
// Format: date-time
BuildDate strfmt.DateTime `json:"build_date,omitempty"`
// Go version used to build the NFC Analysis Platform
GoVersion string `json:"go_version,omitempty"`
// Operating system
Os string `json:"os,omitempty"`
// Version of the NFC Analysis Platform
Version string `json:"version,omitempty"`
}
SystemInfo system info
swagger:model SystemInfo
func (*SystemInfo) ContextValidate ¶
ContextValidate validates this system info based on context it is used
func (*SystemInfo) MarshalBinary ¶
func (m *SystemInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SystemInfo) UnmarshalBinary ¶
func (m *SystemInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TlvExtractRequest ¶
type TlvExtractRequest struct {
// Data type for display
// Enum: ["hex","utf8","ascii","numeric"]
DataType *string `json:"data_type,omitempty"`
// Hex TLV data to parse
// Required: true
HexData *string `json:"hex_data"`
// Tags to extract
Tags []string `json:"tags"`
}
TlvExtractRequest tlv extract request
swagger:model TlvExtractRequest
func (*TlvExtractRequest) ContextValidate ¶
ContextValidate validates this tlv extract request based on context it is used
func (*TlvExtractRequest) MarshalBinary ¶
func (m *TlvExtractRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TlvExtractRequest) UnmarshalBinary ¶
func (m *TlvExtractRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TlvExtractResult ¶
type TlvExtractResult struct {
// Extracted values (tag -> value)
Values map[string]string `json:"values,omitempty"`
}
TlvExtractResult tlv extract result
swagger:model TlvExtractResult
func (*TlvExtractResult) ContextValidate ¶
ContextValidate validates this tlv extract result based on context it is used
func (*TlvExtractResult) MarshalBinary ¶
func (m *TlvExtractResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TlvExtractResult) UnmarshalBinary ¶
func (m *TlvExtractResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TlvItem ¶
type TlvItem struct {
// Child TLV items (if constructed)
Children []*TlvItem `json:"children"`
// Whether the tag is constructed
IsConstructed bool `json:"is_constructed,omitempty"`
// Length
Length int64 `json:"length,omitempty"`
// Tag
Tag string `json:"tag,omitempty"`
// Value (hex encoded)
Value string `json:"value,omitempty"`
}
TlvItem tlv item
swagger:model TlvItem
func (*TlvItem) ContextValidate ¶
ContextValidate validate this tlv item based on the context it is used
func (*TlvItem) MarshalBinary ¶
MarshalBinary interface implementation
func (*TlvItem) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type TlvParseRequest ¶
type TlvParseRequest struct {
// Hex TLV data to parse
// Required: true
HexData *string `json:"hex_data"`
}
TlvParseRequest tlv parse request
swagger:model TlvParseRequest
func (*TlvParseRequest) ContextValidate ¶
ContextValidate validates this tlv parse request based on context it is used
func (*TlvParseRequest) MarshalBinary ¶
func (m *TlvParseRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TlvParseRequest) UnmarshalBinary ¶
func (m *TlvParseRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TlvParseResult ¶
type TlvParseResult struct {
// Parsed TLV structure
Structure []*TlvItem `json:"structure"`
}
TlvParseResult tlv parse result
swagger:model TlvParseResult
func (*TlvParseResult) ContextValidate ¶
ContextValidate validate this tlv parse result based on the context it is used
func (*TlvParseResult) MarshalBinary ¶
func (m *TlvParseResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TlvParseResult) UnmarshalBinary ¶
func (m *TlvParseResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation