db

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var DDLPostgres = []string{
	"create table if not exists remotesource (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamptz NOT NULL, update_time timestamptz NOT NULL, name varchar NOT NULL, apiurl varchar NOT NULL, skip_verify boolean NOT NULL, type varchar NOT NULL, auth_type varchar NOT NULL, oauth2_client_id varchar NOT NULL, oauth2_client_secret varchar NOT NULL, ssh_host_key varchar NOT NULL, skip_ssh_host_key_check boolean NOT NULL, registration_enabled boolean NOT NULL, login_enabled boolean NOT NULL, PRIMARY KEY (id))",
	"create table if not exists user_t (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamptz NOT NULL, update_time timestamptz NOT NULL, name varchar NOT NULL, secret varchar NOT NULL, admin boolean NOT NULL, PRIMARY KEY (id))",
	"create table if not exists usertoken (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamptz NOT NULL, update_time timestamptz NOT NULL, user_id varchar NOT NULL, name varchar NOT NULL, value varchar NOT NULL, PRIMARY KEY (id))",
	"create table if not exists linkedaccount (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamptz NOT NULL, update_time timestamptz NOT NULL, user_id varchar NOT NULL, remote_user_id varchar NOT NULL, remote_user_name varchar NOT NULL, remote_user_avatar_url varchar NOT NULL, remote_source_id varchar NOT NULL, user_access_token varchar NOT NULL, oauth2_access_token varchar NOT NULL, oauth2_refresh_token varchar NOT NULL, oauth2_access_token_expires_at timestamptz NOT NULL, PRIMARY KEY (id))",
	"create table if not exists organization (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamptz NOT NULL, update_time timestamptz NOT NULL, name varchar NOT NULL, visibility varchar NOT NULL, creator_user_id varchar NOT NULL, PRIMARY KEY (id))",
	"create table if not exists orgmember (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamptz NOT NULL, update_time timestamptz NOT NULL, organization_id varchar NOT NULL, user_id varchar NOT NULL, member_role varchar NOT NULL, PRIMARY KEY (id))",
	"create table if not exists projectgroup (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamptz NOT NULL, update_time timestamptz NOT NULL, name varchar NOT NULL, parent_kind varchar NOT NULL, parent_id varchar NOT NULL, visibility varchar NOT NULL, PRIMARY KEY (id))",
	"create table if not exists project (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamptz NOT NULL, update_time timestamptz NOT NULL, name varchar NOT NULL, parent_kind varchar NOT NULL, parent_id varchar NOT NULL, secret varchar NOT NULL, visibility varchar NOT NULL, remote_repository_config_type varchar NOT NULL, remote_source_id varchar NOT NULL, linked_account_id varchar NOT NULL, repository_id varchar NOT NULL, repository_path varchar NOT NULL, ssh_private_key varchar NOT NULL, skip_ssh_host_key_check boolean NOT NULL, webhook_secret varchar NOT NULL, pass_vars_to_forked_pr boolean NOT NULL, default_branch varchar NOT NULL, PRIMARY KEY (id))",
	"create table if not exists secret (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamptz NOT NULL, update_time timestamptz NOT NULL, name varchar NOT NULL, parent_kind varchar NOT NULL, parent_id varchar NOT NULL, type varchar NOT NULL, data jsonb NOT NULL, secret_provider_id varchar NOT NULL, path varchar NOT NULL, PRIMARY KEY (id))",
	"create table if not exists variable (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamptz NOT NULL, update_time timestamptz NOT NULL, name varchar NOT NULL, parent_kind varchar NOT NULL, parent_id varchar NOT NULL, variable_values jsonb NOT NULL, PRIMARY KEY (id))",
	"create table if not exists orginvitation (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamptz NOT NULL, update_time timestamptz NOT NULL, user_id varchar NOT NULL, organization_id varchar NOT NULL, role varchar NOT NULL, PRIMARY KEY (id))",
}
View Source
var DDLSqlite3 = []string{
	"create table if not exists remotesource (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamp NOT NULL, update_time timestamp NOT NULL, name varchar NOT NULL, apiurl varchar NOT NULL, skip_verify integer NOT NULL, type varchar NOT NULL, auth_type varchar NOT NULL, oauth2_client_id varchar NOT NULL, oauth2_client_secret varchar NOT NULL, ssh_host_key varchar NOT NULL, skip_ssh_host_key_check integer NOT NULL, registration_enabled integer NOT NULL, login_enabled integer NOT NULL, PRIMARY KEY (id))",
	"create table if not exists user_t (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamp NOT NULL, update_time timestamp NOT NULL, name varchar NOT NULL, secret varchar NOT NULL, admin integer NOT NULL, PRIMARY KEY (id))",
	"create table if not exists usertoken (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamp NOT NULL, update_time timestamp NOT NULL, user_id varchar NOT NULL, name varchar NOT NULL, value varchar NOT NULL, PRIMARY KEY (id))",
	"create table if not exists linkedaccount (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamp NOT NULL, update_time timestamp NOT NULL, user_id varchar NOT NULL, remote_user_id varchar NOT NULL, remote_user_name varchar NOT NULL, remote_user_avatar_url varchar NOT NULL, remote_source_id varchar NOT NULL, user_access_token varchar NOT NULL, oauth2_access_token varchar NOT NULL, oauth2_refresh_token varchar NOT NULL, oauth2_access_token_expires_at timestamp NOT NULL, PRIMARY KEY (id))",
	"create table if not exists organization (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamp NOT NULL, update_time timestamp NOT NULL, name varchar NOT NULL, visibility varchar NOT NULL, creator_user_id varchar NOT NULL, PRIMARY KEY (id))",
	"create table if not exists orgmember (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamp NOT NULL, update_time timestamp NOT NULL, organization_id varchar NOT NULL, user_id varchar NOT NULL, member_role varchar NOT NULL, PRIMARY KEY (id))",
	"create table if not exists projectgroup (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamp NOT NULL, update_time timestamp NOT NULL, name varchar NOT NULL, parent_kind varchar NOT NULL, parent_id varchar NOT NULL, visibility varchar NOT NULL, PRIMARY KEY (id))",
	"create table if not exists project (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamp NOT NULL, update_time timestamp NOT NULL, name varchar NOT NULL, parent_kind varchar NOT NULL, parent_id varchar NOT NULL, secret varchar NOT NULL, visibility varchar NOT NULL, remote_repository_config_type varchar NOT NULL, remote_source_id varchar NOT NULL, linked_account_id varchar NOT NULL, repository_id varchar NOT NULL, repository_path varchar NOT NULL, ssh_private_key varchar NOT NULL, skip_ssh_host_key_check integer NOT NULL, webhook_secret varchar NOT NULL, pass_vars_to_forked_pr integer NOT NULL, default_branch varchar NOT NULL, PRIMARY KEY (id))",
	"create table if not exists secret (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamp NOT NULL, update_time timestamp NOT NULL, name varchar NOT NULL, parent_kind varchar NOT NULL, parent_id varchar NOT NULL, type varchar NOT NULL, data text NOT NULL, secret_provider_id varchar NOT NULL, path varchar NOT NULL, PRIMARY KEY (id))",
	"create table if not exists variable (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamp NOT NULL, update_time timestamp NOT NULL, name varchar NOT NULL, parent_kind varchar NOT NULL, parent_id varchar NOT NULL, variable_values text NOT NULL, PRIMARY KEY (id))",
	"create table if not exists orginvitation (id varchar NOT NULL, revision bigint NOT NULL, creation_time timestamp NOT NULL, update_time timestamp NOT NULL, user_id varchar NOT NULL, organization_id varchar NOT NULL, role varchar NOT NULL, PRIMARY KEY (id))",
}
View Source
var Sequences = []sqlg.Sequence{}

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB(log zerolog.Logger, sdb *sql.DB) (*DB, error)

func (*DB) DB added in v0.9.0

func (d *DB) DB() *sql.DB

func (*DB) DBType

func (d *DB) DBType() sql.Type

func (*DB) DDL

func (d *DB) DDL() []string

func (*DB) DeleteLinkedAccount

func (d *DB) DeleteLinkedAccount(tx *sql.Tx, id string) error

func (*DB) DeleteOrgInvitation

func (d *DB) DeleteOrgInvitation(tx *sql.Tx, id string) error

func (*DB) DeleteOrganization

func (d *DB) DeleteOrganization(tx *sql.Tx, id string) error

func (*DB) DeleteOrganizationMember

func (d *DB) DeleteOrganizationMember(tx *sql.Tx, id string) error

func (*DB) DeleteProject

func (d *DB) DeleteProject(tx *sql.Tx, id string) error

func (*DB) DeleteProjectGroup

func (d *DB) DeleteProjectGroup(tx *sql.Tx, id string) error

func (*DB) DeleteRemoteSource

func (d *DB) DeleteRemoteSource(tx *sql.Tx, id string) error

func (*DB) DeleteSecret

func (d *DB) DeleteSecret(tx *sql.Tx, id string) error

func (*DB) DeleteUser

func (d *DB) DeleteUser(tx *sql.Tx, id string) error

func (*DB) DeleteUserToken

func (d *DB) DeleteUserToken(tx *sql.Tx, id string) error

func (*DB) DeleteVariable

func (d *DB) DeleteVariable(tx *sql.Tx, id string) error

func (*DB) Do

func (d *DB) Do(ctx context.Context, f func(tx *sql.Tx) error) error

func (*DB) FetchObjects

func (d *DB) FetchObjects(tx *sql.Tx, kind string, q sq.Builder) ([]sqlg.Object, error)

func (*DB) Flavor

func (d *DB) Flavor() sq.Flavor

func (*DB) GetAllProjectGroups

func (d *DB) GetAllProjectGroups(tx *sql.Tx) ([]*types.ProjectGroup, error)

func (*DB) GetAllProjects

func (d *DB) GetAllProjects(tx *sql.Tx) ([]*types.Project, error)

Test only functions

func (*DB) GetAllSecrets

func (d *DB) GetAllSecrets(tx *sql.Tx) ([]*types.Secret, error)

func (*DB) GetAllVariables

func (d *DB) GetAllVariables(tx *sql.Tx) ([]*types.Variable, error)

func (*DB) GetLinkedAccount

func (d *DB) GetLinkedAccount(tx *sql.Tx, linkedAccountID string) (*types.LinkedAccount, error)

func (*DB) GetLinkedAccountByRemoteUserIDandSource

func (d *DB) GetLinkedAccountByRemoteUserIDandSource(tx *sql.Tx, remoteUserID, remoteSourceID string) (*types.LinkedAccount, error)

func (*DB) GetLinkedAccounts

func (d *DB) GetLinkedAccounts(tx *sql.Tx, linkedAccountsIDs []string) ([]*types.LinkedAccount, error)

func (*DB) GetOrg

func (d *DB) GetOrg(tx *sql.Tx, orgRef string) (*types.Organization, error)

func (*DB) GetOrgByID

func (d *DB) GetOrgByID(tx *sql.Tx, orgID string) (*types.Organization, error)

func (*DB) GetOrgByName

func (d *DB) GetOrgByName(tx *sql.Tx, name string) (*types.Organization, error)

func (*DB) GetOrgInvitationByOrgUserID

func (d *DB) GetOrgInvitationByOrgUserID(tx *sql.Tx, orgID, userID string) (*types.OrgInvitation, error)

func (*DB) GetOrgInvitationByUserID

func (d *DB) GetOrgInvitationByUserID(tx *sql.Tx, userID string) ([]*types.OrgInvitation, error)

func (*DB) GetOrgInvitations

func (d *DB) GetOrgInvitations(tx *sql.Tx, orgID string) ([]*types.OrgInvitation, error)

func (*DB) GetOrgMemberByOrgUserID

func (d *DB) GetOrgMemberByOrgUserID(tx *sql.Tx, orgID, userID string) (*types.OrganizationMember, error)

func (*DB) GetOrgUsers

func (d *DB) GetOrgUsers(tx *sql.Tx, orgID string) ([]*OrgUser, error)

TODO(sgotti) implement cursor fetching

func (*DB) GetOrgs

func (d *DB) GetOrgs(tx *sql.Tx, startOrgName string, limit int, asc bool) ([]*types.Organization, error)

func (*DB) GetPath

func (d *DB) GetPath(tx *sql.Tx, objectKind types.ObjectKind, id string) (string, error)

func (*DB) GetProject

func (d *DB) GetProject(tx *sql.Tx, projectRef string) (*types.Project, error)

func (*DB) GetProjectByID

func (d *DB) GetProjectByID(tx *sql.Tx, projectID string) (*types.Project, error)

func (*DB) GetProjectByName

func (d *DB) GetProjectByName(tx *sql.Tx, parentID, name string) (*types.Project, error)

func (*DB) GetProjectByPath

func (d *DB) GetProjectByPath(tx *sql.Tx, projectPath string) (*types.Project, error)

func (*DB) GetProjectGroup

func (d *DB) GetProjectGroup(tx *sql.Tx, projectGroupRef string) (*types.ProjectGroup, error)

func (*DB) GetProjectGroupByID

func (d *DB) GetProjectGroupByID(tx *sql.Tx, projectGroupID string) (*types.ProjectGroup, error)

func (*DB) GetProjectGroupByName

func (d *DB) GetProjectGroupByName(tx *sql.Tx, parentID, name string) (*types.ProjectGroup, error)

func (*DB) GetProjectGroupByPath

func (d *DB) GetProjectGroupByPath(tx *sql.Tx, projectGroupPath string) (*types.ProjectGroup, error)

func (*DB) GetProjectGroupHierarchy

func (d *DB) GetProjectGroupHierarchy(tx *sql.Tx, projectGroup *types.ProjectGroup) ([]*Element, error)

func (*DB) GetProjectGroupOwnerID

func (d *DB) GetProjectGroupOwnerID(tx *sql.Tx, group *types.ProjectGroup) (types.ObjectKind, string, error)

func (*DB) GetProjectGroupPath

func (d *DB) GetProjectGroupPath(tx *sql.Tx, group *types.ProjectGroup) (string, error)

func (*DB) GetProjectGroupProjects

func (d *DB) GetProjectGroupProjects(tx *sql.Tx, parentID string) ([]*types.Project, error)

func (*DB) GetProjectGroupSubgroups

func (d *DB) GetProjectGroupSubgroups(tx *sql.Tx, parentID string) ([]*types.ProjectGroup, error)

func (*DB) GetProjectOwnerID

func (d *DB) GetProjectOwnerID(tx *sql.Tx, project *types.Project) (types.ObjectKind, string, error)

func (*DB) GetProjectPath

func (d *DB) GetProjectPath(tx *sql.Tx, project *types.Project) (string, error)

func (*DB) GetRemoteSource

func (d *DB) GetRemoteSource(tx *sql.Tx, rsRef string) (*types.RemoteSource, error)

func (*DB) GetRemoteSourceByID

func (d *DB) GetRemoteSourceByID(tx *sql.Tx, remoteSourceID string) (*types.RemoteSource, error)

func (*DB) GetRemoteSourceByName

func (d *DB) GetRemoteSourceByName(tx *sql.Tx, name string) (*types.RemoteSource, error)

func (*DB) GetRemoteSources

func (d *DB) GetRemoteSources(tx *sql.Tx, startRemoteSourceName string, limit int, asc bool) ([]*types.RemoteSource, error)

func (*DB) GetSecretByID

func (d *DB) GetSecretByID(tx *sql.Tx, secretID string) (*types.Secret, error)

func (*DB) GetSecretByName

func (d *DB) GetSecretByName(tx *sql.Tx, parentID, name string) (*types.Secret, error)

func (*DB) GetSecretTree

func (d *DB) GetSecretTree(tx *sql.Tx, parentKind types.ObjectKind, parentID, name string) (*types.Secret, error)

func (*DB) GetSecrets

func (d *DB) GetSecrets(tx *sql.Tx, parentID string) ([]*types.Secret, error)

func (*DB) GetSecretsTree

func (d *DB) GetSecretsTree(tx *sql.Tx, parentKind types.ObjectKind, parentID string) ([]*types.Secret, error)

func (*DB) GetSequence

func (d *DB) GetSequence(tx *sql.Tx, sequenceName string) (uint64, error)

func (*DB) GetUser

func (d *DB) GetUser(tx *sql.Tx, userRef string) (*types.User, error)

func (*DB) GetUserByID

func (d *DB) GetUserByID(tx *sql.Tx, userID string) (*types.User, error)

func (*DB) GetUserByLinkedAccount

func (d *DB) GetUserByLinkedAccount(tx *sql.Tx, linkedAccountID string) (*types.User, error)

func (*DB) GetUserByName

func (d *DB) GetUserByName(tx *sql.Tx, name string) (*types.User, error)

func (*DB) GetUserByTokenValue

func (d *DB) GetUserByTokenValue(tx *sql.Tx, tokenValue string) (*types.User, error)

func (*DB) GetUserLinkedAccounts

func (d *DB) GetUserLinkedAccounts(tx *sql.Tx, userID string) ([]*types.LinkedAccount, error)

func (*DB) GetUserOrgs

func (d *DB) GetUserOrgs(tx *sql.Tx, userID string) ([]*UserOrg, error)

TODO(sgotti) implement cursor fetching

func (*DB) GetUserToken

func (d *DB) GetUserToken(tx *sql.Tx, userID, tokenName string) (*types.UserToken, error)

func (*DB) GetUserTokens

func (d *DB) GetUserTokens(tx *sql.Tx, userID string) ([]*types.UserToken, error)

func (*DB) GetUsers

func (d *DB) GetUsers(tx *sql.Tx, startUserName string, limit int, asc bool) ([]*types.User, error)

func (*DB) GetVariableByID

func (d *DB) GetVariableByID(tx *sql.Tx, variableID string) (*types.Variable, error)

func (*DB) GetVariableByName

func (d *DB) GetVariableByName(tx *sql.Tx, parentID, name string) (*types.Variable, error)

func (*DB) GetVariables

func (d *DB) GetVariables(tx *sql.Tx, parentID string) ([]*types.Variable, error)

func (*DB) GetVariablesTree

func (d *DB) GetVariablesTree(tx *sql.Tx, parentKind types.ObjectKind, parentID string) ([]*types.Variable, error)

func (*DB) InsertLinkedAccount

func (d *DB) InsertLinkedAccount(tx *sql.Tx, v *types.LinkedAccount) error

func (*DB) InsertOrUpdateLinkedAccount

func (d *DB) InsertOrUpdateLinkedAccount(tx *sql.Tx, v *types.LinkedAccount) error

func (*DB) InsertOrUpdateOrgInvitation

func (d *DB) InsertOrUpdateOrgInvitation(tx *sql.Tx, v *types.OrgInvitation) error

func (*DB) InsertOrUpdateOrganization

func (d *DB) InsertOrUpdateOrganization(tx *sql.Tx, v *types.Organization) error

func (*DB) InsertOrUpdateOrganizationMember

func (d *DB) InsertOrUpdateOrganizationMember(tx *sql.Tx, v *types.OrganizationMember) error

func (*DB) InsertOrUpdateProject

func (d *DB) InsertOrUpdateProject(tx *sql.Tx, v *types.Project) error

func (*DB) InsertOrUpdateProjectGroup

func (d *DB) InsertOrUpdateProjectGroup(tx *sql.Tx, v *types.ProjectGroup) error

func (*DB) InsertOrUpdateRemoteSource

func (d *DB) InsertOrUpdateRemoteSource(tx *sql.Tx, v *types.RemoteSource) error

func (*DB) InsertOrUpdateSecret

func (d *DB) InsertOrUpdateSecret(tx *sql.Tx, v *types.Secret) error

func (*DB) InsertOrUpdateUser

func (d *DB) InsertOrUpdateUser(tx *sql.Tx, v *types.User) error

func (*DB) InsertOrUpdateUserToken

func (d *DB) InsertOrUpdateUserToken(tx *sql.Tx, v *types.UserToken) error

func (*DB) InsertOrUpdateVariable

func (d *DB) InsertOrUpdateVariable(tx *sql.Tx, v *types.Variable) error

func (*DB) InsertOrgInvitation

func (d *DB) InsertOrgInvitation(tx *sql.Tx, v *types.OrgInvitation) error

func (*DB) InsertOrganization

func (d *DB) InsertOrganization(tx *sql.Tx, v *types.Organization) error

func (*DB) InsertOrganizationMember

func (d *DB) InsertOrganizationMember(tx *sql.Tx, v *types.OrganizationMember) error

func (*DB) InsertProject

func (d *DB) InsertProject(tx *sql.Tx, v *types.Project) error

func (*DB) InsertProjectGroup

func (d *DB) InsertProjectGroup(tx *sql.Tx, v *types.ProjectGroup) error

func (*DB) InsertRawObject

func (d *DB) InsertRawObject(tx *sql.Tx, obj sqlg.Object) error

func (*DB) InsertRemoteSource

func (d *DB) InsertRemoteSource(tx *sql.Tx, v *types.RemoteSource) error

func (*DB) InsertSecret

func (d *DB) InsertSecret(tx *sql.Tx, v *types.Secret) error

func (*DB) InsertUser

func (d *DB) InsertUser(tx *sql.Tx, v *types.User) error

func (*DB) InsertUserToken

func (d *DB) InsertUserToken(tx *sql.Tx, v *types.UserToken) error

func (*DB) InsertVariable

func (d *DB) InsertVariable(tx *sql.Tx, v *types.Variable) error

func (*DB) LinkedAccountArray

func (d *DB) LinkedAccountArray() []any

func (*DB) LinkedAccountFromArray

func (d *DB) LinkedAccountFromArray(a []any, txID string) (*types.LinkedAccount, string, error)

func (*DB) MigrateFuncs

func (d *DB) MigrateFuncs() map[uint]sqlg.MigrateFunc

func (*DB) ObjectToExportJSON

func (d *DB) ObjectToExportJSON(obj sqlg.Object, e *json.Encoder) error

func (*DB) ObjectsInfo

func (d *DB) ObjectsInfo() []sqlg.ObjectInfo

func (*DB) OrgInvitationArray

func (d *DB) OrgInvitationArray() []any

func (*DB) OrgInvitationFromArray

func (d *DB) OrgInvitationFromArray(a []any, txID string) (*types.OrgInvitation, string, error)

func (*DB) OrganizationArray

func (d *DB) OrganizationArray() []any

func (*DB) OrganizationFromArray

func (d *DB) OrganizationFromArray(a []any, txID string) (*types.Organization, string, error)

func (*DB) OrganizationMemberArray

func (d *DB) OrganizationMemberArray() []any

func (*DB) OrganizationMemberFromArray

func (d *DB) OrganizationMemberFromArray(a []any, txID string) (*types.OrganizationMember, string, error)

func (*DB) PopulateSequences

func (d *DB) PopulateSequences(tx *sql.Tx) error

func (*DB) ProjectArray

func (d *DB) ProjectArray() []any

func (*DB) ProjectFromArray

func (d *DB) ProjectFromArray(a []any, txID string) (*types.Project, string, error)

func (*DB) ProjectGroupArray

func (d *DB) ProjectGroupArray() []any

func (*DB) ProjectGroupFromArray

func (d *DB) ProjectGroupFromArray(a []any, txID string) (*types.ProjectGroup, string, error)

func (*DB) RemoteSourceArray

func (d *DB) RemoteSourceArray() []any

func (*DB) RemoteSourceFromArray

func (d *DB) RemoteSourceFromArray(a []any, txID string) (*types.RemoteSource, string, error)

func (*DB) SecretArray

func (d *DB) SecretArray() []any

func (*DB) SecretFromArray

func (d *DB) SecretFromArray(a []any, txID string) (*types.Secret, string, error)

func (*DB) SelectObject

func (d *DB) SelectObject(kind string) *sq.SelectBuilder

func (*DB) Sequences

func (d *DB) Sequences() []sqlg.Sequence

func (*DB) UnmarshalExportObject

func (d *DB) UnmarshalExportObject(data []byte) (sqlg.Object, error)

func (*DB) UpdateLinkedAccount

func (d *DB) UpdateLinkedAccount(tx *sql.Tx, v *types.LinkedAccount) error

func (*DB) UpdateOrgInvitation

func (d *DB) UpdateOrgInvitation(tx *sql.Tx, v *types.OrgInvitation) error

func (*DB) UpdateOrganization

func (d *DB) UpdateOrganization(tx *sql.Tx, v *types.Organization) error

func (*DB) UpdateOrganizationMember

func (d *DB) UpdateOrganizationMember(tx *sql.Tx, v *types.OrganizationMember) error

func (*DB) UpdateProject

func (d *DB) UpdateProject(tx *sql.Tx, v *types.Project) error

func (*DB) UpdateProjectGroup

func (d *DB) UpdateProjectGroup(tx *sql.Tx, v *types.ProjectGroup) error

func (*DB) UpdateRemoteSource

func (d *DB) UpdateRemoteSource(tx *sql.Tx, v *types.RemoteSource) error

func (*DB) UpdateSecret

func (d *DB) UpdateSecret(tx *sql.Tx, v *types.Secret) error

func (*DB) UpdateUser

func (d *DB) UpdateUser(tx *sql.Tx, v *types.User) error

func (*DB) UpdateUserToken

func (d *DB) UpdateUserToken(tx *sql.Tx, v *types.UserToken) error

func (*DB) UpdateVariable

func (d *DB) UpdateVariable(tx *sql.Tx, v *types.Variable) error

func (*DB) UserArray

func (d *DB) UserArray() []any

func (*DB) UserFromArray

func (d *DB) UserFromArray(a []any, txID string) (*types.User, string, error)

func (*DB) UserTokenArray

func (d *DB) UserTokenArray() []any

func (*DB) UserTokenFromArray

func (d *DB) UserTokenFromArray(a []any, txID string) (*types.UserToken, string, error)

func (*DB) VariableArray

func (d *DB) VariableArray() []any

func (*DB) VariableFromArray

func (d *DB) VariableFromArray(a []any, txID string) (*types.Variable, string, error)

func (*DB) Version

func (d *DB) Version() uint

type Element

type Element struct {
	ID         string
	Name       string
	Kind       types.ObjectKind
	ParentKind types.ObjectKind
	ParentID   string
}

type OrgUser

type OrgUser struct {
	User *types.User
	Role types.MemberRole
}

type UserOrg

type UserOrg struct {
	Organization *types.Organization
	Role         types.MemberRole
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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