MCPcopy Create free account
hub / github.com/devfile/api / Component

Struct Component

pkg/apis/workspaces/v1alpha2/components.go:45–59  ·  view source on GitHub ↗

+k8s:openapi-gen=true

Source from the content-addressed store, hash-verified

43
44// +k8s:openapi-gen=true
45type Component struct {
46 // Mandatory name that allows referencing the component
47 // from other elements (such as commands) or from an external
48 // devfile that may reference this component through a parent or a plugin.
49 // +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
50 // +kubebuilder:validation:MaxLength=63
51 Name string `json:"name"`
52 // Map of implementation-dependant free-form YAML attributes.
53 // +optional
54 // +kubebuilder:validation:Type=object
55 // +kubebuilder:pruning:PreserveUnknownFields
56 // +kubebuilder:validation:Schemaless
57 Attributes attributes.Attributes `json:"attributes,omitempty"`
58 ComponentUnion `json:",inline"`
59}
60
61// +union
62type ComponentUnion struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected