rscs

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentVersionTag = common.ComponentVersionTag
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceSpec

type ResourceSpec struct {
	compdescv2.ElementMeta `json:",inline"`

	// Type describes the type of the object.
	Type string `json:"type"`

	// Relation describes the relation of the resource to the component.
	// Can be a local or external resource
	Relation metav1.ResourceRelation `json:"relation,omitempty"`

	// SourceRefs defines a list of source names.
	// These entries reference the sources defined in the
	// component.sources.
	SourceRefs []compdescv2.SourceRef `json:"srcRefs"`

	addhdlrs.ResourceInput `json:",inline"`
}

func (*ResourceSpec) GetRawIdentity added in v0.5.0

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 added in v0.4.1

func (*ResourceSpecHandler) AddFlags added in v0.4.1

func (h *ResourceSpecHandler) AddFlags(opts *pflag.FlagSet)

func (ResourceSpecHandler) Decode

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