comp

package
v0.19.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 26 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:"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 (*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) AsOptionSet

func (h *ResourceSpecHandler) AsOptionSet() options.OptionSet

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) WithCLIOptions

func (h *ResourceSpecHandler) WithCLIOptions(opts ...options.Options) *ResourceSpecHandler

Jump to

Keyboard shortcuts

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