Documentation ¶
Index ¶
- func AddRootCertificate(db *gorm.DB, cert *models.RootCertificate) error
- func AppendProviderGroups(db *gorm.DB, provider *models.Provider, group *models.Group) error
- func AppendProviderUsers(db *gorm.DB, provider *models.Provider, user *models.User) error
- func BindGroupUsers(db *gorm.DB, group *models.Group, users ...models.User) error
- func BindUserGroups(db *gorm.DB, user *models.User, 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 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 CreateMachine(db *gorm.DB, machine *models.Machine) error
- func CreateMachineToken(db *gorm.DB, machineID 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 CreateUser(db *gorm.DB, user *models.User) error
- func CreateUserToken(db *gorm.DB, userID uid.ID) (token *models.Token, err error)
- func DeleteAccessKey(db *gorm.DB, id uid.ID) error
- func DeleteAccessKeys(db *gorm.DB, selectors ...SelectorFunc) 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 DeleteMachine(db *gorm.DB, selectors ...SelectorFunc) error
- func DeleteProviders(db *gorm.DB, selectors ...SelectorFunc) error
- func DeleteUsers(db *gorm.DB, selectors ...SelectorFunc) error
- func GetAccessKeys(db *gorm.DB, selectors ...SelectorFunc) (*models.AccessKey, 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 GetMachine(db *gorm.DB, selectors ...SelectorFunc) (*models.Machine, 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 GetUser(db *gorm.DB, selectors ...SelectorFunc) (*models.User, 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 ListMachineGrants(db *gorm.DB, machineID uid.ID) (result []models.Grant, err error)
- func ListMachines(db *gorm.DB, selectors ...SelectorFunc) ([]models.Machine, 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 ListUserGrants(db *gorm.DB, userID uid.ID) (result []models.Grant, err error)
- func ListUserGroups(db *gorm.DB, userID uid.ID) (result []models.Group, err error)
- func ListUsers(db *gorm.DB, selectors ...SelectorFunc) ([]models.User, 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 SaveDestination(db *gorm.DB, destination *models.Destination) error
- func SaveMachine(db *gorm.DB, machine *models.Machine) error
- func SaveProvider(db *gorm.DB, provider *models.Provider) error
- func SaveSettings(db *gorm.DB, settings *models.Settings) error
- func SaveUser(db *gorm.DB, user *models.User) 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)
- type SelectorFunc
- func ByEmail(email string) SelectorFunc
- func ByEncryptionKeyID(keyID int32) SelectorFunc
- func ByID(id uid.ID) SelectorFunc
- func ByIDs(ids []uid.ID) SelectorFunc
- func ByIdentity(polymorphicID uid.PolymorphicID) SelectorFunc
- func ByKey(key string) SelectorFunc
- func ByMachineIDIssuedFor(machineID uid.ID) 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 ByURL(url string) SelectorFunc
- func ByUniqueID(nodeID string) SelectorFunc
- func ByUserID(userID uid.ID) SelectorFunc
- func ByUserIDIssuedFor(userID 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 AppendProviderGroups ¶
func AppendProviderUsers ¶
func BindGroupUsers ¶
func BindUserGroups ¶
func CreateAccessKey ¶
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 CreateMachineToken ¶ added in v0.5.8
func CreateProviderToken ¶
func CreateProviderToken(db *gorm.DB, token *models.ProviderToken) error
func CreateUserToken ¶ added in v0.5.8
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 DeleteMachine ¶
func DeleteMachine(db *gorm.DB, selectors ...SelectorFunc) error
func DeleteProviders ¶
func DeleteProviders(db *gorm.DB, selectors ...SelectorFunc) error
func DeleteUsers ¶
func DeleteUsers(db *gorm.DB, selectors ...SelectorFunc) error
func GetAccessKeys ¶
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 GetMachine ¶
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 ListMachineGrants ¶ added in v0.5.8
func ListMachines ¶
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 ListUserGrants ¶
func ListUserGroups ¶
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
Types ¶
type SelectorFunc ¶
func ByEmail ¶
func ByEmail(email string) 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 ByIdentity ¶
func ByIdentity(polymorphicID uid.PolymorphicID) SelectorFunc
func ByKey ¶
func ByKey(key string) SelectorFunc
func ByMachineIDIssuedFor ¶ added in v0.5.8
func ByMachineIDIssuedFor(machineID uid.ID) 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 ByURL ¶
func ByURL(url string) SelectorFunc
func ByUniqueID ¶
func ByUniqueID(nodeID string) SelectorFunc
func ByUserID ¶
func ByUserID(userID uid.ID) SelectorFunc
func ByUserIDIssuedFor ¶ added in v0.5.9
func ByUserIDIssuedFor(userID 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.