Documentation
¶
Index ¶
- Constants
- func ProcessComponents(ctx clictx.Context, ictx inputs.Context, repo ocm.Repository, ...) (err error)
- type ResourceSpec
- type ResourceSpecHandler
- func (h *ResourceSpecHandler) Add(ctx clictx.Context, ictx inputs.Context, elem addhdlrs.Element, ...) (err error)
- func (h *ResourceSpecHandler) AddFlags(fs *pflag.FlagSet)
- func (h *ResourceSpecHandler) Decode(data []byte) (addhdlrs.ElementSpec, error)
- func (*ResourceSpecHandler) Key() string
- func (*ResourceSpecHandler) RequireInputs() bool
- func (*ResourceSpecHandler) Set(v ocm.ComponentVersionAccess, r addhdlrs.Element, acc compdesc.AccessSpec) error
Constants ¶
View Source
const (
ComponentVersionTag = common.ComponentVersionTag
)
Variables ¶
This section is empty.
Functions ¶
func ProcessComponents ¶
func ProcessComponents(ctx clictx.Context, ictx inputs.Context, repo ocm.Repository, complete ocm.ComponentVersionResolver, thdlr transferhandler.TransferHandler, h *ResourceSpecHandler, elems []addhdlrs.Element) (err error)
Types ¶
type ResourceSpec ¶
type ResourceSpec struct { // Meta enabled to specify information for the serialization Meta compdesc.Metadata `json:"meta"` metav1.ObjectMeta `json:",inline"` // Sources defines sources that produced the component Sources []*srcs.ResourceSpec `json:"sources"` // References references component dependencies that can be resolved in the current context. References []*refs.ResourceSpec `json:"componentReferences"` // Resources defines all resources that are created by the component and by a third party. Resources []*rscs.ResourceSpec `json:"resources"` }
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 {
// contains filtered or unexported fields
}
func New ¶ added in v0.4.1
func New(v string, schema string, opts ...ocm.ModificationOption) *ResourceSpecHandler
func (*ResourceSpecHandler) Add ¶
func (h *ResourceSpecHandler) Add(ctx clictx.Context, ictx inputs.Context, elem addhdlrs.Element, repo ocm.Repository) (err error)
func (*ResourceSpecHandler) AddFlags ¶ added in v0.4.1
func (h *ResourceSpecHandler) AddFlags(fs *pflag.FlagSet)
func (*ResourceSpecHandler) Decode ¶
func (h *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.