Documentation
¶
Index ¶
- func AddParsedLabel(labels metav1.Labels, a string, kind ...string) (metav1.Labels, error)
- func CompleteOptionsWithSession(ctx clictx.Context, session ocm.Session) options.OptionsProcessor
- func ConsumeIdentities(pattern bool, args []string, stop ...string) ([]metav1.Identity, []string, error)
- func FilterSettings(args ...string) (attrs map[string]string, addArgs []string)
- func MapArgsToIdentities(args ...string) ([]metav1.Identity, error)
- func MapArgsToIdentityPattern(args ...string) (metav1.Identity, error)
- func MapLabelSpecs(d interface{}) (interface{}, error)
- func NewResource(spec ResourceSpec, input *ResourceInput, path string, indices ...int) *resource
- func ParseLabel(a string, kind ...string) (*metav1.Label, error)
- func ParseLabels(labels []string, kind ...string) (metav1.Labels, error)
- func ParseSettings(args []string, kinds ...string) (map[string]string, error)
- func SetParsedLabel(labels metav1.Labels, a string, kind ...string) (metav1.Labels, error)
- func Validate(r *ResourceInput, ctx inputs.Context, inputFilePath string) error
- type ContentResourceSpecificationsProvider
- func (a *ContentResourceSpecificationsProvider) AddFlags(fs *pflag.FlagSet)
- func (a *ContentResourceSpecificationsProvider) Complete() error
- func (a *ContentResourceSpecificationsProvider) Description() string
- func (a *ContentResourceSpecificationsProvider) Get() (string, error)
- func (a *ContentResourceSpecificationsProvider) IsSpecified() bool
- func (a *ContentResourceSpecificationsProvider) ParsedMeta() (flagsets.Config, error)
- func (a *ContentResourceSpecificationsProvider) Resources() ([]ResourceSpecifications, error)
- type ModifiedResourceSpecificationsFile
- type OptionWithSessionCompleter
- type Resource
- type ResourceAdderCommand
- type ResourceConfigAdderCommand
- type ResourceInput
- type ResourceMetaDataSpecificationsProvider
- func (a *ResourceMetaDataSpecificationsProvider) AddFlags(fs *pflag.FlagSet)
- func (a *ResourceMetaDataSpecificationsProvider) Complete() error
- func (a *ResourceMetaDataSpecificationsProvider) Description() string
- func (a *ResourceMetaDataSpecificationsProvider) ElementType() string
- func (a *ResourceMetaDataSpecificationsProvider) IsSpecified() bool
- func (a *ResourceMetaDataSpecificationsProvider) Origin() string
- func (a *ResourceMetaDataSpecificationsProvider) ParsedMeta() (flagsets.Config, error)
- type ResourceSpec
- type ResourceSpecHandler
- type ResourceSpecifications
- type ResourceSpecificationsFile
- type ResourceSpecificationsProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddParsedLabel ¶
func ConsumeIdentities ¶
func FilterSettings ¶
func MapLabelSpecs ¶
func MapLabelSpecs(d interface{}) (interface{}, error)
func NewResource ¶
func NewResource(spec ResourceSpec, input *ResourceInput, path string, indices ...int) *resource
func SetParsedLabel ¶
Types ¶
type ContentResourceSpecificationsProvider ¶
type ContentResourceSpecificationsProvider struct {
*ResourceMetaDataSpecificationsProvider
DefaultType string
// contains filtered or unexported fields
}
func NewContentResourceSpecificationProvider ¶
func NewContentResourceSpecificationProvider(ctx clictx.Context, name string, adder flagsets.ConfigAdder, deftype string, types ...flagsets.ConfigOptionType) *ContentResourceSpecificationsProvider
func (*ContentResourceSpecificationsProvider) AddFlags ¶
func (a *ContentResourceSpecificationsProvider) AddFlags(fs *pflag.FlagSet)
func (*ContentResourceSpecificationsProvider) Complete ¶
func (a *ContentResourceSpecificationsProvider) Complete() error
func (*ContentResourceSpecificationsProvider) Description ¶
func (a *ContentResourceSpecificationsProvider) Description() string
func (*ContentResourceSpecificationsProvider) Get ¶
func (a *ContentResourceSpecificationsProvider) Get() (string, error)
func (*ContentResourceSpecificationsProvider) IsSpecified ¶
func (a *ContentResourceSpecificationsProvider) IsSpecified() bool
func (*ContentResourceSpecificationsProvider) ParsedMeta ¶
func (a *ContentResourceSpecificationsProvider) ParsedMeta() (flagsets.Config, error)
func (*ContentResourceSpecificationsProvider) Resources ¶
func (a *ContentResourceSpecificationsProvider) Resources() ([]ResourceSpecifications, error)
type ModifiedResourceSpecificationsFile ¶
type ModifiedResourceSpecificationsFile struct {
ResourceSpecificationsFile
// contains filtered or unexported fields
}
func (*ModifiedResourceSpecificationsFile) Get ¶
func (r *ModifiedResourceSpecificationsFile) Get() (string, error)
type Resource ¶
type Resource interface {
Source() string
Spec() ResourceSpec
Input() *ResourceInput
}
type ResourceAdderCommand ¶
type ResourceAdderCommand struct {
utils.BaseCommand
Templating template.Options
Adder ResourceSpecificationsProvider
Archive string
Resources []ResourceSpecifications
Envs []string
}
func (*ResourceAdderCommand) AddFlags ¶
func (o *ResourceAdderCommand) AddFlags(fs *pflag.FlagSet)
func (*ResourceAdderCommand) Complete ¶
func (o *ResourceAdderCommand) Complete(args []string) error
func (*ResourceAdderCommand) ProcessResourceDescriptions ¶
func (o *ResourceAdderCommand) ProcessResourceDescriptions(listkey string, h ResourceSpecHandler) error
type ResourceConfigAdderCommand ¶
type ResourceConfigAdderCommand struct {
utils.BaseCommand
Templating template.Options
Adder ResourceSpecificationsProvider
ConfigFile string
Resources []ResourceSpecifications
Envs []string
}
func (*ResourceConfigAdderCommand) AddFlags ¶
func (o *ResourceConfigAdderCommand) AddFlags(fs *pflag.FlagSet)
func (*ResourceConfigAdderCommand) Complete ¶
func (o *ResourceConfigAdderCommand) Complete(args []string) error
func (*ResourceConfigAdderCommand) ProcessResourceDescriptions ¶
func (o *ResourceConfigAdderCommand) ProcessResourceDescriptions(listkey string, h ResourceSpecHandler) error
type ResourceInput ¶
type ResourceInput struct {
Access *runtime.UnstructuredTypedObject `json:"access"`
// Input *inputs.BlobInput `json:"input,omitempty"`
Input *inputs.GenericInputSpec `json:"input,omitempty"`
}
func DecodeInput ¶
func DecodeInput(data []byte, ctx clictx.Context) (*ResourceInput, error)
type ResourceMetaDataSpecificationsProvider ¶
type ResourceMetaDataSpecificationsProvider struct {
// contains filtered or unexported fields
}
func NewResourceMetaDataSpecificationsProvider ¶
func NewResourceMetaDataSpecificationsProvider(name string, adder flagsets.ConfigAdder, types ...flagsets.ConfigOptionType) *ResourceMetaDataSpecificationsProvider
func (*ResourceMetaDataSpecificationsProvider) AddFlags ¶
func (a *ResourceMetaDataSpecificationsProvider) AddFlags(fs *pflag.FlagSet)
func (*ResourceMetaDataSpecificationsProvider) Complete ¶
func (a *ResourceMetaDataSpecificationsProvider) Complete() error
func (*ResourceMetaDataSpecificationsProvider) Description ¶
func (a *ResourceMetaDataSpecificationsProvider) Description() string
func (*ResourceMetaDataSpecificationsProvider) ElementType ¶
func (a *ResourceMetaDataSpecificationsProvider) ElementType() string
func (*ResourceMetaDataSpecificationsProvider) IsSpecified ¶
func (a *ResourceMetaDataSpecificationsProvider) IsSpecified() bool
func (*ResourceMetaDataSpecificationsProvider) Origin ¶
func (a *ResourceMetaDataSpecificationsProvider) Origin() string
func (*ResourceMetaDataSpecificationsProvider) ParsedMeta ¶
func (a *ResourceMetaDataSpecificationsProvider) ParsedMeta() (flagsets.Config, error)
type ResourceSpec ¶
type ResourceSpec interface {
GetName() string
Info() string
Validate(ctx clictx.Context, input *ResourceInput) error
}
func DecodeResource ¶
func DecodeResource(data []byte, h ResourceSpecHandler) (ResourceSpec, error)
type ResourceSpecHandler ¶
type ResourceSpecHandler interface {
RequireInputs() bool
Decode(data []byte) (ResourceSpec, error)
Set(v ocm.ComponentVersionAccess, r Resource, acc compdesc.AccessSpec) error
}
type ResourceSpecifications ¶
func NewModifiedResourceSpecificationsFile ¶
func NewModifiedResourceSpecificationsFile(data string, path string, fss ...vfs.FileSystem) ResourceSpecifications
func NewResourceSpecificationsFile ¶
func NewResourceSpecificationsFile(path string, fss ...vfs.FileSystem) ResourceSpecifications
type ResourceSpecificationsFile ¶
type ResourceSpecificationsFile struct {
// contains filtered or unexported fields
}
func (*ResourceSpecificationsFile) Get ¶
func (r *ResourceSpecificationsFile) Get() (string, error)
func (*ResourceSpecificationsFile) Origin ¶
func (r *ResourceSpecificationsFile) Origin() string
Click to show internal directories.
Click to hide internal directories.