Documentation ¶
Index ¶
Constants ¶
View Source
const (
ComponentVersionTag = "<componentversion>"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceSpec ¶
type ResourceSpec struct { compdescv2.ElementMeta `json:",inline"` // Type describes the type of the object. Type string `json:"type"` // Relation describes the relation of the resource to the component. // Can be a local or external resource Relation metav1.ResourceRelation `json:"relation,omitempty"` // SourceRef defines a list of source names. // These names reference the sources defines in `component.sources`. SourceRef []compdescv2.SourceRef `json:"srcRef"` addhdlrs.ResourceInput `json:",inline"` }
func (*ResourceSpec) Info ¶
func (r *ResourceSpec) Info() string
func (*ResourceSpec) Validate ¶
func (r *ResourceSpec) Validate(ctx clictx.Context, input *addhdlrs.ResourceInput) error
type ResourceSpecHandler ¶
type ResourceSpecHandler struct{}
func (ResourceSpecHandler) Decode ¶
func (ResourceSpecHandler) Decode(data []byte) (addhdlrs.ElementSpec, error)
func (ResourceSpecHandler) Key ¶
func (ResourceSpecHandler) Key() string
func (ResourceSpecHandler) RequireInputs ¶
func (ResourceSpecHandler) RequireInputs() bool
func (ResourceSpecHandler) Set ¶
func (ResourceSpecHandler) Set(v ocm.ComponentVersionAccess, r addhdlrs.Element, acc compdesc.AccessSpec) error
Click to show internal directories.
Click to hide internal directories.