mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Schema: Add basic folder schema (#67561)
This commit is contained in:
30
kinds/folder/folder_kind.cue
Normal file
30
kinds/folder/folder_kind.cue
Normal file
@@ -0,0 +1,30 @@
|
||||
package kind
|
||||
|
||||
name: "Folder"
|
||||
maturity: "merged"
|
||||
description: "A folder is a collection of resources that are grouped together and can share permissions."
|
||||
|
||||
lineage: seqs: [
|
||||
{
|
||||
schemas: [
|
||||
//0.0
|
||||
{
|
||||
|
||||
spec: {
|
||||
// Unique folder id. (will be k8s name)
|
||||
uid: string
|
||||
|
||||
// Folder title
|
||||
title: string
|
||||
|
||||
// Description of the folder.
|
||||
description?: string
|
||||
} @cuetsy(kind="interface")
|
||||
//
|
||||
// TODO:
|
||||
// common metadata will soon support setting the parent folder in the metadata
|
||||
//
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
Reference in New Issue
Block a user