Documentation ¶
Index ¶
- Variables
- func AddEffectivePermissionHook(hookPoint boil.HookPoint, effectivePermissionHook EffectivePermissionHook)
- func AddGooseDBVersionHook(hookPoint boil.HookPoint, gooseDBVersionHook GooseDBVersionHook)
- func AddPermissionHook(hookPoint boil.HookPoint, permissionHook PermissionHook)
- func AddRoleAssignmentHook(hookPoint boil.HookPoint, roleAssignmentHook RoleAssignmentHook)
- func AddRoleHook(hookPoint boil.HookPoint, roleHook RoleHook)
- func AddTrackedDirectoryHook(hookPoint boil.HookPoint, trackedDirectoryHook TrackedDirectoryHook)
- func AddTrackedSubjectHook(hookPoint boil.HookPoint, trackedSubjectHook TrackedSubjectHook)
- func EffectivePermissionExists(ctx context.Context, exec boil.ContextExecutor, subjectID string, ...) (bool, error)
- func EffectivePermissions(mods ...qm.QueryMod) effectivePermissionQuery
- func GooseDBVersionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func GooseDBVersions(mods ...qm.QueryMod) gooseDBVersionQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func PermissionExists(ctx context.Context, exec boil.ContextExecutor, target string) (bool, error)
- func Permissions(mods ...qm.QueryMod) permissionQuery
- func RoleAssignmentExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func RoleAssignments(mods ...qm.QueryMod) roleAssignmentQuery
- func RoleExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Roles(mods ...qm.QueryMod) roleQuery
- func TrackedDirectories(mods ...qm.QueryMod) trackedDirectoryQuery
- func TrackedDirectoryExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func TrackedSubjectExists(ctx context.Context, exec boil.ContextExecutor, subjectID string) (bool, error)
- func TrackedSubjects(mods ...qm.QueryMod) trackedSubjectQuery
- type EffectivePermission
- func (o *EffectivePermission) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *EffectivePermission) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *EffectivePermission) FromRoleRole(mods ...qm.QueryMod) roleQuery
- func (o *EffectivePermission) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *EffectivePermission) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *EffectivePermission) ScopeTrackedDirectory(mods ...qm.QueryMod) trackedDirectoryQuery
- func (o *EffectivePermission) SetFromRoleRole(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Role) error
- func (o *EffectivePermission) SetScopeTrackedDirectory(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *EffectivePermission) SetSubject(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *EffectivePermission) SetTargetPermission(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *EffectivePermission) Subject(mods ...qm.QueryMod) trackedSubjectQuery
- func (o *EffectivePermission) TargetPermission(mods ...qm.QueryMod) permissionQuery
- func (o *EffectivePermission) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *EffectivePermission) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type EffectivePermissionHook
- type EffectivePermissionSlice
- func (o EffectivePermissionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *EffectivePermissionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o EffectivePermissionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type GooseDBVersion
- func (o *GooseDBVersion) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *GooseDBVersion) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *GooseDBVersion) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *GooseDBVersion) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *GooseDBVersion) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *GooseDBVersion) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type GooseDBVersionHook
- type GooseDBVersionSlice
- func (o GooseDBVersionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *GooseDBVersionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o GooseDBVersionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type M
- type Permission
- func (o *Permission) AddRoles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Role) error
- func (o *Permission) AddTargetEffectivePermissions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Permission) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Permission) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Permission) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Permission) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Permission) RemoveRoles(ctx context.Context, exec boil.ContextExecutor, related ...*Role) error
- func (o *Permission) Roles(mods ...qm.QueryMod) roleQuery
- func (o *Permission) SetRoles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Role) error
- func (o *Permission) TargetEffectivePermissions(mods ...qm.QueryMod) effectivePermissionQuery
- func (o *Permission) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Permission) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type PermissionHook
- type PermissionSlice
- type Role
- func (o *Role) AddFromRoleEffectivePermissions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Role) AddRoleAssignments(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Role) AddTargetPermissions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Role) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Role) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Role) FromRoleEffectivePermissions(mods ...qm.QueryMod) effectivePermissionQuery
- func (o *Role) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Role) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Role) RemoveTargetPermissions(ctx context.Context, exec boil.ContextExecutor, related ...*Permission) error
- func (o *Role) RoleAssignments(mods ...qm.QueryMod) roleAssignmentQuery
- func (o *Role) SetTargetPermissions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Role) TargetPermissions(mods ...qm.QueryMod) permissionQuery
- func (o *Role) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Role) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type RoleAssignment
- func (o *RoleAssignment) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RoleAssignment) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *RoleAssignment) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *RoleAssignment) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RoleAssignment) Role(mods ...qm.QueryMod) roleQuery
- func (o *RoleAssignment) ScopeTrackedDirectory(mods ...qm.QueryMod) trackedDirectoryQuery
- func (o *RoleAssignment) SetRole(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Role) error
- func (o *RoleAssignment) SetScopeTrackedDirectory(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleAssignment) SetSubject(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RoleAssignment) Subject(mods ...qm.QueryMod) trackedSubjectQuery
- func (o *RoleAssignment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *RoleAssignment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type RoleAssignmentHook
- type RoleAssignmentSlice
- func (o RoleAssignmentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RoleAssignmentSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o RoleAssignmentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type RoleHook
- type RoleSlice
- type TrackedDirectory
- func (o *TrackedDirectory) AddScopeEffectivePermissions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *TrackedDirectory) AddScopeRoleAssignments(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *TrackedDirectory) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *TrackedDirectory) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *TrackedDirectory) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TrackedDirectory) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TrackedDirectory) ScopeEffectivePermissions(mods ...qm.QueryMod) effectivePermissionQuery
- func (o *TrackedDirectory) ScopeRoleAssignments(mods ...qm.QueryMod) roleAssignmentQuery
- func (o *TrackedDirectory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TrackedDirectory) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type TrackedDirectoryHook
- type TrackedDirectorySlice
- func (o TrackedDirectorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *TrackedDirectorySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o TrackedDirectorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type TrackedSubject
- func (o *TrackedSubject) AddSubjectEffectivePermissions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *TrackedSubject) AddSubjectRoleAssignments(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *TrackedSubject) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TrackedSubject) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *TrackedSubject) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TrackedSubject) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TrackedSubject) SubjectEffectivePermissions(mods ...qm.QueryMod) effectivePermissionQuery
- func (o *TrackedSubject) SubjectRoleAssignments(mods ...qm.QueryMod) roleAssignmentQuery
- func (o *TrackedSubject) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TrackedSubject) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type TrackedSubjectHook
- type TrackedSubjectSlice
- func (o TrackedSubjectSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TrackedSubjectSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o TrackedSubjectSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
var EffectivePermissionColumns = struct { SubjectID string Target string Scope string FromRole string }{ SubjectID: "subject_id", Target: "target", Scope: "scope", FromRole: "from_role", }
var EffectivePermissionRels = struct { TargetPermission string Subject string ScopeTrackedDirectory string FromRoleRole string }{ TargetPermission: "TargetPermission", Subject: "Subject", ScopeTrackedDirectory: "ScopeTrackedDirectory", FromRoleRole: "FromRoleRole", }
EffectivePermissionRels is where relationship names are stored.
var EffectivePermissionTableColumns = struct { SubjectID string Target string Scope string FromRole string }{ SubjectID: "effective_permissions.subject_id", Target: "effective_permissions.target", Scope: "effective_permissions.scope", FromRole: "effective_permissions.from_role", }
var EffectivePermissionWhere = struct { SubjectID whereHelperstring Target whereHelperstring Scope whereHelperstring FromRole whereHelperstring }{ SubjectID: whereHelperstring{/* contains filtered or unexported fields */}, Target: whereHelperstring{/* contains filtered or unexported fields */}, Scope: whereHelperstring{/* contains filtered or unexported fields */}, FromRole: whereHelperstring{/* contains filtered or unexported fields */}, }
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var GooseDBVersionColumns = struct { ID string VersionID string IsApplied string Tstamp string }{ ID: "id", VersionID: "version_id", IsApplied: "is_applied", Tstamp: "tstamp", }
var GooseDBVersionRels = struct {
}{}
GooseDBVersionRels is where relationship names are stored.
var GooseDBVersionTableColumns = struct { ID string VersionID string IsApplied string Tstamp string }{ ID: "goose_db_version.id", VersionID: "goose_db_version.version_id", IsApplied: "goose_db_version.is_applied", Tstamp: "goose_db_version.tstamp", }
var GooseDBVersionWhere = struct { ID whereHelperint64 VersionID whereHelperint64 IsApplied whereHelperbool Tstamp whereHelpernull_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, VersionID: whereHelperint64{/* contains filtered or unexported fields */}, IsApplied: whereHelperbool{/* contains filtered or unexported fields */}, Tstamp: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var PermissionColumns = struct { Target string Description string CreatedAt string UpdatedAt string }{ Target: "target", Description: "description", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var PermissionRels = struct { TargetEffectivePermissions string Roles string }{ TargetEffectivePermissions: "TargetEffectivePermissions", Roles: "Roles", }
PermissionRels is where relationship names are stored.
var PermissionTableColumns = struct { Target string Description string CreatedAt string UpdatedAt string }{ Target: "permissions.target", Description: "permissions.description", CreatedAt: "permissions.created_at", UpdatedAt: "permissions.updated_at", }
var PermissionWhere = struct { Target whereHelperstring Description whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ Target: whereHelperstring{/* contains filtered or unexported fields */}, Description: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var RoleAssignmentColumns = struct { ID string RoleID string SubjectID string Scope string CreatedAt string UpdatedAt string }{ ID: "id", RoleID: "role_id", SubjectID: "subject_id", Scope: "scope", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var RoleAssignmentRels = struct { Subject string ScopeTrackedDirectory string Role string }{ Subject: "Subject", ScopeTrackedDirectory: "ScopeTrackedDirectory", Role: "Role", }
RoleAssignmentRels is where relationship names are stored.
var RoleAssignmentTableColumns = struct { ID string RoleID string SubjectID string Scope string CreatedAt string UpdatedAt string }{ ID: "role_assignments.id", RoleID: "role_assignments.role_id", SubjectID: "role_assignments.subject_id", Scope: "role_assignments.scope", CreatedAt: "role_assignments.created_at", UpdatedAt: "role_assignments.updated_at", }
var RoleAssignmentWhere = struct { ID whereHelperstring RoleID whereHelperstring SubjectID whereHelperstring Scope whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, RoleID: whereHelperstring{/* contains filtered or unexported fields */}, SubjectID: whereHelperstring{/* contains filtered or unexported fields */}, Scope: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var RoleColumns = struct { ID string Name string Description string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", Description: "description", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var RoleRels = struct { FromRoleEffectivePermissions string RoleAssignments string TargetPermissions string }{ FromRoleEffectivePermissions: "FromRoleEffectivePermissions", RoleAssignments: "RoleAssignments", TargetPermissions: "TargetPermissions", }
RoleRels is where relationship names are stored.
var RoleTableColumns = struct { ID string Name string Description string CreatedAt string UpdatedAt string }{ ID: "roles.id", Name: "roles.name", Description: "roles.description", CreatedAt: "roles.created_at", UpdatedAt: "roles.updated_at", }
var RoleWhere = struct { ID whereHelperstring Name whereHelperstring Description whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Description: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { EffectivePermissions string GooseDBVersion string Permissions string RoleAssignments string RolePermissions string Roles string TrackedDirectories string TrackedSubjects string }{ EffectivePermissions: "effective_permissions", GooseDBVersion: "goose_db_version", Permissions: "permissions", RoleAssignments: "role_assignments", RolePermissions: "role_permissions", Roles: "roles", TrackedDirectories: "tracked_directories", TrackedSubjects: "tracked_subjects", }
var TrackedDirectoryColumns = struct { ID string DeletedAt string }{ ID: "id", DeletedAt: "deleted_at", }
var TrackedDirectoryRels = struct { ScopeEffectivePermissions string ScopeRoleAssignments string }{ ScopeEffectivePermissions: "ScopeEffectivePermissions", ScopeRoleAssignments: "ScopeRoleAssignments", }
TrackedDirectoryRels is where relationship names are stored.
var TrackedDirectoryTableColumns = struct { ID string DeletedAt string }{ ID: "tracked_directories.id", DeletedAt: "tracked_directories.deleted_at", }
var TrackedDirectoryWhere = struct { ID whereHelperstring DeletedAt whereHelpernull_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var TrackedSubjectColumns = struct { SubjectID string }{ SubjectID: "subject_id", }
var TrackedSubjectRels = struct { SubjectEffectivePermissions string SubjectRoleAssignments string }{ SubjectEffectivePermissions: "SubjectEffectivePermissions", SubjectRoleAssignments: "SubjectRoleAssignments", }
TrackedSubjectRels is where relationship names are stored.
var TrackedSubjectTableColumns = struct { SubjectID string }{ SubjectID: "tracked_subjects.subject_id", }
var TrackedSubjectWhere = struct { SubjectID whereHelperstring }{ SubjectID: whereHelperstring{/* contains filtered or unexported fields */}, }
var ViewNames = struct {
}{}
Functions ¶
func AddEffectivePermissionHook ¶
func AddEffectivePermissionHook(hookPoint boil.HookPoint, effectivePermissionHook EffectivePermissionHook)
AddEffectivePermissionHook registers your hook function for all future operations.
func AddGooseDBVersionHook ¶
func AddGooseDBVersionHook(hookPoint boil.HookPoint, gooseDBVersionHook GooseDBVersionHook)
AddGooseDBVersionHook registers your hook function for all future operations.
func AddPermissionHook ¶
func AddPermissionHook(hookPoint boil.HookPoint, permissionHook PermissionHook)
AddPermissionHook registers your hook function for all future operations.
func AddRoleAssignmentHook ¶
func AddRoleAssignmentHook(hookPoint boil.HookPoint, roleAssignmentHook RoleAssignmentHook)
AddRoleAssignmentHook registers your hook function for all future operations.
func AddRoleHook ¶
AddRoleHook registers your hook function for all future operations.
func AddTrackedDirectoryHook ¶
func AddTrackedDirectoryHook(hookPoint boil.HookPoint, trackedDirectoryHook TrackedDirectoryHook)
AddTrackedDirectoryHook registers your hook function for all future operations.
func AddTrackedSubjectHook ¶
func AddTrackedSubjectHook(hookPoint boil.HookPoint, trackedSubjectHook TrackedSubjectHook)
AddTrackedSubjectHook registers your hook function for all future operations.
func EffectivePermissionExists ¶
func EffectivePermissionExists(ctx context.Context, exec boil.ContextExecutor, subjectID string, target string, scope string) (bool, error)
EffectivePermissionExists checks if the EffectivePermission row exists.
func EffectivePermissions ¶
EffectivePermissions retrieves all the records using an executor.
func GooseDBVersionExists ¶
GooseDBVersionExists checks if the GooseDBVersion row exists.
func GooseDBVersions ¶
GooseDBVersions retrieves all the records using an executor.
func PermissionExists ¶
PermissionExists checks if the Permission row exists.
func Permissions ¶
Permissions retrieves all the records using an executor.
func RoleAssignmentExists ¶
RoleAssignmentExists checks if the RoleAssignment row exists.
func RoleAssignments ¶
RoleAssignments retrieves all the records using an executor.
func RoleExists ¶
RoleExists checks if the Role row exists.
func TrackedDirectories ¶
TrackedDirectories retrieves all the records using an executor.
func TrackedDirectoryExists ¶
func TrackedDirectoryExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
TrackedDirectoryExists checks if the TrackedDirectory row exists.
func TrackedSubjectExists ¶
func TrackedSubjectExists(ctx context.Context, exec boil.ContextExecutor, subjectID string) (bool, error)
TrackedSubjectExists checks if the TrackedSubject row exists.
func TrackedSubjects ¶
TrackedSubjects retrieves all the records using an executor.
Types ¶
type EffectivePermission ¶
type EffectivePermission struct { SubjectID string `boil:"subject_id" json:"subject_id" toml:"subject_id" yaml:"subject_id"` Target string `boil:"target" json:"target" toml:"target" yaml:"target"` Scope string `boil:"scope" json:"scope" toml:"scope" yaml:"scope"` FromRole string `boil:"from_role" json:"from_role" toml:"from_role" yaml:"from_role"` R *effectivePermissionR `boil:"-" json:"-" toml:"-" yaml:"-"` L effectivePermissionL `boil:"-" json:"-" toml:"-" yaml:"-"` }
EffectivePermission is an object representing the database table.
func FindEffectivePermission ¶
func FindEffectivePermission(ctx context.Context, exec boil.ContextExecutor, subjectID string, target string, scope string, selectCols ...string) (*EffectivePermission, error)
FindEffectivePermission retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*EffectivePermission) Delete ¶
func (o *EffectivePermission) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single EffectivePermission record with an executor. Delete will match against the primary key column to find the record to delete.
func (*EffectivePermission) Exists ¶
func (o *EffectivePermission) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the EffectivePermission row exists.
func (*EffectivePermission) FromRoleRole ¶
func (o *EffectivePermission) FromRoleRole(mods ...qm.QueryMod) roleQuery
FromRoleRole pointed to by the foreign key.
func (*EffectivePermission) Insert ¶
func (o *EffectivePermission) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*EffectivePermission) Reload ¶
func (o *EffectivePermission) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*EffectivePermission) ScopeTrackedDirectory ¶
func (o *EffectivePermission) ScopeTrackedDirectory(mods ...qm.QueryMod) trackedDirectoryQuery
ScopeTrackedDirectory pointed to by the foreign key.
func (*EffectivePermission) SetFromRoleRole ¶
func (o *EffectivePermission) SetFromRoleRole(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Role) error
SetFromRoleRole of the effectivePermission to the related item. Sets o.R.FromRoleRole to related. Adds o to related.R.FromRoleEffectivePermissions.
func (*EffectivePermission) SetScopeTrackedDirectory ¶
func (o *EffectivePermission) SetScopeTrackedDirectory(ctx context.Context, exec boil.ContextExecutor, insert bool, related *TrackedDirectory) error
SetScopeTrackedDirectory of the effectivePermission to the related item. Sets o.R.ScopeTrackedDirectory to related. Adds o to related.R.ScopeEffectivePermissions.
func (*EffectivePermission) SetSubject ¶
func (o *EffectivePermission) SetSubject(ctx context.Context, exec boil.ContextExecutor, insert bool, related *TrackedSubject) error
SetSubject of the effectivePermission to the related item. Sets o.R.Subject to related. Adds o to related.R.SubjectEffectivePermissions.
func (*EffectivePermission) SetTargetPermission ¶
func (o *EffectivePermission) SetTargetPermission(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Permission) error
SetTargetPermission of the effectivePermission to the related item. Sets o.R.TargetPermission to related. Adds o to related.R.TargetEffectivePermissions.
func (*EffectivePermission) Subject ¶
func (o *EffectivePermission) Subject(mods ...qm.QueryMod) trackedSubjectQuery
Subject pointed to by the foreign key.
func (*EffectivePermission) TargetPermission ¶
func (o *EffectivePermission) TargetPermission(mods ...qm.QueryMod) permissionQuery
TargetPermission pointed to by the foreign key.
func (*EffectivePermission) Update ¶
func (o *EffectivePermission) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the EffectivePermission. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*EffectivePermission) Upsert ¶
func (o *EffectivePermission) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type EffectivePermissionHook ¶
type EffectivePermissionHook func(context.Context, boil.ContextExecutor, *EffectivePermission) error
EffectivePermissionHook is the signature for custom EffectivePermission hook methods
type EffectivePermissionSlice ¶
type EffectivePermissionSlice []*EffectivePermission
EffectivePermissionSlice is an alias for a slice of pointers to EffectivePermission. This should almost always be used instead of []EffectivePermission.
func (EffectivePermissionSlice) DeleteAll ¶
func (o EffectivePermissionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*EffectivePermissionSlice) ReloadAll ¶
func (o *EffectivePermissionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (EffectivePermissionSlice) UpdateAll ¶
func (o EffectivePermissionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type GooseDBVersion ¶
type GooseDBVersion struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` VersionID int64 `boil:"version_id" json:"version_id" toml:"version_id" yaml:"version_id"` IsApplied bool `boil:"is_applied" json:"is_applied" toml:"is_applied" yaml:"is_applied"` Tstamp null.Time `boil:"tstamp" json:"tstamp,omitempty" toml:"tstamp" yaml:"tstamp,omitempty"` R *gooseDBVersionR `boil:"-" json:"-" toml:"-" yaml:"-"` L gooseDBVersionL `boil:"-" json:"-" toml:"-" yaml:"-"` }
GooseDBVersion is an object representing the database table.
func FindGooseDBVersion ¶
func FindGooseDBVersion(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*GooseDBVersion, error)
FindGooseDBVersion retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*GooseDBVersion) Delete ¶
func (o *GooseDBVersion) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single GooseDBVersion record with an executor. Delete will match against the primary key column to find the record to delete.
func (*GooseDBVersion) Exists ¶
func (o *GooseDBVersion) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the GooseDBVersion row exists.
func (*GooseDBVersion) Insert ¶
func (o *GooseDBVersion) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*GooseDBVersion) Reload ¶
func (o *GooseDBVersion) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*GooseDBVersion) Update ¶
func (o *GooseDBVersion) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the GooseDBVersion. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*GooseDBVersion) Upsert ¶
func (o *GooseDBVersion) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type GooseDBVersionHook ¶
type GooseDBVersionHook func(context.Context, boil.ContextExecutor, *GooseDBVersion) error
GooseDBVersionHook is the signature for custom GooseDBVersion hook methods
type GooseDBVersionSlice ¶
type GooseDBVersionSlice []*GooseDBVersion
GooseDBVersionSlice is an alias for a slice of pointers to GooseDBVersion. This should almost always be used instead of []GooseDBVersion.
func (GooseDBVersionSlice) DeleteAll ¶
func (o GooseDBVersionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*GooseDBVersionSlice) ReloadAll ¶
func (o *GooseDBVersionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (GooseDBVersionSlice) UpdateAll ¶
func (o GooseDBVersionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Permission ¶
type Permission struct { Target string `boil:"target" json:"target" toml:"target" yaml:"target"` Description string `boil:"description" json:"description" toml:"description" yaml:"description"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *permissionR `boil:"-" json:"-" toml:"-" yaml:"-"` L permissionL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Permission is an object representing the database table.
func FindPermission ¶
func FindPermission(ctx context.Context, exec boil.ContextExecutor, target string, selectCols ...string) (*Permission, error)
FindPermission retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Permission) AddRoles ¶
func (o *Permission) AddRoles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Role) error
AddRoles adds the given related objects to the existing relationships of the permission, optionally inserting them as new records. Appends related to o.R.Roles. Sets related.R.TargetPermissions appropriately.
func (*Permission) AddTargetEffectivePermissions ¶
func (o *Permission) AddTargetEffectivePermissions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*EffectivePermission) error
AddTargetEffectivePermissions adds the given related objects to the existing relationships of the permission, optionally inserting them as new records. Appends related to o.R.TargetEffectivePermissions. Sets related.R.TargetPermission appropriately.
func (*Permission) Delete ¶
func (o *Permission) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single Permission record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Permission) Exists ¶
func (o *Permission) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the Permission row exists.
func (*Permission) Insert ¶
func (o *Permission) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Permission) Reload ¶
func (o *Permission) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*Permission) RemoveRoles ¶
func (o *Permission) RemoveRoles(ctx context.Context, exec boil.ContextExecutor, related ...*Role) error
RemoveRoles relationships from objects passed in. Removes related items from R.Roles (uses pointer comparison, removal does not keep order) Sets related.R.TargetPermissions.
func (*Permission) Roles ¶
func (o *Permission) Roles(mods ...qm.QueryMod) roleQuery
Roles retrieves all the role's Roles with an executor.
func (*Permission) SetRoles ¶
func (o *Permission) SetRoles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Role) error
SetRoles removes all previously related items of the permission replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.TargetPermissions's Roles accordingly. Replaces o.R.Roles with related. Sets related.R.TargetPermissions's Roles accordingly.
func (*Permission) TargetEffectivePermissions ¶
func (o *Permission) TargetEffectivePermissions(mods ...qm.QueryMod) effectivePermissionQuery
TargetEffectivePermissions retrieves all the effective_permission's EffectivePermissions with an executor via target column.
func (*Permission) Update ¶
func (o *Permission) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Permission. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Permission) Upsert ¶
func (o *Permission) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type PermissionHook ¶
type PermissionHook func(context.Context, boil.ContextExecutor, *Permission) error
PermissionHook is the signature for custom Permission hook methods
type PermissionSlice ¶
type PermissionSlice []*Permission
PermissionSlice is an alias for a slice of pointers to Permission. This should almost always be used instead of []Permission.
func (PermissionSlice) DeleteAll ¶
func (o PermissionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*PermissionSlice) ReloadAll ¶
func (o *PermissionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (PermissionSlice) UpdateAll ¶
func (o PermissionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Role ¶
type Role struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Description string `boil:"description" json:"description" toml:"description" yaml:"description"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *roleR `boil:"-" json:"-" toml:"-" yaml:"-"` L roleL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Role is an object representing the database table.
func FindRole ¶
func FindRole(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Role, error)
FindRole retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Role) AddFromRoleEffectivePermissions ¶
func (o *Role) AddFromRoleEffectivePermissions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*EffectivePermission) error
AddFromRoleEffectivePermissions adds the given related objects to the existing relationships of the role, optionally inserting them as new records. Appends related to o.R.FromRoleEffectivePermissions. Sets related.R.FromRoleRole appropriately.
func (*Role) AddRoleAssignments ¶
func (o *Role) AddRoleAssignments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RoleAssignment) error
AddRoleAssignments adds the given related objects to the existing relationships of the role, optionally inserting them as new records. Appends related to o.R.RoleAssignments. Sets related.R.Role appropriately.
func (*Role) AddTargetPermissions ¶
func (o *Role) AddTargetPermissions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Permission) error
AddTargetPermissions adds the given related objects to the existing relationships of the role, optionally inserting them as new records. Appends related to o.R.TargetPermissions. Sets related.R.Roles appropriately.
func (*Role) Delete ¶
Delete deletes a single Role record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Role) FromRoleEffectivePermissions ¶
FromRoleEffectivePermissions retrieves all the effective_permission's EffectivePermissions with an executor via from_role column.
func (*Role) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Role) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Role) RemoveTargetPermissions ¶
func (o *Role) RemoveTargetPermissions(ctx context.Context, exec boil.ContextExecutor, related ...*Permission) error
RemoveTargetPermissions relationships from objects passed in. Removes related items from R.TargetPermissions (uses pointer comparison, removal does not keep order) Sets related.R.Roles.
func (*Role) RoleAssignments ¶
RoleAssignments retrieves all the role_assignment's RoleAssignments with an executor.
func (*Role) SetTargetPermissions ¶
func (o *Role) SetTargetPermissions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Permission) error
SetTargetPermissions removes all previously related items of the role replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Roles's TargetPermissions accordingly. Replaces o.R.TargetPermissions with related. Sets related.R.Roles's TargetPermissions accordingly.
func (*Role) TargetPermissions ¶
TargetPermissions retrieves all the permission's Permissions with an executor via target column.
func (*Role) Update ¶
func (o *Role) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Role. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Role) Upsert ¶
func (o *Role) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type RoleAssignment ¶
type RoleAssignment struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` RoleID string `boil:"role_id" json:"role_id" toml:"role_id" yaml:"role_id"` SubjectID string `boil:"subject_id" json:"subject_id" toml:"subject_id" yaml:"subject_id"` Scope string `boil:"scope" json:"scope" toml:"scope" yaml:"scope"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *roleAssignmentR `boil:"-" json:"-" toml:"-" yaml:"-"` L roleAssignmentL `boil:"-" json:"-" toml:"-" yaml:"-"` }
RoleAssignment is an object representing the database table.
func FindRoleAssignment ¶
func FindRoleAssignment(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*RoleAssignment, error)
FindRoleAssignment retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*RoleAssignment) Delete ¶
func (o *RoleAssignment) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single RoleAssignment record with an executor. Delete will match against the primary key column to find the record to delete.
func (*RoleAssignment) Exists ¶
func (o *RoleAssignment) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the RoleAssignment row exists.
func (*RoleAssignment) Insert ¶
func (o *RoleAssignment) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*RoleAssignment) Reload ¶
func (o *RoleAssignment) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*RoleAssignment) Role ¶
func (o *RoleAssignment) Role(mods ...qm.QueryMod) roleQuery
Role pointed to by the foreign key.
func (*RoleAssignment) ScopeTrackedDirectory ¶
func (o *RoleAssignment) ScopeTrackedDirectory(mods ...qm.QueryMod) trackedDirectoryQuery
ScopeTrackedDirectory pointed to by the foreign key.
func (*RoleAssignment) SetRole ¶
func (o *RoleAssignment) SetRole(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Role) error
SetRole of the roleAssignment to the related item. Sets o.R.Role to related. Adds o to related.R.RoleAssignments.
func (*RoleAssignment) SetScopeTrackedDirectory ¶
func (o *RoleAssignment) SetScopeTrackedDirectory(ctx context.Context, exec boil.ContextExecutor, insert bool, related *TrackedDirectory) error
SetScopeTrackedDirectory of the roleAssignment to the related item. Sets o.R.ScopeTrackedDirectory to related. Adds o to related.R.ScopeRoleAssignments.
func (*RoleAssignment) SetSubject ¶
func (o *RoleAssignment) SetSubject(ctx context.Context, exec boil.ContextExecutor, insert bool, related *TrackedSubject) error
SetSubject of the roleAssignment to the related item. Sets o.R.Subject to related. Adds o to related.R.SubjectRoleAssignments.
func (*RoleAssignment) Subject ¶
func (o *RoleAssignment) Subject(mods ...qm.QueryMod) trackedSubjectQuery
Subject pointed to by the foreign key.
func (*RoleAssignment) Update ¶
func (o *RoleAssignment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the RoleAssignment. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*RoleAssignment) Upsert ¶
func (o *RoleAssignment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type RoleAssignmentHook ¶
type RoleAssignmentHook func(context.Context, boil.ContextExecutor, *RoleAssignment) error
RoleAssignmentHook is the signature for custom RoleAssignment hook methods
type RoleAssignmentSlice ¶
type RoleAssignmentSlice []*RoleAssignment
RoleAssignmentSlice is an alias for a slice of pointers to RoleAssignment. This should almost always be used instead of []RoleAssignment.
func (RoleAssignmentSlice) DeleteAll ¶
func (o RoleAssignmentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*RoleAssignmentSlice) ReloadAll ¶
func (o *RoleAssignmentSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (RoleAssignmentSlice) UpdateAll ¶
func (o RoleAssignmentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type RoleSlice ¶
type RoleSlice []*Role
RoleSlice is an alias for a slice of pointers to Role. This should almost always be used instead of []Role.
type TrackedDirectory ¶
type TrackedDirectory struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` R *trackedDirectoryR `boil:"-" json:"-" toml:"-" yaml:"-"` L trackedDirectoryL `boil:"-" json:"-" toml:"-" yaml:"-"` }
TrackedDirectory is an object representing the database table.
func FindTrackedDirectory ¶
func FindTrackedDirectory(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*TrackedDirectory, error)
FindTrackedDirectory retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*TrackedDirectory) AddScopeEffectivePermissions ¶
func (o *TrackedDirectory) AddScopeEffectivePermissions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*EffectivePermission) error
AddScopeEffectivePermissions adds the given related objects to the existing relationships of the tracked_directory, optionally inserting them as new records. Appends related to o.R.ScopeEffectivePermissions. Sets related.R.ScopeTrackedDirectory appropriately.
func (*TrackedDirectory) AddScopeRoleAssignments ¶
func (o *TrackedDirectory) AddScopeRoleAssignments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RoleAssignment) error
AddScopeRoleAssignments adds the given related objects to the existing relationships of the tracked_directory, optionally inserting them as new records. Appends related to o.R.ScopeRoleAssignments. Sets related.R.ScopeTrackedDirectory appropriately.
func (*TrackedDirectory) Delete ¶
func (o *TrackedDirectory) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
Delete deletes a single TrackedDirectory record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TrackedDirectory) Exists ¶
func (o *TrackedDirectory) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the TrackedDirectory row exists.
func (*TrackedDirectory) Insert ¶
func (o *TrackedDirectory) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*TrackedDirectory) Reload ¶
func (o *TrackedDirectory) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*TrackedDirectory) ScopeEffectivePermissions ¶
func (o *TrackedDirectory) ScopeEffectivePermissions(mods ...qm.QueryMod) effectivePermissionQuery
ScopeEffectivePermissions retrieves all the effective_permission's EffectivePermissions with an executor via scope column.
func (*TrackedDirectory) ScopeRoleAssignments ¶
func (o *TrackedDirectory) ScopeRoleAssignments(mods ...qm.QueryMod) roleAssignmentQuery
ScopeRoleAssignments retrieves all the role_assignment's RoleAssignments with an executor via scope column.
func (*TrackedDirectory) Update ¶
func (o *TrackedDirectory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the TrackedDirectory. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*TrackedDirectory) Upsert ¶
func (o *TrackedDirectory) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type TrackedDirectoryHook ¶
type TrackedDirectoryHook func(context.Context, boil.ContextExecutor, *TrackedDirectory) error
TrackedDirectoryHook is the signature for custom TrackedDirectory hook methods
type TrackedDirectorySlice ¶
type TrackedDirectorySlice []*TrackedDirectory
TrackedDirectorySlice is an alias for a slice of pointers to TrackedDirectory. This should almost always be used instead of []TrackedDirectory.
func (TrackedDirectorySlice) DeleteAll ¶
func (o TrackedDirectorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*TrackedDirectorySlice) ReloadAll ¶
func (o *TrackedDirectorySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (TrackedDirectorySlice) UpdateAll ¶
func (o TrackedDirectorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type TrackedSubject ¶
type TrackedSubject struct { SubjectID string `boil:"subject_id" json:"subject_id" toml:"subject_id" yaml:"subject_id"` R *trackedSubjectR `boil:"-" json:"-" toml:"-" yaml:"-"` L trackedSubjectL `boil:"-" json:"-" toml:"-" yaml:"-"` }
TrackedSubject is an object representing the database table.
func FindTrackedSubject ¶
func FindTrackedSubject(ctx context.Context, exec boil.ContextExecutor, subjectID string, selectCols ...string) (*TrackedSubject, error)
FindTrackedSubject retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*TrackedSubject) AddSubjectEffectivePermissions ¶
func (o *TrackedSubject) AddSubjectEffectivePermissions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*EffectivePermission) error
AddSubjectEffectivePermissions adds the given related objects to the existing relationships of the tracked_subject, optionally inserting them as new records. Appends related to o.R.SubjectEffectivePermissions. Sets related.R.Subject appropriately.
func (*TrackedSubject) AddSubjectRoleAssignments ¶
func (o *TrackedSubject) AddSubjectRoleAssignments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RoleAssignment) error
AddSubjectRoleAssignments adds the given related objects to the existing relationships of the tracked_subject, optionally inserting them as new records. Appends related to o.R.SubjectRoleAssignments. Sets related.R.Subject appropriately.
func (*TrackedSubject) Delete ¶
func (o *TrackedSubject) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single TrackedSubject record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TrackedSubject) Exists ¶
func (o *TrackedSubject) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the TrackedSubject row exists.
func (*TrackedSubject) Insert ¶
func (o *TrackedSubject) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*TrackedSubject) Reload ¶
func (o *TrackedSubject) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*TrackedSubject) SubjectEffectivePermissions ¶
func (o *TrackedSubject) SubjectEffectivePermissions(mods ...qm.QueryMod) effectivePermissionQuery
SubjectEffectivePermissions retrieves all the effective_permission's EffectivePermissions with an executor via subject_id column.
func (*TrackedSubject) SubjectRoleAssignments ¶
func (o *TrackedSubject) SubjectRoleAssignments(mods ...qm.QueryMod) roleAssignmentQuery
SubjectRoleAssignments retrieves all the role_assignment's RoleAssignments with an executor via subject_id column.
func (*TrackedSubject) Update ¶
func (o *TrackedSubject) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the TrackedSubject. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*TrackedSubject) Upsert ¶
func (o *TrackedSubject) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type TrackedSubjectHook ¶
type TrackedSubjectHook func(context.Context, boil.ContextExecutor, *TrackedSubject) error
TrackedSubjectHook is the signature for custom TrackedSubject hook methods
type TrackedSubjectSlice ¶
type TrackedSubjectSlice []*TrackedSubject
TrackedSubjectSlice is an alias for a slice of pointers to TrackedSubject. This should almost always be used instead of []TrackedSubject.
func (TrackedSubjectSlice) DeleteAll ¶
func (o TrackedSubjectSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*TrackedSubjectSlice) ReloadAll ¶
func (o *TrackedSubjectSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (TrackedSubjectSlice) UpdateAll ¶
func (o TrackedSubjectSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.