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 ¶
- Variables
- type DB
- func (d *DB) DB() *sql.DB
- func (d *DB) DBType() sql.Type
- func (d *DB) DDL() []string
- func (d *DB) DeleteLinkedAccount(tx *sql.Tx, id string) error
- func (d *DB) DeleteOrgInvitation(tx *sql.Tx, id string) error
- func (d *DB) DeleteOrganization(tx *sql.Tx, id string) error
- func (d *DB) DeleteOrganizationMember(tx *sql.Tx, id string) error
- func (d *DB) DeleteProject(tx *sql.Tx, id string) error
- func (d *DB) DeleteProjectGroup(tx *sql.Tx, id string) error
- func (d *DB) DeleteRemoteSource(tx *sql.Tx, id string) error
- func (d *DB) DeleteSecret(tx *sql.Tx, id string) error
- func (d *DB) DeleteUser(tx *sql.Tx, id string) error
- func (d *DB) DeleteUserToken(tx *sql.Tx, id string) error
- func (d *DB) DeleteVariable(tx *sql.Tx, id string) error
- func (d *DB) Do(ctx context.Context, f func(tx *sql.Tx) error) error
- func (d *DB) FetchObjects(tx *sql.Tx, kind string, q sq.Builder) ([]sqlg.Object, error)
- func (d *DB) Flavor() sq.Flavor
- func (d *DB) GetAllProjectGroups(tx *sql.Tx) ([]*types.ProjectGroup, error)
- func (d *DB) GetAllProjects(tx *sql.Tx) ([]*types.Project, error)
- func (d *DB) GetAllSecrets(tx *sql.Tx) ([]*types.Secret, error)
- func (d *DB) GetAllVariables(tx *sql.Tx) ([]*types.Variable, error)
- func (d *DB) GetLinkedAccount(tx *sql.Tx, linkedAccountID string) (*types.LinkedAccount, error)
- func (d *DB) GetLinkedAccountByRemoteUserIDandSource(tx *sql.Tx, remoteUserID, remoteSourceID string) (*types.LinkedAccount, error)
- func (d *DB) GetLinkedAccounts(tx *sql.Tx, linkedAccountsIDs []string) ([]*types.LinkedAccount, error)
- func (d *DB) GetOrg(tx *sql.Tx, orgRef string) (*types.Organization, error)
- func (d *DB) GetOrgByID(tx *sql.Tx, orgID string) (*types.Organization, error)
- func (d *DB) GetOrgByName(tx *sql.Tx, name string) (*types.Organization, error)
- func (d *DB) GetOrgInvitationByOrgUserID(tx *sql.Tx, orgID, userID string) (*types.OrgInvitation, error)
- func (d *DB) GetOrgInvitationByUserID(tx *sql.Tx, userID string) ([]*types.OrgInvitation, error)
- func (d *DB) GetOrgInvitations(tx *sql.Tx, orgID string) ([]*types.OrgInvitation, error)
- func (d *DB) GetOrgMemberByOrgUserID(tx *sql.Tx, orgID, userID string) (*types.OrganizationMember, error)
- func (d *DB) GetOrgUsers(tx *sql.Tx, orgID string) ([]*OrgUser, error)
- func (d *DB) GetOrgs(tx *sql.Tx, startOrgName string, limit int, asc bool) ([]*types.Organization, error)
- func (d *DB) GetPath(tx *sql.Tx, objectKind types.ObjectKind, id string) (string, error)
- func (d *DB) GetProject(tx *sql.Tx, projectRef string) (*types.Project, error)
- func (d *DB) GetProjectByID(tx *sql.Tx, projectID string) (*types.Project, error)
- func (d *DB) GetProjectByName(tx *sql.Tx, parentID, name string) (*types.Project, error)
- func (d *DB) GetProjectByPath(tx *sql.Tx, projectPath string) (*types.Project, error)
- func (d *DB) GetProjectGroup(tx *sql.Tx, projectGroupRef string) (*types.ProjectGroup, error)
- func (d *DB) GetProjectGroupByID(tx *sql.Tx, projectGroupID string) (*types.ProjectGroup, error)
- func (d *DB) GetProjectGroupByName(tx *sql.Tx, parentID, name string) (*types.ProjectGroup, error)
- func (d *DB) GetProjectGroupByPath(tx *sql.Tx, projectGroupPath string) (*types.ProjectGroup, error)
- func (d *DB) GetProjectGroupHierarchy(tx *sql.Tx, projectGroup *types.ProjectGroup) ([]*Element, error)
- func (d *DB) GetProjectGroupOwnerID(tx *sql.Tx, group *types.ProjectGroup) (types.ObjectKind, string, error)
- func (d *DB) GetProjectGroupPath(tx *sql.Tx, group *types.ProjectGroup) (string, error)
- func (d *DB) GetProjectGroupProjects(tx *sql.Tx, parentID string) ([]*types.Project, error)
- func (d *DB) GetProjectGroupSubgroups(tx *sql.Tx, parentID string) ([]*types.ProjectGroup, error)
- func (d *DB) GetProjectOwnerID(tx *sql.Tx, project *types.Project) (types.ObjectKind, string, error)
- func (d *DB) GetProjectPath(tx *sql.Tx, project *types.Project) (string, error)
- func (d *DB) GetRemoteSource(tx *sql.Tx, rsRef string) (*types.RemoteSource, error)
- func (d *DB) GetRemoteSourceByID(tx *sql.Tx, remoteSourceID string) (*types.RemoteSource, error)
- func (d *DB) GetRemoteSourceByName(tx *sql.Tx, name string) (*types.RemoteSource, error)
- func (d *DB) GetRemoteSources(tx *sql.Tx, startRemoteSourceName string, limit int, asc bool) ([]*types.RemoteSource, error)
- func (d *DB) GetSecretByID(tx *sql.Tx, secretID string) (*types.Secret, error)
- func (d *DB) GetSecretByName(tx *sql.Tx, parentID, name string) (*types.Secret, error)
- func (d *DB) GetSecretTree(tx *sql.Tx, parentKind types.ObjectKind, parentID, name string) (*types.Secret, error)
- func (d *DB) GetSecrets(tx *sql.Tx, parentID string) ([]*types.Secret, error)
- func (d *DB) GetSecretsTree(tx *sql.Tx, parentKind types.ObjectKind, parentID string) ([]*types.Secret, error)
- func (d *DB) GetSequence(tx *sql.Tx, sequenceName string) (uint64, error)
- func (d *DB) GetUser(tx *sql.Tx, userRef string) (*types.User, error)
- func (d *DB) GetUserByID(tx *sql.Tx, userID string) (*types.User, error)
- func (d *DB) GetUserByLinkedAccount(tx *sql.Tx, linkedAccountID string) (*types.User, error)
- func (d *DB) GetUserByName(tx *sql.Tx, name string) (*types.User, error)
- func (d *DB) GetUserByTokenValue(tx *sql.Tx, tokenValue string) (*types.User, error)
- func (d *DB) GetUserLinkedAccounts(tx *sql.Tx, userID string) ([]*types.LinkedAccount, error)
- func (d *DB) GetUserOrgs(tx *sql.Tx, userID string) ([]*UserOrg, error)
- func (d *DB) GetUserToken(tx *sql.Tx, userID, tokenName string) (*types.UserToken, error)
- func (d *DB) GetUserTokens(tx *sql.Tx, userID string) ([]*types.UserToken, error)
- func (d *DB) GetUsers(tx *sql.Tx, startUserName string, limit int, asc bool) ([]*types.User, error)
- func (d *DB) GetVariableByID(tx *sql.Tx, variableID string) (*types.Variable, error)
- func (d *DB) GetVariableByName(tx *sql.Tx, parentID, name string) (*types.Variable, error)
- func (d *DB) GetVariables(tx *sql.Tx, parentID string) ([]*types.Variable, error)
- func (d *DB) GetVariablesTree(tx *sql.Tx, parentKind types.ObjectKind, parentID string) ([]*types.Variable, error)
- func (d *DB) InsertLinkedAccount(tx *sql.Tx, v *types.LinkedAccount) error
- func (d *DB) InsertOrUpdateLinkedAccount(tx *sql.Tx, v *types.LinkedAccount) error
- func (d *DB) InsertOrUpdateOrgInvitation(tx *sql.Tx, v *types.OrgInvitation) error
- func (d *DB) InsertOrUpdateOrganization(tx *sql.Tx, v *types.Organization) error
- func (d *DB) InsertOrUpdateOrganizationMember(tx *sql.Tx, v *types.OrganizationMember) error
- func (d *DB) InsertOrUpdateProject(tx *sql.Tx, v *types.Project) error
- func (d *DB) InsertOrUpdateProjectGroup(tx *sql.Tx, v *types.ProjectGroup) error
- func (d *DB) InsertOrUpdateRemoteSource(tx *sql.Tx, v *types.RemoteSource) error
- func (d *DB) InsertOrUpdateSecret(tx *sql.Tx, v *types.Secret) error
- func (d *DB) InsertOrUpdateUser(tx *sql.Tx, v *types.User) error
- func (d *DB) InsertOrUpdateUserToken(tx *sql.Tx, v *types.UserToken) error
- func (d *DB) InsertOrUpdateVariable(tx *sql.Tx, v *types.Variable) error
- func (d *DB) InsertOrgInvitation(tx *sql.Tx, v *types.OrgInvitation) error
- func (d *DB) InsertOrganization(tx *sql.Tx, v *types.Organization) error
- func (d *DB) InsertOrganizationMember(tx *sql.Tx, v *types.OrganizationMember) error
- func (d *DB) InsertProject(tx *sql.Tx, v *types.Project) error
- func (d *DB) InsertProjectGroup(tx *sql.Tx, v *types.ProjectGroup) error
- func (d *DB) InsertRawObject(tx *sql.Tx, obj sqlg.Object) error
- func (d *DB) InsertRemoteSource(tx *sql.Tx, v *types.RemoteSource) error
- func (d *DB) InsertSecret(tx *sql.Tx, v *types.Secret) error
- func (d *DB) InsertUser(tx *sql.Tx, v *types.User) error
- func (d *DB) InsertUserToken(tx *sql.Tx, v *types.UserToken) error
- func (d *DB) InsertVariable(tx *sql.Tx, v *types.Variable) error
- func (d *DB) LinkedAccountArray() []any
- func (d *DB) LinkedAccountFromArray(a []any, txID string) (*types.LinkedAccount, string, error)
- func (d *DB) MigrateFuncs() map[uint]sqlg.MigrateFunc
- func (d *DB) ObjectToExportJSON(obj sqlg.Object, e *json.Encoder) error
- func (d *DB) ObjectsInfo() []sqlg.ObjectInfo
- func (d *DB) OrgInvitationArray() []any
- func (d *DB) OrgInvitationFromArray(a []any, txID string) (*types.OrgInvitation, string, error)
- func (d *DB) OrganizationArray() []any
- func (d *DB) OrganizationFromArray(a []any, txID string) (*types.Organization, string, error)
- func (d *DB) OrganizationMemberArray() []any
- func (d *DB) OrganizationMemberFromArray(a []any, txID string) (*types.OrganizationMember, string, error)
- func (d *DB) PopulateSequences(tx *sql.Tx) error
- func (d *DB) ProjectArray() []any
- func (d *DB) ProjectFromArray(a []any, txID string) (*types.Project, string, error)
- func (d *DB) ProjectGroupArray() []any
- func (d *DB) ProjectGroupFromArray(a []any, txID string) (*types.ProjectGroup, string, error)
- func (d *DB) RemoteSourceArray() []any
- func (d *DB) RemoteSourceFromArray(a []any, txID string) (*types.RemoteSource, string, error)
- func (d *DB) SecretArray() []any
- func (d *DB) SecretFromArray(a []any, txID string) (*types.Secret, string, error)
- func (d *DB) SelectObject(kind string) *sq.SelectBuilder
- func (d *DB) Sequences() []sqlg.Sequence
- func (d *DB) UnmarshalExportObject(data []byte) (sqlg.Object, error)
- func (d *DB) UpdateLinkedAccount(tx *sql.Tx, v *types.LinkedAccount) error
- func (d *DB) UpdateOrgInvitation(tx *sql.Tx, v *types.OrgInvitation) error
- func (d *DB) UpdateOrganization(tx *sql.Tx, v *types.Organization) error
- func (d *DB) UpdateOrganizationMember(tx *sql.Tx, v *types.OrganizationMember) error
- func (d *DB) UpdateProject(tx *sql.Tx, v *types.Project) error
- func (d *DB) UpdateProjectGroup(tx *sql.Tx, v *types.ProjectGroup) error
- func (d *DB) UpdateRemoteSource(tx *sql.Tx, v *types.RemoteSource) error
- func (d *DB) UpdateSecret(tx *sql.Tx, v *types.Secret) error
- func (d *DB) UpdateUser(tx *sql.Tx, v *types.User) error
- func (d *DB) UpdateUserToken(tx *sql.Tx, v *types.UserToken) error
- func (d *DB) UpdateVariable(tx *sql.Tx, v *types.Variable) error
- func (d *DB) UserArray() []any
- func (d *DB) UserFromArray(a []any, txID string) (*types.User, string, error)
- func (d *DB) UserTokenArray() []any
- func (d *DB) UserTokenFromArray(a []any, txID string) (*types.UserToken, string, error)
- func (d *DB) VariableArray() []any
- func (d *DB) VariableFromArray(a []any, txID string) (*types.Variable, string, error)
- func (d *DB) Version() uint
- type Element
- type OrgUser
- type UserOrg
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 (*DB) DeleteOrganizationMember ¶
func (*DB) FetchObjects ¶
func (*DB) GetAllProjectGroups ¶
func (*DB) GetAllProjects ¶
Test only functions
func (*DB) GetLinkedAccount ¶
func (*DB) GetLinkedAccountByRemoteUserIDandSource ¶
func (*DB) GetLinkedAccounts ¶
func (*DB) GetOrgByID ¶
func (*DB) GetOrgByName ¶
func (*DB) GetOrgInvitationByOrgUserID ¶
func (*DB) GetOrgInvitationByUserID ¶
func (*DB) GetOrgInvitations ¶
func (*DB) GetOrgMemberByOrgUserID ¶
func (*DB) GetOrgUsers ¶
TODO(sgotti) implement cursor fetching
func (*DB) GetProject ¶
func (*DB) GetProjectByID ¶
func (*DB) GetProjectByName ¶
func (*DB) GetProjectByPath ¶
func (*DB) GetProjectGroup ¶
func (*DB) GetProjectGroupByID ¶
func (*DB) GetProjectGroupByName ¶
func (*DB) GetProjectGroupByPath ¶
func (*DB) GetProjectGroupHierarchy ¶
func (*DB) GetProjectGroupOwnerID ¶
func (d *DB) GetProjectGroupOwnerID(tx *sql.Tx, group *types.ProjectGroup) (types.ObjectKind, string, error)
func (*DB) GetProjectGroupPath ¶
func (*DB) GetProjectGroupProjects ¶
func (*DB) GetProjectGroupSubgroups ¶
func (*DB) GetProjectOwnerID ¶
func (*DB) GetProjectPath ¶
func (*DB) GetRemoteSource ¶
func (*DB) GetRemoteSourceByID ¶
func (*DB) GetRemoteSourceByName ¶
func (*DB) GetRemoteSources ¶
func (*DB) GetSecretByID ¶
func (*DB) GetSecretByName ¶
func (*DB) GetSecretTree ¶
func (*DB) GetSecrets ¶
func (*DB) GetSecretsTree ¶
func (*DB) GetUserByLinkedAccount ¶
func (*DB) GetUserByTokenValue ¶
func (*DB) GetUserLinkedAccounts ¶
func (*DB) GetUserOrgs ¶
TODO(sgotti) implement cursor fetching
func (*DB) GetUserToken ¶
func (*DB) GetUserTokens ¶
func (*DB) GetVariableByID ¶
func (*DB) GetVariableByName ¶
func (*DB) GetVariables ¶
func (*DB) GetVariablesTree ¶
func (*DB) InsertLinkedAccount ¶
func (*DB) InsertOrUpdateLinkedAccount ¶
func (*DB) InsertOrUpdateOrgInvitation ¶
func (*DB) InsertOrUpdateOrganization ¶
func (*DB) InsertOrUpdateOrganizationMember ¶
func (*DB) InsertOrUpdateProject ¶
func (*DB) InsertOrUpdateProjectGroup ¶
func (*DB) InsertOrUpdateRemoteSource ¶
func (*DB) InsertOrUpdateSecret ¶
func (*DB) InsertOrUpdateUserToken ¶
func (*DB) InsertOrUpdateVariable ¶
func (*DB) InsertOrgInvitation ¶
func (*DB) InsertOrganization ¶
func (*DB) InsertOrganizationMember ¶
func (*DB) InsertProjectGroup ¶
func (*DB) InsertRemoteSource ¶
func (*DB) LinkedAccountArray ¶
func (*DB) LinkedAccountFromArray ¶
func (*DB) MigrateFuncs ¶
func (d *DB) MigrateFuncs() map[uint]sqlg.MigrateFunc
func (*DB) ObjectToExportJSON ¶
func (*DB) ObjectsInfo ¶
func (d *DB) ObjectsInfo() []sqlg.ObjectInfo
func (*DB) OrgInvitationArray ¶
func (*DB) OrgInvitationFromArray ¶
func (*DB) OrganizationArray ¶
func (*DB) OrganizationFromArray ¶
func (*DB) OrganizationMemberArray ¶
func (*DB) OrganizationMemberFromArray ¶
func (*DB) ProjectArray ¶
func (*DB) ProjectFromArray ¶
func (*DB) ProjectGroupArray ¶
func (*DB) ProjectGroupFromArray ¶
func (*DB) RemoteSourceArray ¶
func (*DB) RemoteSourceFromArray ¶
func (*DB) SecretArray ¶
func (*DB) SecretFromArray ¶
func (*DB) SelectObject ¶
func (d *DB) SelectObject(kind string) *sq.SelectBuilder
func (*DB) UnmarshalExportObject ¶
func (*DB) UpdateLinkedAccount ¶
func (*DB) UpdateOrgInvitation ¶
func (*DB) UpdateOrganization ¶
func (*DB) UpdateOrganizationMember ¶
func (*DB) UpdateProjectGroup ¶
func (*DB) UpdateRemoteSource ¶
func (*DB) UserFromArray ¶
func (*DB) UserTokenArray ¶
func (*DB) UserTokenFromArray ¶
func (*DB) VariableArray ¶
func (*DB) VariableFromArray ¶
type Element ¶
type Element struct { ID string Name string Kind types.ObjectKind ParentKind types.ObjectKind ParentID string }
type UserOrg ¶
type UserOrg struct { Organization *types.Organization Role types.MemberRole }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.