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
- func (h *ResourceSpecHandler) WithCLIOptions(opts ...options.Options) *ResourceSpecHandler
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:"references"` // OldReferences references component dependencies that can be resolved in the current context. // Deprecated: use field References. OldReferences []*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) GetRawIdentity ¶
func (r *ResourceSpec) GetRawIdentity() metav1.Identity
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 ¶
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 ¶
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
func (*ResourceSpecHandler) WithCLIOptions ¶
func (h *ResourceSpecHandler) WithCLIOptions(opts ...options.Options) *ResourceSpecHandler
Click to show internal directories.
Click to hide internal directories.