Documentation ¶
Index ¶
- func AddRootCertificate(db *gorm.DB, cert *models.RootCertificate) error
- func AppendProviderUsers(db *gorm.DB, provider *models.Provider, user *models.Identity) error
- func BindGroupIdentities(db *gorm.DB, group *models.Group, identities ...models.Identity) error
- func BindIdentityGroups(db *gorm.DB, identity *models.Identity, groups ...models.Group) error
- func Count[T models.Modelable](db *gorm.DB, selectors ...SelectorFunc) (*int64, error)
- func CreateAccessKey(db *gorm.DB, accessKey *models.AccessKey) (body string, err error)
- func CreateCredential(db *gorm.DB, credential *models.Credential) error
- func CreateDestination(db *gorm.DB, destination *models.Destination) error
- func CreateEncryptionKey(db *gorm.DB, key *models.EncryptionKey) (*models.EncryptionKey, error)
- func CreateGrant(db *gorm.DB, grant *models.Grant) error
- func CreateGroup(db *gorm.DB, group *models.Group) error
- func CreateIdentity(db *gorm.DB, identity *models.Identity) error
- func CreateIdentityToken(db *gorm.DB, identityID uid.ID) (token *models.Token, err error)
- func CreateProvider(db *gorm.DB, provider *models.Provider) error
- func CreateProviderToken(db *gorm.DB, token *models.ProviderToken) error
- func DeleteAccessKey(db *gorm.DB, id uid.ID) error
- func DeleteAccessKeys(db *gorm.DB, selectors ...SelectorFunc) error
- func DeleteCredential(db *gorm.DB, id uid.ID) error
- func DeleteDestinations(db *gorm.DB, selector SelectorFunc) error
- func DeleteGrants(db *gorm.DB, selectors ...SelectorFunc) error
- func DeleteGroups(db *gorm.DB, selectors ...SelectorFunc) error
- func DeleteIdentities(db *gorm.DB, selectors ...SelectorFunc) error
- func DeleteIdentity(db *gorm.DB, id uid.ID) error
- func DeleteProviders(db *gorm.DB, selectors ...SelectorFunc) error
- func GetAccessKey(db *gorm.DB, selectors ...SelectorFunc) (*models.AccessKey, error)
- func GetCredential(db *gorm.DB, selectors ...SelectorFunc) (*models.Credential, error)
- func GetDestination(db *gorm.DB, selectors ...SelectorFunc) (*models.Destination, error)
- func GetEncryptionKey(db *gorm.DB, selector SelectorFunc) (result *models.EncryptionKey, err error)
- func GetGrant(db *gorm.DB, selectors ...SelectorFunc) (*models.Grant, error)
- func GetGroup(db *gorm.DB, selectors ...SelectorFunc) (*models.Group, error)
- func GetIdentity(db *gorm.DB, selectors ...SelectorFunc) (*models.Identity, error)
- func GetProvider(db *gorm.DB, selectors ...SelectorFunc) (*models.Provider, error)
- func GetProviderToken(db *gorm.DB, selector SelectorFunc) (*models.ProviderToken, error)
- func GetRootCertificate(db *gorm.DB, selectors ...SelectorFunc) (*models.RootCertificate, error)
- func GetSettings(db *gorm.DB) (*models.Settings, error)
- func InitializeSettings(db *gorm.DB, setupRequired bool) (*models.Settings, error)
- func ListAccessKeys(db *gorm.DB, selectors ...SelectorFunc) ([]models.AccessKey, error)
- func ListDestinations(db *gorm.DB, selectors ...SelectorFunc) ([]models.Destination, error)
- func ListGrants(db *gorm.DB, selectors ...SelectorFunc) ([]models.Grant, error)
- func ListGroupGrants(db *gorm.DB, groupID uid.ID) (result []models.Grant, err error)
- func ListGroups(db *gorm.DB, selectors ...SelectorFunc) ([]models.Group, error)
- func ListIdentities(db *gorm.DB, selectors ...SelectorFunc) ([]models.Identity, error)
- func ListIdentityGrants(db *gorm.DB, userID uid.ID) (result []models.Grant, err error)
- func ListIdentityGroups(db *gorm.DB, userID uid.ID) (result []models.Group, err error)
- func ListProviders(db *gorm.DB, selectors ...SelectorFunc) ([]models.Provider, error)
- func ListRootCertificates(db *gorm.DB) ([]models.RootCertificate, error)
- func ListTrustedClientCertificates(db *gorm.DB) ([]models.TrustedCertificate, error)
- func NewDB(connection gorm.Dialector) (*gorm.DB, error)
- func NewPostgresDriver(connection string) (gorm.Dialector, error)
- func NewSQLiteDriver(connection string) (gorm.Dialector, error)
- func SaveAccessKey(db *gorm.DB, key *models.AccessKey) error
- func SaveCredential(db *gorm.DB, credential *models.Credential) error
- func SaveDestination(db *gorm.DB, destination *models.Destination) error
- func SaveIdentity(db *gorm.DB, identity *models.Identity) error
- func SaveProvider(db *gorm.DB, provider *models.Provider) error
- func SaveSettings(db *gorm.DB, settings *models.Settings) error
- func TrustPublicKey(db *gorm.DB, tc *models.TrustedCertificate) error
- func UpdateProviderToken(db *gorm.DB, token *models.ProviderToken) error
- func ValidateAccessKey(db *gorm.DB, authnKey string) (*models.AccessKey, error)
- func ValidateCredential(db *gorm.DB, user *models.Identity, password string) (bool, error)
- type SelectorFunc
- func ByEncryptionKeyID(keyID int32) SelectorFunc
- func ByID(id uid.ID) SelectorFunc
- func ByIDs(ids []uid.ID) SelectorFunc
- func ByIdentityID(identityID uid.ID) SelectorFunc
- func ByIdentityKind(kind models.IdentityKind) SelectorFunc
- func ByIssuedFor(id uid.ID) SelectorFunc
- func ByKeyID(key string) SelectorFunc
- func ByName(name string) SelectorFunc
- func ByNotExpired() SelectorFunc
- func ByNotIDs(ids []uid.ID) SelectorFunc
- func ByPrivilege(s string) SelectorFunc
- func ByProviderID(id uid.ID) SelectorFunc
- func ByPublicKey(key []byte) SelectorFunc
- func ByResource(s string) SelectorFunc
- func BySubject(polymorphicID uid.PolymorphicID) SelectorFunc
- func ByURL(url string) SelectorFunc
- func ByUniqueID(nodeID string) SelectorFunc
- func ByUserID(userID uid.ID) SelectorFunc
- func CreatedBy(id uid.ID) SelectorFunc
- func Limit(limit int) SelectorFunc
- func NotCreatedBy(id uid.ID) SelectorFunc
- func OrderBy(order string) SelectorFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRootCertificate ¶ added in v0.5.9
func AddRootCertificate(db *gorm.DB, cert *models.RootCertificate) error
func AppendProviderUsers ¶
func BindGroupIdentities ¶ added in v0.9.0
func BindIdentityGroups ¶ added in v0.9.0
func CreateAccessKey ¶
func CreateCredential ¶ added in v0.6.0
func CreateCredential(db *gorm.DB, credential *models.Credential) error
func CreateDestination ¶
func CreateDestination(db *gorm.DB, destination *models.Destination) error
func CreateEncryptionKey ¶
func CreateEncryptionKey(db *gorm.DB, key *models.EncryptionKey) (*models.EncryptionKey, error)
func CreateIdentity ¶ added in v0.9.0
func CreateIdentityToken ¶ added in v0.9.0
func CreateProviderToken ¶
func CreateProviderToken(db *gorm.DB, token *models.ProviderToken) error
func DeleteAccessKeys ¶
func DeleteAccessKeys(db *gorm.DB, selectors ...SelectorFunc) error
func DeleteDestinations ¶
func DeleteDestinations(db *gorm.DB, selector SelectorFunc) error
func DeleteGrants ¶
func DeleteGrants(db *gorm.DB, selectors ...SelectorFunc) error
func DeleteGroups ¶
func DeleteGroups(db *gorm.DB, selectors ...SelectorFunc) error
func DeleteIdentities ¶ added in v0.9.0
func DeleteIdentities(db *gorm.DB, selectors ...SelectorFunc) error
func DeleteProviders ¶
func DeleteProviders(db *gorm.DB, selectors ...SelectorFunc) error
func GetAccessKey ¶ added in v0.5.12
func GetCredential ¶ added in v0.6.0
func GetCredential(db *gorm.DB, selectors ...SelectorFunc) (*models.Credential, error)
func GetDestination ¶
func GetDestination(db *gorm.DB, selectors ...SelectorFunc) (*models.Destination, error)
func GetEncryptionKey ¶
func GetEncryptionKey(db *gorm.DB, selector SelectorFunc) (result *models.EncryptionKey, err error)
func GetIdentity ¶ added in v0.9.0
func GetProvider ¶
func GetProviderToken ¶
func GetProviderToken(db *gorm.DB, selector SelectorFunc) (*models.ProviderToken, error)
func GetRootCertificate ¶ added in v0.5.9
func GetRootCertificate(db *gorm.DB, selectors ...SelectorFunc) (*models.RootCertificate, error)
func InitializeSettings ¶
func ListAccessKeys ¶
func ListDestinations ¶
func ListDestinations(db *gorm.DB, selectors ...SelectorFunc) ([]models.Destination, error)
func ListGrants ¶
func ListGroupGrants ¶
func ListGroups ¶
func ListIdentities ¶ added in v0.9.0
func ListIdentityGrants ¶ added in v0.9.0
func ListIdentityGroups ¶ added in v0.9.0
func ListProviders ¶
func ListRootCertificates ¶ added in v0.5.9
func ListRootCertificates(db *gorm.DB) ([]models.RootCertificate, error)
func ListTrustedClientCertificates ¶ added in v0.5.9
func ListTrustedClientCertificates(db *gorm.DB) ([]models.TrustedCertificate, error)
func SaveCredential ¶ added in v0.6.0
func SaveCredential(db *gorm.DB, credential *models.Credential) error
func SaveDestination ¶
func SaveDestination(db *gorm.DB, destination *models.Destination) error
func TrustPublicKey ¶ added in v0.5.9
func TrustPublicKey(db *gorm.DB, tc *models.TrustedCertificate) error
TrustPublicKey trusts a public key (in base64 format) from a user or service Callers must have received the key from a mTLS/e2ee (mutually encrypted), trusted source.
func UpdateProviderToken ¶
func UpdateProviderToken(db *gorm.DB, token *models.ProviderToken) error
func ValidateAccessKey ¶ added in v0.5.8
Types ¶
type SelectorFunc ¶
func ByEncryptionKeyID ¶
func ByEncryptionKeyID(keyID int32) SelectorFunc
func ByID ¶
func ByID(id uid.ID) SelectorFunc
func ByIDs ¶
func ByIDs(ids []uid.ID) SelectorFunc
func ByIdentityID ¶ added in v0.9.0
func ByIdentityID(identityID uid.ID) SelectorFunc
func ByIdentityKind ¶ added in v0.9.0
func ByIdentityKind(kind models.IdentityKind) SelectorFunc
func ByIssuedFor ¶ added in v0.9.0
func ByIssuedFor(id uid.ID) SelectorFunc
func ByKeyID ¶ added in v0.8.0
func ByKeyID(key string) SelectorFunc
func ByName ¶
func ByName(name string) SelectorFunc
func ByNotExpired ¶ added in v0.5.9
func ByNotExpired() SelectorFunc
func ByNotIDs ¶ added in v0.5.9
func ByNotIDs(ids []uid.ID) SelectorFunc
func ByPrivilege ¶
func ByPrivilege(s string) SelectorFunc
func ByProviderID ¶
func ByProviderID(id uid.ID) SelectorFunc
func ByPublicKey ¶ added in v0.5.9
func ByPublicKey(key []byte) SelectorFunc
func ByResource ¶
func ByResource(s string) SelectorFunc
func BySubject ¶ added in v0.8.0
func BySubject(polymorphicID uid.PolymorphicID) SelectorFunc
func ByURL ¶
func ByURL(url string) SelectorFunc
func ByUniqueID ¶
func ByUniqueID(nodeID string) SelectorFunc
func ByUserID ¶
func ByUserID(userID uid.ID) SelectorFunc
func CreatedBy ¶ added in v0.10.0
func CreatedBy(id uid.ID) SelectorFunc
func Limit ¶ added in v0.5.9
func Limit(limit int) SelectorFunc
func NotCreatedBy ¶ added in v0.5.9
func NotCreatedBy(id uid.ID) SelectorFunc
NotCreatedBy filters out entities not created by the passed in ID
func OrderBy ¶ added in v0.5.9
func OrderBy(order string) SelectorFunc
Click to show internal directories.
Click to hide internal directories.