...
GO API
Code Block | ||
---|---|---|
| ||
putNamespacecreateNamespace(logicalCloudName Namespace string) error //Stores the namespace for the logical cloud in the database putUsercreateUser(user logicalCloudName string permissions []map[string]map[string][]string) error //Stores the user details for the logical cloud in the database getNamespace(logicalCloudName string) string error getUser(logicalCloudName string) string error getClusters(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) []string error getUserPermissions(user string)error //Associates a new cluster with 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" : ["*"] }}] |
REST API
1. Create Logical Cloud
...