comp

package
v2.0.0-...-98cc131 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentVersionTag = common.ComponentVersionTag
)

Variables

This section is empty.

Functions

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 NewResourceSpecHandler

func NewResourceSpecHandler(v string, schema string) *ResourceSpecHandler

func (*ResourceSpecHandler) Add

func (h *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