almost empty
This commit is contained in:
16
schema/pkl/PklProject
Normal file
16
schema/pkl/PklProject
Normal file
@@ -0,0 +1,16 @@
|
||||
amends "pkl:Project"
|
||||
|
||||
// Package configuration for local development.
|
||||
// Update baseUri and packageZipUrl when publishing to a registry.
|
||||
package {
|
||||
name = "proxmox"
|
||||
baseUri = "package://localhost/plugins/example/schema/pkl/example"
|
||||
version = "0.1.0"
|
||||
packageZipUrl = "https://localhost/plugins/example/schema/pkl/example@\(version).zip"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
["formae"] {
|
||||
uri = "package://hub.platform.engineering/plugins/pkl/schema/pkl/formae/formae@0.80.1"
|
||||
}
|
||||
}
|
||||
21
schema/pkl/proxmox.pkl
Normal file
21
schema/pkl/proxmox.pkl
Normal file
@@ -0,0 +1,21 @@
|
||||
module proxmox.lxc
|
||||
|
||||
import "@formae/formae.pkl"
|
||||
|
||||
@formae.ResourceHint {
|
||||
type = "PROXMOX::Service::LXC"
|
||||
identifier = "$.vmid"
|
||||
}
|
||||
class ExampleResource extends formae.Resource {
|
||||
fixed hidden type: String = "PROXMOX::Service::LXC"
|
||||
|
||||
@formae.FieldHint { createOnly = true }
|
||||
vmid: String
|
||||
|
||||
@formae.FieldHint {}
|
||||
name: String
|
||||
|
||||
@formae.FieldHint {}
|
||||
description: String = "No description"
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user