comp

package
v0.2.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentVersionTag = "<componentversion>"
)

Variables

This section is empty.

Functions

func ProcessComponents

func ProcessComponents(ctx clictx.Context, ictx inputs.Context, repo ocm.Repository, h *ResourceSpecHandler, elems []addhdlrs.Element) error

Types

type ResourceSpec

type ResourceSpec struct {
	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 NewResourceSpecHandler

func NewResourceSpecHandler(v string) *ResourceSpecHandler

func (*ResourceSpecHandler) Add

func (*ResourceSpecHandler) Add(ctx clictx.Context, ictx inputs.Context, elem addhdlrs.Element, repo ocm.Repository) (err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL