-
Notifications
You must be signed in to change notification settings - Fork 19
/
doc.go
16 lines (16 loc) · 1006 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Package lang provides core constructs for describing Aptomi policy, as well as core structures for processing policy.
//
// Let's start with policy objects.
// Cluster - individual cluster where containers get deployed (e.g. k8s cluster).
// Contract - contract for a service (e.g. database).
// Context - a set of contexts, defining how contract can be fulfilled (e.g. MariaDB, MySQL, SQLite).
// Service - specific service implementation (set of containers to run, and dependencies on other services).
// Dependency - service use declaration, which triggers instantiation of a service .
// Rule - rules which constitute policy, allowing to change labels and perform actions during policy resolution.
// ACLRule - rules which define user roles for accessing Aptomi namespaces.
//
// Now, core structures:
// LabelSet - set of labels that get processed and transformed
// LabelOperations - how to transform labels
// Criteria - bool-based lists of expressions for defining complex criteria
package lang