db

package
v0.0.0-...-0dc46f9 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Code generated by seacle.Generator DO NOT EDIT About seacle: https://github.com/acidlemon/seacle

Code generated by seacle.Generator DO NOT EDIT About seacle: https://github.com/acidlemon/seacle

Code generated by seacle.Generator DO NOT EDIT About seacle: https://github.com/acidlemon/seacle

Code generated by seacle.Generator DO NOT EDIT About seacle: https://github.com/acidlemon/seacle

Code generated by seacle.Generator DO NOT EDIT About seacle: https://github.com/acidlemon/seacle

Code generated by seacle.Generator DO NOT EDIT About seacle: https://github.com/acidlemon/seacle

Code generated by seacle.Generator DO NOT EDIT About seacle: https://github.com/acidlemon/seacle

Code generated by seacle.Generator DO NOT EDIT About seacle: https://github.com/acidlemon/seacle

Code generated by seacle.Generator DO NOT EDIT About seacle: https://github.com/acidlemon/seacle

Code generated by seacle.Generator DO NOT EDIT About seacle: https://github.com/acidlemon/seacle

Code generated by seacle.Generator DO NOT EDIT About seacle: https://github.com/acidlemon/seacle

Index

Constants

View Source
const AssociatedTypeGroup = 1
View Source
const AssociatedTypeRole = 2

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthAPIKeyRow

type AuthAPIKeyRow struct {
	SeqID          int64  `db:"seq_id,primary,auto_increment"`
	AuthAPIKeyID   string `db:"auth_apikey_id"`
	Name           string `db:"name"`
	MaskedToken    string `db:"masked_token"`
	HashedToken    string `db:"hashed_token"`
	PrincipalSeqID int64  `db:"principal_seq_id"`
}

func (*AuthAPIKeyRow) AutoIncrementColumn

func (p *AuthAPIKeyRow) AutoIncrementColumn() string

func (*AuthAPIKeyRow) Columns

func (p *AuthAPIKeyRow) Columns() []string

func (*AuthAPIKeyRow) PrimaryKeys

func (p *AuthAPIKeyRow) PrimaryKeys() []string

func (*AuthAPIKeyRow) PrimaryValues

func (p *AuthAPIKeyRow) PrimaryValues() []interface{}

func (*AuthAPIKeyRow) Scan

func (p *AuthAPIKeyRow) Scan(r seacle.RowScanner) error

func (*AuthAPIKeyRow) Table

func (p *AuthAPIKeyRow) Table() string

func (*AuthAPIKeyRow) ToEntity

func (a *AuthAPIKeyRow) ToEntity() *entity.AuthAPIKey

func (*AuthAPIKeyRow) ValueColumns

func (p *AuthAPIKeyRow) ValueColumns() []string

func (*AuthAPIKeyRow) Values

func (p *AuthAPIKeyRow) Values() []interface{}

type AuthOIDCRow

type AuthOIDCRow struct {
	SeqID          int64  `db:"seq_id,primary,auto_increment"`
	AuthOIDCID     string `db:"auth_oidc_id"`
	Issuer         string `db:"issuer"`
	Subject        string `db:"subject"`
	Email          string `db:"email"`
	Name           string `db:"name"`
	PrincipalSeqID int64  `db:"principal_seq_id"`
}

func (*AuthOIDCRow) AutoIncrementColumn

func (p *AuthOIDCRow) AutoIncrementColumn() string

func (*AuthOIDCRow) Columns

func (p *AuthOIDCRow) Columns() []string

func (*AuthOIDCRow) PrimaryKeys

func (p *AuthOIDCRow) PrimaryKeys() []string

func (*AuthOIDCRow) PrimaryValues

func (p *AuthOIDCRow) PrimaryValues() []interface{}

func (*AuthOIDCRow) Scan

func (p *AuthOIDCRow) Scan(r seacle.RowScanner) error

func (*AuthOIDCRow) Table

func (p *AuthOIDCRow) Table() string

func (*AuthOIDCRow) ToEntity

func (a *AuthOIDCRow) ToEntity() *entity.OIDCAuthorization

func (*AuthOIDCRow) ValueColumns

func (p *AuthOIDCRow) ValueColumns() []string

func (*AuthOIDCRow) Values

func (p *AuthOIDCRow) Values() []interface{}

type Context

type Context = context.Context

type GroupRoleMapRow

type GroupRoleMapRow struct {
	GroupSeqID int64 `db:"group_seq_id,primary"`
	RoleSeqID  int64 `db:"role_seq_id,primary"`
}

func (*GroupRoleMapRow) AutoIncrementColumn

func (p *GroupRoleMapRow) AutoIncrementColumn() string

func (*GroupRoleMapRow) Columns

func (p *GroupRoleMapRow) Columns() []string

func (*GroupRoleMapRow) PrimaryKeys

func (p *GroupRoleMapRow) PrimaryKeys() []string

func (*GroupRoleMapRow) PrimaryValues

func (p *GroupRoleMapRow) PrimaryValues() []interface{}

func (*GroupRoleMapRow) Scan

func (*GroupRoleMapRow) Table

func (p *GroupRoleMapRow) Table() string

func (*GroupRoleMapRow) TargetSeqID

func (row *GroupRoleMapRow) TargetSeqID() int64

func (*GroupRoleMapRow) ValueColumns

func (p *GroupRoleMapRow) ValueColumns() []string

func (*GroupRoleMapRow) Values

func (p *GroupRoleMapRow) Values() []interface{}

type GroupRow

type GroupRow struct {
	SeqID       int64  `db:"seq_id,primary,auto_increment"`
	GroupID     string `db:"group_id"`
	Name        string `db:"name"`
	Description string `db:"description"`
}

func (*GroupRow) AutoIncrementColumn

func (p *GroupRow) AutoIncrementColumn() string

func (*GroupRow) Columns

func (p *GroupRow) Columns() []string

func (*GroupRow) PrimaryKeys

func (p *GroupRow) PrimaryKeys() []string

func (*GroupRow) PrimaryValues

func (p *GroupRow) PrimaryValues() []interface{}

func (*GroupRow) Scan

func (p *GroupRow) Scan(r seacle.RowScanner) error

func (*GroupRow) Table

func (p *GroupRow) Table() string

func (*GroupRow) ValueColumns

func (p *GroupRow) ValueColumns() []string

func (*GroupRow) Values

func (p *GroupRow) Values() []interface{}

type MappingRuleRow

type MappingRuleRow struct {
	SeqID           int64  `db:"seq_id,primary,auto_increment"`
	MappingRuleID   string `db:"mapping_rule_id"`
	RuleType        int    `db:"rule_type"`
	Detail          string `db:"detail"`
	Name            string `db:"name"`
	Description     string `db:"description"`
	Priority        int    `db:"priority"`
	AssociationType int    `db:"association_type"`
	AssociationID   string `db:"association_id"`
}

func (*MappingRuleRow) AutoIncrementColumn

func (p *MappingRuleRow) AutoIncrementColumn() string

func (*MappingRuleRow) Columns

func (p *MappingRuleRow) Columns() []string

func (*MappingRuleRow) PrimaryKeys

func (p *MappingRuleRow) PrimaryKeys() []string

func (*MappingRuleRow) PrimaryValues

func (p *MappingRuleRow) PrimaryValues() []interface{}

func (*MappingRuleRow) Scan

func (*MappingRuleRow) Table

func (p *MappingRuleRow) Table() string

func (*MappingRuleRow) ValueColumns

func (p *MappingRuleRow) ValueColumns() []string

func (*MappingRuleRow) Values

func (p *MappingRuleRow) Values() []interface{}

type PermissionRow

type PermissionRow struct {
	SeqID        int64  `db:"seq_id,primary,auto_increment"`
	PermissionID string `db:"permission_id"`
	Name         string `db:"name"`
	Description  string `db:"description"`
}

func (*PermissionRow) AutoIncrementColumn

func (p *PermissionRow) AutoIncrementColumn() string

func (*PermissionRow) Columns

func (p *PermissionRow) Columns() []string

func (*PermissionRow) PrimaryKeys

func (p *PermissionRow) PrimaryKeys() []string

func (*PermissionRow) PrimaryValues

func (p *PermissionRow) PrimaryValues() []interface{}

func (*PermissionRow) Scan

func (p *PermissionRow) Scan(r seacle.RowScanner) error

func (*PermissionRow) Table

func (p *PermissionRow) Table() string

func (*PermissionRow) ToEntity

func (perm *PermissionRow) ToEntity() *entity.Permission

func (*PermissionRow) ValueColumns

func (p *PermissionRow) ValueColumns() []string

func (*PermissionRow) Values

func (p *PermissionRow) Values() []interface{}

type PrincipalGroupMapRow

type PrincipalGroupMapRow struct {
	PrincipalSeqID int64 `db:"principal_seq_id,primary"`
	GroupSeqID     int64 `db:"group_seq_id,primary"`
}

func (*PrincipalGroupMapRow) AutoIncrementColumn

func (p *PrincipalGroupMapRow) AutoIncrementColumn() string

func (*PrincipalGroupMapRow) Columns

func (p *PrincipalGroupMapRow) Columns() []string

func (*PrincipalGroupMapRow) PrimaryKeys

func (p *PrincipalGroupMapRow) PrimaryKeys() []string

func (*PrincipalGroupMapRow) PrimaryValues

func (p *PrincipalGroupMapRow) PrimaryValues() []interface{}

func (*PrincipalGroupMapRow) Scan

func (*PrincipalGroupMapRow) Table

func (p *PrincipalGroupMapRow) Table() string

func (*PrincipalGroupMapRow) TargetSeqID

func (row *PrincipalGroupMapRow) TargetSeqID() int64

func (*PrincipalGroupMapRow) ValueColumns

func (p *PrincipalGroupMapRow) ValueColumns() []string

func (*PrincipalGroupMapRow) Values

func (p *PrincipalGroupMapRow) Values() []interface{}

type PrincipalRoleMapRow

type PrincipalRoleMapRow struct {
	PrincipalSeqID int64 `db:"principal_seq_id,primary"`
	RoleSeqID      int64 `db:"role_seq_id,primary"`
}

func (*PrincipalRoleMapRow) AutoIncrementColumn

func (p *PrincipalRoleMapRow) AutoIncrementColumn() string

func (*PrincipalRoleMapRow) Columns

func (p *PrincipalRoleMapRow) Columns() []string

func (*PrincipalRoleMapRow) PrimaryKeys

func (p *PrincipalRoleMapRow) PrimaryKeys() []string

func (*PrincipalRoleMapRow) PrimaryValues

func (p *PrincipalRoleMapRow) PrimaryValues() []interface{}

func (*PrincipalRoleMapRow) Scan

func (*PrincipalRoleMapRow) Table

func (p *PrincipalRoleMapRow) Table() string

func (*PrincipalRoleMapRow) TargetSeqID

func (row *PrincipalRoleMapRow) TargetSeqID() int64

func (*PrincipalRoleMapRow) ValueColumns

func (p *PrincipalRoleMapRow) ValueColumns() []string

func (*PrincipalRoleMapRow) Values

func (p *PrincipalRoleMapRow) Values() []interface{}

type PrincipalRow

type PrincipalRow struct {
	SeqID       int64  `db:"seq_id,primary,auto_increment"`
	PrincipalID string `db:"principal_id"`
	Name        string `db:"name"`
	Description string `db:"description"`
}

func (*PrincipalRow) AutoIncrementColumn

func (p *PrincipalRow) AutoIncrementColumn() string

func (*PrincipalRow) Columns

func (p *PrincipalRow) Columns() []string

func (*PrincipalRow) PrimaryKeys

func (p *PrincipalRow) PrimaryKeys() []string

func (*PrincipalRow) PrimaryValues

func (p *PrincipalRow) PrimaryValues() []interface{}

func (*PrincipalRow) Scan

func (p *PrincipalRow) Scan(r seacle.RowScanner) error

func (*PrincipalRow) Table

func (p *PrincipalRow) Table() string

func (*PrincipalRow) ToEntity

func (pri *PrincipalRow) ToEntity() *entity.Principal

func (*PrincipalRow) ValueColumns

func (p *PrincipalRow) ValueColumns() []string

func (*PrincipalRow) Values

func (p *PrincipalRow) Values() []interface{}

type RolePermissionMapRow

type RolePermissionMapRow struct {
	RoleSeqID       int64 `db:"role_seq_id,primary"`
	PermissionSeqID int64 `db:"permission_seq_id,primary"`
}

func (*RolePermissionMapRow) AutoIncrementColumn

func (p *RolePermissionMapRow) AutoIncrementColumn() string

func (*RolePermissionMapRow) Columns

func (p *RolePermissionMapRow) Columns() []string

func (*RolePermissionMapRow) PrimaryKeys

func (p *RolePermissionMapRow) PrimaryKeys() []string

func (*RolePermissionMapRow) PrimaryValues

func (p *RolePermissionMapRow) PrimaryValues() []interface{}

func (*RolePermissionMapRow) Scan

func (*RolePermissionMapRow) Table

func (p *RolePermissionMapRow) Table() string

func (*RolePermissionMapRow) TargetSeqID

func (row *RolePermissionMapRow) TargetSeqID() int64

func (*RolePermissionMapRow) ValueColumns

func (p *RolePermissionMapRow) ValueColumns() []string

func (*RolePermissionMapRow) Values

func (p *RolePermissionMapRow) Values() []interface{}

type RoleRow

type RoleRow struct {
	SeqID       int64  `db:"seq_id,primary,auto_increment"`
	RoleID      string `db:"role_id"`
	Name        string `db:"name"`
	Description string `db:"description"`
}

func (*RoleRow) AutoIncrementColumn

func (p *RoleRow) AutoIncrementColumn() string

func (*RoleRow) Columns

func (p *RoleRow) Columns() []string

func (*RoleRow) PrimaryKeys

func (p *RoleRow) PrimaryKeys() []string

func (*RoleRow) PrimaryValues

func (p *RoleRow) PrimaryValues() []interface{}

func (*RoleRow) Scan

func (p *RoleRow) Scan(r seacle.RowScanner) error

func (*RoleRow) Table

func (p *RoleRow) Table() string

func (*RoleRow) ValueColumns

func (p *RoleRow) ValueColumns() []string

func (*RoleRow) Values

func (p *RoleRow) Values() []interface{}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) DeleteGroup

func (s *Service) DeleteGroup(ctx context.Context, conn seacle.Executable, g *entity.Group) error

func (*Service) DeleteMappingRule

func (s *Service) DeleteMappingRule(ctx Context, conn seacle.Executable, rule *entity.MappingRule) error

func (*Service) DeletePermission

func (s *Service) DeletePermission(ctx Context, conn seacle.Executable, perm *entity.Permission) error

func (*Service) DeletePrincipal

func (s *Service) DeletePrincipal(ctx Context, conn seacle.Executable, pri *entity.Principal) error

func (*Service) DeleteRole

func (s *Service) DeleteRole(ctx context.Context, conn seacle.Executable, r *entity.Role) error

func (*Service) EnumerateGroupIDs

func (s *Service) EnumerateGroupIDs(ctx Context, conn seacle.Selectable) ([]string, error)

func (*Service) EnumerateMappingRuleIDs

func (s *Service) EnumerateMappingRuleIDs(ctx Context, conn seacle.Selectable) ([]string, error)

func (*Service) EnumeratePermissionIDs

func (s *Service) EnumeratePermissionIDs(ctx Context, conn seacle.Selectable) ([]string, error)

func (*Service) EnumeratePrincipalIDs

func (s *Service) EnumeratePrincipalIDs(ctx Context, conn seacle.Selectable) ([]string, error)

func (*Service) EnumerateRoleIDs

func (s *Service) EnumerateRoleIDs(ctx Context, conn seacle.Selectable) ([]string, error)

func (*Service) FindGroups

func (s *Service) FindGroups(ctx Context, conn seacle.Selectable, groupIDs []string) ([]*entity.Group, error)

func (*Service) FindMappingRules

func (s *Service) FindMappingRules(ctx Context, conn seacle.Selectable, mappingRuleIDs []string) ([]*entity.MappingRule, error)

func (*Service) FindPermissions

func (s *Service) FindPermissions(ctx Context, conn seacle.Selectable, permissionIDs []string) ([]*entity.Permission, error)

func (*Service) FindPrincipalByOIDC

func (s *Service) FindPrincipalByOIDC(ctx Context, conn seacle.Selectable, issuer, subject string) (*entity.Principal, error)

func (*Service) FindPrincipalBySeqID

func (s *Service) FindPrincipalBySeqID(ctx Context, conn *sql.Conn, id int64) (*entity.Principal, error)

func (*Service) FindPrincipals

func (s *Service) FindPrincipals(ctx Context, conn seacle.Selectable, principalIDs []string) ([]*entity.Principal, error)

func (*Service) FindRoles

func (s *Service) FindRoles(ctx Context, conn seacle.Selectable, roleIDs []string) ([]*entity.Role, error)

func (*Service) SaveAuthAPIKey

func (s *Service) SaveAuthAPIKey(ctx Context, conn seacle.Executable, a *entity.AuthAPIKey, pri *entity.Principal) error

func (*Service) SaveAuthOIDC

func (s *Service) SaveAuthOIDC(ctx Context, conn seacle.Executable, a *entity.OIDCAuthorization, pri *entity.Principal) error

func (*Service) SaveGroup

func (s *Service) SaveGroup(ctx context.Context, conn seacle.Executable, g *entity.Group) error

func (*Service) SaveMappingRule

func (s *Service) SaveMappingRule(ctx Context, conn seacle.Executable, rule *entity.MappingRule) error

func (*Service) SavePermission

func (s *Service) SavePermission(ctx Context, conn seacle.Executable, perm *entity.Permission) error

func (*Service) SavePrincipal

func (s *Service) SavePrincipal(ctx Context, conn seacle.Executable, pri *entity.Principal) error

func (*Service) SaveRole

func (s *Service) SaveRole(ctx context.Context, conn seacle.Executable, r *entity.Role) error

Jump to

Keyboard shortcuts

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