providerrepo

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type KeyType added in v0.1.5

type KeyType string
const (
	KeyTypeRSA KeyType = "RSA"
	KeyTypeEC  KeyType = "ECDSA"
	KeyTypeEd  KeyType = "ED25519"
)

type Provider

type Provider struct {
	ID        string         `gorm:"column:id;primary_key"`
	ProjectID string         `gorm:"column:project_id;not null"`
	Type      Type           `gorm:"column:type;not null"`
	CreatedAt time.Time      `gorm:"column:created_at;autoCreateTime"`
	UpdatedAt time.Time      `gorm:"column:updated_at;autoUpdateTime"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at"`

	Openfort *ProviderOpenfort
	Custom   *ProviderCustom
}

func (Provider) TableName

func (Provider) TableName() string

type ProviderCustom

type ProviderCustom struct {
	ProviderID string  `gorm:"column:provider_id;primary_key"`
	JWKUrl     string  `gorm:"column:jwk_url"`
	PEM        string  `gorm:"column:pem_cert"`
	KeyType    KeyType `gorm:"column:key_type"`
}

func (ProviderCustom) TableName

func (ProviderCustom) TableName() string

type ProviderOpenfort

type ProviderOpenfort struct {
	ProviderID     string `gorm:"column:provider_id;primary_key"`
	PublishableKey string `gorm:"column:publishable_key"`
}

func (ProviderOpenfort) TableName

func (ProviderOpenfort) TableName() string

type Type

type Type string
const (
	TypeOpenfort Type = "OPENFORT"
	TypeCustom   Type = "CUSTOM"
)

Jump to

Keyboard shortcuts

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