sql

package
v0.0.0-...-702c227 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowedRole

type AllowedRole struct {
	Name       []string
	ProviderId string
}

type AllowedValue

type AllowedValue struct {
	ID               int
	AllowedString    string
	AllowedNumber    int
	AllowedBoolean   bool
	AllowedRolevalue string
	//ref to the claim
	ClaimRef Claim `ref:"claim" fk:"id" auto:"true"`
	Claim    int
}

type Capability

type Capability struct {
	ID              int
	ValidFrom       string
	ValidTo         string
	CredentialsType string
	Claims          []Claim `ref:"id" fk:"capability" auto:"true"`

	// ref to the issuer
	TrustedIssuerRef TrustedIssuer `ref:"trusted_issuer" fk:"id" auto:"true"`
	TrustedIssuer    string
}

type Claim

type Claim struct {
	ID            int
	Name          string
	AllowedValues []AllowedValue `ref:"id" fk:"claim" auto:"true"`

	//ref to the capability
	CapabilityRef Capability `ref:"capability" fk:"id" auto:"true"`
	Capability    int
}

type TrustedIssuer

type TrustedIssuer struct {
	ID           string
	Capabilities []Capability `ref:"id" fk:"trusted_issuer" auto:"true"`
}

Jump to

Keyboard shortcuts

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