...
Code Block | ||
---|---|---|
| ||
createNamespace(logicalCloudName Namespace string) error //Stores the namespace for the logical cloud in the database
createUser(user logicalCloudName string permissions []map[string]map[string][]string) error //Stores the user details for the logical cloud in the database
createKVpair(name description string userData map[string]string kvPair []map[string]string) error //Stores a new key value pair in the database
addCluster(cluster logicalCloudName string) error //Associates a new cluster with the logical cloud
applyConfig(logicalCloudName string) error //Talks to the Resource Synchronizer to start the actual creation of all the resources for the logical cloud
getKVPair(name string) ([]map[string]string error)
getClusterConfig(cluster logicalCloudName string) // Add return type
getNamespace(logicalCloudName string) (string error)
getUser(logicalCloudName string) (string error)
getClusters(logicalCloudName string) ([]string error)
getUserPermissions(user string) (([]map[string]map[string][]string) error) //Sample output [{"permission-1": {"apiGroups": ["stable.example.com"], "resources" : ["secrets", "pods"], "verbs" : ["get", "watch", "list", "create"] }},
{"permission-2": {"apiGroups": [""], "resources" : ["configmaps"], "verbs" : ["*"] }}]
|
...