Documentation ¶
Index ¶
- Constants
- type ResourceOptions
- type ResourceSpec
- type ResourceSpecHandler
- func (*ResourceSpecHandler) Decode(data []byte) (addhdlrs.ElementSpec, error)
- func (*ResourceSpecHandler) Key() string
- func (*ResourceSpecHandler) RequireInputs() bool
- func (h *ResourceSpecHandler) Set(v ocm.ComponentVersionAccess, r addhdlrs.Element, acc compdesc.AccessSpec) error
- func (h *ResourceSpecHandler) WithCLIOptions(opts ...options.Options) *ResourceSpecHandler
Constants ¶
View Source
const (
ComponentVersionTag = common.ComponentVersionTag
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceOptions ¶
type ResourceOptions struct { // SkipDigestGeneration omits the digest generation. SkipDigestGeneration bool `json:"skipDigestGeneration,omitempty"` }
ResourceOptions describes additional process related options which reflect the handling of the resource without describing it directly. Typical examples are any options that require specific changes in handling of the resource but are not reflected in the resource itself (outside of side effects)
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"` // SourceRefs defines a list of source names. // These entries reference the sources defined in the // component.sources. SourceRefs []compdescv2.SourceRef `json:"srcRefs"` addhdlrs.ResourceInput `json:",inline"` // Options describes additional process related options // see ResourceOptions for more details. Options ResourceOptions `json:"options,omitempty"` }
func (*ResourceSpec) GetRawIdentity ¶
func (r *ResourceSpec) GetRawIdentity() metav1.Identity
func (*ResourceSpec) GetType ¶
func (r *ResourceSpec) GetType() string
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 { addhdlrs.ResourceSpecHandlerBase // contains filtered or unexported fields }
func New ¶
func New(opts ...ocm.ModificationOption) *ResourceSpecHandler
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 (h *ResourceSpecHandler) Set(v ocm.ComponentVersionAccess, r addhdlrs.Element, acc compdesc.AccessSpec) error
func (*ResourceSpecHandler) WithCLIOptions ¶
func (h *ResourceSpecHandler) WithCLIOptions(opts ...options.Options) *ResourceSpecHandler
Click to show internal directories.
Click to hide internal directories.