Documentation
¶
Index ¶
Constants ¶
View Source
const (
ComponentVersionTag = "<componentversion>"
)
Variables ¶
View Source
var ( Names = names.Resources Verb = verbs.Add )
Functions ¶
func NewCommand ¶
NewCommand creates a new ctf command.
func NewResourceSpecificationsProvider ¶
func NewResourceSpecificationsProvider(ctx clictx.Context, deftype string) common.ResourceSpecificationsProvider
Types ¶
type Command ¶
type Command struct {
common.ResourceAdderCommand
}
type ResourceSpec ¶
type ResourceSpec struct {
compdescv2.Resource `json:",inline"`
}
func (*ResourceSpec) Info ¶
func (r *ResourceSpec) Info() string
func (*ResourceSpec) Validate ¶
func (r *ResourceSpec) Validate(ctx clictx.Context, input *common.ResourceInput) error
type ResourceSpecHandler ¶
type ResourceSpecHandler struct{}
func (ResourceSpecHandler) Decode ¶
func (ResourceSpecHandler) Decode(data []byte) (common.ResourceSpec, error)
func (ResourceSpecHandler) RequireInputs ¶
func (ResourceSpecHandler) RequireInputs() bool
func (ResourceSpecHandler) Set ¶
func (ResourceSpecHandler) Set(v ocm.ComponentVersionAccess, r common.Resource, acc compdesc.AccessSpec) error
type ResourceSpecificationsProvider ¶
type ResourceSpecificationsProvider struct {
*common.ContentResourceSpecificationsProvider
}
func (*ResourceSpecificationsProvider) Description ¶
func (p *ResourceSpecificationsProvider) Description() string
Click to show internal directories.
Click to hide internal directories.