Documentation
¶
Index ¶
Constants ¶
View Source
const ActivateUser = `
UPDATE inventory.users
SET user_is_active = 'yes'::boolean
WHERE user_id = $1::uuid;`
View Source
const AddPermission = `` /* 338-byte string literal not displayed */
View Source
const AddPermissionCategory = `` /* 255-byte string literal not displayed */
View Source
const AddServers = `` /* 443-byte string literal not displayed */
View Source
const BucketCstProps = `` /* 303-byte string literal not displayed */
View Source
const BucketCustomPropertyForDelete = `` /* 367-byte string literal not displayed */
View Source
const BucketOncProps = `` /* 283-byte string literal not displayed */
View Source
const BucketOncallPropertyForDelete = `` /* 337-byte string literal not displayed */
View Source
const BucketServicePropertyForDelete = `` /* 342-byte string literal not displayed */
View Source
const BucketSvcProps = `` /* 169-byte string literal not displayed */
View Source
const BucketSysProps = `` /* 184-byte string literal not displayed */
View Source
const BucketSystemPropertyForDelete = `` /* 165-byte string literal not displayed */
View Source
const CheckDetailsForDelete = `` /* 356-byte string literal not displayed */
View Source
const CheckUserActive = `
SELECT user_is_active
FROM inventory.users
WHERE user_id = $1::uuid
AND NOT user_is_deleted;`
View Source
const ClusterBucketId = `
SELECT sc.bucket_id
FROM soma.clusters sc
WHERE sc.cluster_id = $1;`
View Source
const ClusterCstProps = `` /* 305-byte string literal not displayed */
View Source
const ClusterCustomPropertyForDelete = `` /* 368-byte string literal not displayed */
View Source
const ClusterOncProps = `` /* 285-byte string literal not displayed */
View Source
const ClusterOncallPropertyForDelete = `` /* 338-byte string literal not displayed */
View Source
const ClusterServicePropertyForDelete = `` /* 343-byte string literal not displayed */
View Source
const ClusterSvcProps = `` /* 171-byte string literal not displayed */
View Source
const ClusterSysProps = `` /* 186-byte string literal not displayed */
View Source
const ClusterSystemPropertyForDelete = `` /* 166-byte string literal not displayed */
View Source
const DeletePermission = `
DELETE FROM soma.permissions
WHERE permission_id = $1::uuid;`
View Source
const DeletePermissionCategory = `
DELETE FROM soma.permission_types
WHERE permission_type = $1::varchar;`
View Source
const DeleteServers = `` /* 196-byte string literal not displayed */
View Source
const FindUserID = `
SELECT user_id
FROM inventory.users
WHERE user_uid = $1::varchar
AND NOT user_is_deleted;`
View Source
const ForestAddRepository = `` /* 563-byte string literal not displayed */
View Source
const ForestLoadRepository = `` /* 155-byte string literal not displayed */
View Source
const ForestRebuildDeleteChecks = `
UPDATE soma.checks sc
SET deleted = 'yes'::boolean
WHERE sc.repository_id = $1::uuid;`
View Source
const ForestRebuildDeleteInstances = `` /* 156-byte string literal not displayed */
View Source
const ForestRepoNameById = `
SELECT repository_name,
organizational_team_id
FROM soma.repositories
WHERE repository_id = $1::uuid;`
View Source
const GrantGlobalOrSystemToUser = `` /* 209-byte string literal not displayed */
View Source
const GrantLimitedRepoToUser = `` /* 210-byte string literal not displayed */
View Source
const GroupBucketId = `
SELECT sg.bucket_id
FROM soma.groups sg
WHERE sg.group_id = $1;`
View Source
const GroupCstProps = `` /* 301-byte string literal not displayed */
View Source
const GroupCustomPropertyForDelete = `` /* 366-byte string literal not displayed */
View Source
const GroupOncProps = `` /* 281-byte string literal not displayed */
View Source
const GroupOncallPropertyForDelete = `` /* 336-byte string literal not displayed */
View Source
const GroupServicePropertyForDelete = `` /* 341-byte string literal not displayed */
View Source
const GroupSvcProps = `` /* 167-byte string literal not displayed */
View Source
const GroupSysProps = `` /* 182-byte string literal not displayed */
View Source
const GroupSystemPropertyForDelete = `` /* 164-byte string literal not displayed */
View Source
const InsertToken = `` /* 168-byte string literal not displayed */
insert a new token into the database
View Source
const InvalidateUserCredential = `` /* 325-byte string literal not displayed */
View Source
const JobResultForId = `` /* 290-byte string literal not displayed */
View Source
const JobResultsForList = `` /* 297-byte string literal not displayed */
View Source
const ListAllCapabilities = `` /* 274-byte string literal not displayed */
View Source
const ListAllMonitoringSystems = `
SELECT monitoring_id,
monitoring_name
FROM soma.monitoring_systems;`
View Source
const ListAllOutstandingJobs = `
SELECT job_id,
job_type
FROM soma.jobs
WHERE job_status != 'processed';`
View Source
const ListAllRepositories = `
SELECT repository_id,
repository_name
FROM soma.repositories;`
View Source
const ListNodes = `
SELECT node_id,
node_name
FROM soma.nodes
WHERE node_online;`
View Source
const ListPermission = `
SELECT permission_id,
permission_name
FROM soma.permissions;`
View Source
const ListPermissionCategory = `
SELECT spt.permission_type
FROM soma.permission_types spt;`
View Source
const ListScopedCapabilities = `` /* 832-byte string literal not displayed */
View Source
const ListScopedMonitoringSystems = `` /* 743-byte string literal not displayed */
View Source
const ListScopedOutstandingJobs = `` /* 436-byte string literal not displayed */
View Source
const ListScopedRepositories = `` /* 932-byte string literal not displayed */
View Source
const ListServers = `` /* 202-byte string literal not displayed */
View Source
const ListTeams = `
SELECT organizational_team_id,
organizational_team_name
FROM inventory.organizational_teams;`
View Source
const ListUsers = `
SELECT user_id,
user_uid
FROM inventory.users;`
View Source
const LoadAllTokens = `
SELECT token,
salt,
valid_from,
valid_until
FROM auth.tokens
WHERE NOW() < valid_until;`
startup loading all tokens
View Source
const LoadAllUserCredentials = `` /* 377-byte string literal not displayed */
View Source
const LoadGlobalOrSystemUserGrants = `
SELECT grant_id,
user_id,
permission_id
FROM soma.authorizations_global;`
View Source
const LoadPermissions = `
SELECT permission_id,
permission_name
FROM soma.permissions;`
View Source
const LoadRootFlags = `
SELECT flag,
status
FROM root.flags;`
'restricted' => true|false 'disabled' => true|false
View Source
const LoadRootPassword = `` /* 363-byte string literal not displayed */
View Source
const LoadUserTeamMapping = `` /* 240-byte string literal not displayed */
View Source
const NodeBucketId = `
SELECT snba.bucket_id
FROM soma.node_bucket_assignment snba
WHERE snba.node_id = $1;`
View Source
const NodeCstProps = `` /* 299-byte string literal not displayed */
View Source
const NodeCustomPropertyForDelete = `` /* 365-byte string literal not displayed */
View Source
const NodeOncProps = `` /* 277-byte string literal not displayed */
View Source
const NodeOncallPropertyForDelete = `` /* 333-byte string literal not displayed */
View Source
const NodeServicePropertyForDelete = `` /* 340-byte string literal not displayed */
View Source
const NodeSvcProps = `` /* 165-byte string literal not displayed */
View Source
const NodeSysProps = `` /* 180-byte string literal not displayed */
View Source
const NodeSystemPropertyForDelete = `` /* 198-byte string literal not displayed */
View Source
const PurgeServers = `` /* 146-byte string literal not displayed */
View Source
const RepoCstProps = `` /* 311-byte string literal not displayed */
View Source
const RepoCustomPropertyForDelete = `` /* 356-byte string literal not displayed */
View Source
const RepoOncProps = `` /* 291-byte string literal not displayed */
View Source
const RepoOncallPropertyForDelete = `` /* 326-byte string literal not displayed */
View Source
const RepoServicePropertyForDelete = `` /* 331-byte string literal not displayed */
View Source
const RepoSvcProps = `` /* 177-byte string literal not displayed */
View Source
const RepoSysProps = `` /* 192-byte string literal not displayed */
View Source
const RepoSystemPropertyForDelete = `` /* 169-byte string literal not displayed */
View Source
const RevokeGlobalOrSystemFromUser = `
DELETE FROM soma.authorizations_global
WHERE grant_id = $1::uuid;`
View Source
const RevokeLimitedRepoFromUser = `
DELETE FROM soma.authorizations_repository
WHERE grant_id = $1::uuid;`
View Source
const SearchGlobalSystemGrant = `` /* 208-byte string literal not displayed */
View Source
const SearchPermissionByName = `
SELECT permission_id,
permission_name
FROM soma.permissions
WHERE permission_name = $1::varchar;`
View Source
const SearchServerByAssetId = `` /* 233-byte string literal not displayed */
View Source
const SearchServerByName = `` /* 229-byte string literal not displayed */
View Source
const SelectRootToken = `
SELECT token
FROM root.token;`
the bootstrap token to initialize the system
View Source
const SelectToken = `
SELECT salt,
valid_from,
valid_until
FROM auth.tokens
WHERE token = $1::varchar;`
lookup a specific token (readonly instances)
View Source
const SetRootCredentials = `` /* 304-byte string literal not displayed */
View Source
const SetUserCredential = `` /* 287-byte string literal not displayed */
View Source
const ShowCapability = `` /* 339-byte string literal not displayed */
View Source
const ShowConfigNodes = `` /* 315-byte string literal not displayed */
View Source
const ShowMonitoringSystem = `` /* 229-byte string literal not displayed */
View Source
const ShowNodes = `` /* 205-byte string literal not displayed */
View Source
const ShowPermission = `` /* 245-byte string literal not displayed */
View Source
const ShowPermissionCategory = `` /* 206-byte string literal not displayed */
View Source
const ShowRepository = `` /* 184-byte string literal not displayed */
View Source
const ShowServers = `` /* 226-byte string literal not displayed */
View Source
const ShowTeams = `` /* 208-byte string literal not displayed */
View Source
const ShowUsers = `` /* 285-byte string literal not displayed */
View Source
const SyncNodes = `` /* 164-byte string literal not displayed */
View Source
const SyncServers = `` /* 263-byte string literal not displayed */
View Source
const SyncTeams = `` /* 211-byte string literal not displayed */
View Source
const SyncUsers = `` /* 239-byte string literal not displayed */
View Source
const TreeBucketsInRepository = `
SELECT bucket_id
FROM soma.buckets
WHERE repository_id = $1::uuid;`
View Source
const TreeClustersInBucket = `
SELECT cluster_id
FROM soma.clusters
WHERE bucket_id = $1::uuid
AND object_state = 'standalone';`
View Source
const TreeClustersInGroup = `
SELECT sgmc.child_cluster_id
FROM soma.group_membership_clusters sgmc
WHERE sgmc.group_id = $1::uuid;`
clustersingroup
View Source
const TreeGroupsInBucket = `
SELECT group_id
FROM soma.groups
WHERE bucket_id = $1::uuid
AND object_state = 'standalone';`
View Source
const TreeGroupsInGroup = `
SELECT sgmg.child_group_id
FROM soma.group_membership_groups sgmg
WHERE sgmg.group_id = $1::uuid;`
groupsingroup
View Source
const TreeNodesInBucket = `` /* 186-byte string literal not displayed */
View Source
const TreeNodesInCluster = `
SELECT scm.node_id
FROM soma.cluster_membership scm
WHERE scm.cluster_id = $1::uuid;`
nodesincluster
View Source
const TreeNodesInGroup = `
SELECT sgmn.child_node_id
FROM soma.group_membership_nodes sgmn
WHERE sgmn.group_id = $1::uuid;`
nodesingroup
View Source
const TreeShowBucket = `` /* 203-byte string literal not displayed */
View Source
const TreeShowCluster = `` /* 191-byte string literal not displayed */
View Source
const TreeShowGroup = `` /* 185-byte string literal not displayed */
View Source
const TreeShowNode = `` /* 486-byte string literal not displayed */
View Source
const TreeShowRepository = `` /* 194-byte string literal not displayed */
View Source
const TxDeleteCheckDetails = `` /* 334-byte string literal not displayed */
View Source
const TxMarkCheckConfigDeleted = `
UPDATE soma.check_configurations
SET deleted = 'yes'::boolean
WHERE configuration_id = $1::uuid;`
View Source
const TxMarkCheckDeleted = `
UPDATE soma.checks
SET deleted = 'yes'::boolean
WHERE check_id = $1::uuid;`
View Source
const TxMarkCheckInstanceDeleted = `
UPDATE soma.check_instances
SET deleted = 'yes'::boolean
WHERE check_instance_id = $1::uuid;`
View Source
const UpdateServers = `` /* 292-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Source Files
¶
- bucket.go
- capabilities.go
- checks.go
- cluster.go
- forest_custodian.go
- group.go
- jobs.go
- monitoring_systems.go
- nodes.go
- repository.go
- servers.go
- supervisor_credentials.go
- supervisor_grant.go
- supervisor_inventory.go
- supervisor_permission.go
- supervisor_root.go
- supervisor_token.go
- teams.go
- tree.go
- treekeeper_tx.go
- users.go
Click to show internal directories.
Click to hide internal directories.