Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct { // ID is the unique key of this resource in the whole State. // ApiVersion:Kind:Namespace:Name is an idiomatic way for Kubernetes resources. ID string `json:"id" yaml:"id"` // Type represents all Runtimes we supported Type Type `json:"type" yaml:"type"` // Attributes represents all specified attributes of this resource Attributes map[string]interface{} `json:"attributes" yaml:"attributes"` // DependsOn contains all resources this resource depends on DependsOn []string `json:"dependsOn,omitempty" yaml:"dependsOn,omitempty"` // Extensions specifies arbitrary metadata of this resource Extensions map[string]interface{} `json:"extensions,omitempty" yaml:"extensions,omitempty"` }
func (*Resource) ResourceKey ¶
type Spec ¶
type Spec struct {
Resources Resources `json:"resources" yaml:"resources"`
}
Spec represents desired state of resources in one stack and will be applied to the actual infrastructure by the Kusion Engine
func (*Spec) ParseCluster ¶ added in v0.6.2
ParseCluster try to parse Cluster from resource extensions. All resources in one compile MUST have the same Cluster and this constraint will be guaranteed by KCL compile logic
Click to show internal directories.
Click to hide internal directories.