package
0.0.0-20250307045944-cf6c03992e2e
Repository: https://github.com/sapcc/limes.git
Documentation: pkg.go.dev
# Functions
BuildSimpleWhereClause constructs a WHERE clause of the form "field1 = val1 AND field2 = val2 AND field3 IN (val3, val4)".
CompareResourceRefs is a compare function for ResourceRef (for use with slices.SortFunc etc.).
Configuration returns the easypg.Configuration object that func Init() needs to initialize the DB connection.
Init initializes the connection to the database.
InitORM wraps a database connection into a gorp.DbMap instance.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
ClusterAZResource contains a record from the `cluster_az_resources` table.
ClusterCapacitor contains a record from the `cluster_capacitors` table.
ClusterResource contains a record from the `cluster_resources` table.
ClusterService contains a record from the `cluster_services` table.
CommitmentWorkflowContext is the type definition for the JSON payload in the CreationContextJSON and SupersedeContextJSON fields of type ProjectCommitment.
Domain contains a record from the `domains` table.
No description provided by the author
Project contains a record from the `projects` table.
ProjectAZResource contains a record from the `project_az_resources` table.
ProjectCommitment contains a record from the `project_commitments` table.
ProjectRate contains a record from the `project_rates` table.
ProjectResource contains a record from the `project_resources` table.
ProjectService contains a record from the `project_services` table.
ResourceRef identifies an individual ProjectResource, DomainResource or ClusterResource.
ServiceRef identifies an individual ProjectService, DomainService or ClusterService.
SetUpdate describes an operation where we have an existing set of records (type R), and a set of records that we want to have, as identified by some key (type K).
# Interfaces
Interface provides the common methods that both SQL connections and transactions implement.
# Type aliases
ClusterAZResourceID is an ID into the cluster_az_resources table.
ClusterResourceID is an ID into the cluster_resources table.
ClusterServiceID is an ID into the cluster_services table.
CommitmentReason is an enum.
CommitmentState is an enum.
DomainID is an ID into the domains table.
ProjectAZResourceID is an ID into the project_az_resources table.
ProjectCommitmentID is an ID into the project_commitments table.
ProjectID is an ID into the projects table.
ProjectResourceID is an ID into the project_resources table.
ProjectServiceID is an ID into the project_services table.
ServiceType identifies a backend service that can have resources or rates.