models

package
v0.0.0-...-d123447 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertUsage

type CertUsage string
const (
	QWAC    CertUsage = "QWAC"
	QSEAL   CertUsage = "QSEAL"
	UNKNOWN CertUsage = "UNKNOWN"
)

type CertificateResponse

type CertificateResponse struct {
	Expired      bool           `json:"expired"`
	Scopes       []Scope        `json:"scopes"`
	SerialNumber string         `json:"serial_number"`
	Issuer       map[string]any `json:"issuer"`
	Subject      map[string]any `json:"subject"`
	NotBefore    string         `json:"not_before"`
	NotAfter     string         `json:"not_after"`
	Usage        CertUsage      `json:"usage"`
}

type ObRole

type ObRole string
const (
	PSP_PI ObRole = "PSP_PI"
	PSP_AI ObRole = "PSP_AI"
)

type Position

type Position string
const (
	PositionRoot         Position = "Root"
	PositionIntermediate Position = "Intermediate"
	PositionLeaf         Position = "Leaf"
)

type Register

type Register string
const (
	EBA Register = "EBA"
)

type Scope

type Scope string
const (
	ScopeAIS     Scope = "AIS"
	ScopePIS     Scope = "PIS"
	ScopeUnknown Scope = "UNKNOWN"
)

type Service

type Service string
const (
	AISP Service = "AIS"
	PISP Service = "PIS"
)

type TPP

type TPP struct {
	NameLatin    string               `bson:"name_latin"`
	NameNative   string               `bson:"name_native"`
	Id           string               `bson:"id"`
	OBID         string               `bson:"ob_id"`
	Authority    string               `bson:"authority"`
	Country      string               `bson:"country"`
	Services     map[string][]Service `bson:"services"`
	AuthorizedAt *time.Time           `bson:"authorized_at"`
	WithdrawnAt  *time.Time           `bson:"withdrawn_at"`
	Type         string               `bson:"type"`
	CreatedAt    time.Time            `bson:"created_at"`
	UpdatedAt    time.Time            `bson:"updated_at"`
	Registry     string               `bson:"registry"`
}

type TppResponse

type TppResponse struct {
	Id         string               `json:"id"`
	NameLatin  string               `json:"name_latin"`
	NameNative string               `json:"name_native"`
	Authority  string               `json:"authority"`
	Services   map[string][]Service `json:"services"`
	Country    string               `json:"country,omitempty"`
}

Jump to

Keyboard shortcuts

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