Documentation ¶
Index ¶
- func CommandName(name, fullParentName string) string
- func ConfigureRunnableAndCommandWithTargeting(runnable Runnable, cmd *cobra.Command)
- func FlagValueIfSet(cmd *cobra.Command, flagName string) string
- func GenericRun(o Runnable, cmd *cobra.Command, args []string)
- func IsInteractive(cmd *cobra.Command) bool
- func NewGenericCreate(fullParentName string, o *CreateOptions) *cobra.Command
- func NewGenericDelete(fullParentName string, o *DeleteOptions) *cobra.Command
- func NewGenericOperation(fullParentName string, o *GenericOperationOptions) *cobra.Command
- func SetupEnvOptions(o WithEnv, cmd *cobra.Command)
- type ComponentTargetingOptions
- func (o *ComponentTargetingOptions) AttachFlagTo(cmd *cobra.Command)
- func (o *ComponentTargetingOptions) Complete(name string, cmd *cobra.Command, args []string) error
- func (o *ComponentTargetingOptions) GetTargetedComponentDescriptor() string
- func (o *ComponentTargetingOptions) GetTargetedComponentName() string
- func (o *ComponentTargetingOptions) GetTargetedComponentPath() string
- func (o *ComponentTargetingOptions) Run() error
- func (o *ComponentTargetingOptions) Validate() error
- type CreateOptions
- type Creator
- type DeleteOptions
- type EnvOptions
- type GenericOperationOptions
- type HalkyonDescriptor
- type HalkyonDescriptorEntity
- type HalkyonEntity
- type ResourceType
- type Runnable
- type WithEnv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandName ¶ added in v0.1.6
func FlagValueIfSet ¶ added in v0.2.0
FlagValueIfSet retrieves the value of the specified flag if it is set for the given command
func IsInteractive ¶ added in v0.2.0
func NewGenericCreate ¶ added in v0.2.0
func NewGenericCreate(fullParentName string, o *CreateOptions) *cobra.Command
func NewGenericDelete ¶ added in v0.1.6
func NewGenericDelete(fullParentName string, o *DeleteOptions) *cobra.Command
func NewGenericOperation ¶ added in v0.2.0
func NewGenericOperation(fullParentName string, o *GenericOperationOptions) *cobra.Command
func SetupEnvOptions ¶ added in v0.2.0
Types ¶
type ComponentTargetingOptions ¶
type ComponentTargetingOptions struct {
// contains filtered or unexported fields
}
func NewTargetingOptions ¶
func NewTargetingOptions() *ComponentTargetingOptions
func (*ComponentTargetingOptions) AttachFlagTo ¶
func (o *ComponentTargetingOptions) AttachFlagTo(cmd *cobra.Command)
func (*ComponentTargetingOptions) GetTargetedComponentDescriptor ¶ added in v0.1.3
func (o *ComponentTargetingOptions) GetTargetedComponentDescriptor() string
func (*ComponentTargetingOptions) GetTargetedComponentName ¶ added in v0.1.3
func (o *ComponentTargetingOptions) GetTargetedComponentName() string
func (*ComponentTargetingOptions) GetTargetedComponentPath ¶ added in v0.1.3
func (o *ComponentTargetingOptions) GetTargetedComponentPath() string
func (*ComponentTargetingOptions) Run ¶
func (o *ComponentTargetingOptions) Run() error
func (*ComponentTargetingOptions) Validate ¶
func (o *ComponentTargetingOptions) Validate() error
type CreateOptions ¶ added in v0.2.0
type CreateOptions struct { *GenericOperationOptions Delegate Creator // contains filtered or unexported fields }
func NewCreateOptions ¶ added in v0.2.0
func NewCreateOptions(resourceType ResourceType, client HalkyonEntity) *CreateOptions
func (*CreateOptions) Run ¶ added in v0.2.0
func (o *CreateOptions) Run() error
func (*CreateOptions) Validate ¶ added in v0.2.0
func (o *CreateOptions) Validate() error
type DeleteOptions ¶ added in v0.1.6
type DeleteOptions struct {
*GenericOperationOptions
}
func NewDeleteOptions ¶ added in v0.2.0
func NewDeleteOptions(resourceType ResourceType, client HalkyonEntity) *DeleteOptions
func (*DeleteOptions) Run ¶ added in v0.1.6
func (o *DeleteOptions) Run() error
func (*DeleteOptions) Validate ¶ added in v0.1.6
func (o *DeleteOptions) Validate() error
type EnvOptions ¶ added in v0.2.0
type EnvOptions struct { EnvPairs []string Envs []halkyon.NameValuePair }
type GenericOperationOptions ¶ added in v0.2.0
type GenericOperationOptions struct { ResourceType ResourceType Name string Client HalkyonEntity // contains filtered or unexported fields }
func (*GenericOperationOptions) Exists ¶ added in v0.2.0
func (o *GenericOperationOptions) Exists() (bool, error)
Exists checks if the object associated with this GenericOperationOptions exists. Returns (true, nil) if it exists, (false, nil) if it is determined to not exist or (false, error) if an error that doesn't determine existence occurred
func (*GenericOperationOptions) Run ¶ added in v0.2.0
func (o *GenericOperationOptions) Run() error
func (*GenericOperationOptions) Validate ¶ added in v0.2.0
func (o *GenericOperationOptions) Validate() error
type HalkyonDescriptor ¶ added in v0.2.0
type HalkyonDescriptor struct {
// contains filtered or unexported fields
}
func LoadAvailableHalkyonEntities ¶ added in v0.2.0
func LoadAvailableHalkyonEntities(path string) *HalkyonDescriptor
func LoadHalkyonDescriptor ¶ added in v0.2.0
func LoadHalkyonDescriptor(descriptor string) (*HalkyonDescriptor, error)
func (*HalkyonDescriptor) GetDefinedEntitiesWith ¶ added in v0.2.0
func (hd *HalkyonDescriptor) GetDefinedEntitiesWith(t ResourceType) entitiesRegistry
func (*HalkyonDescriptor) IsEmpty ¶ added in v0.2.0
func (hd *HalkyonDescriptor) IsEmpty() bool
func (*HalkyonDescriptor) Size ¶ added in v0.2.0
func (hd *HalkyonDescriptor) Size() int
type HalkyonDescriptorEntity ¶ added in v0.2.0
type HalkyonEntity ¶ added in v0.1.6
type ResourceType ¶ added in v0.2.0
type ResourceType string
const ( Component ResourceType = "component" Capability ResourceType = "capability" )
func KnownResourceTypes ¶ added in v0.2.0
func KnownResourceTypes() []ResourceType
func ResourceTypeFor ¶ added in v0.2.0
func ResourceTypeFor(object runtime.Object) (ResourceType, error)
func (ResourceType) String ¶ added in v0.2.0
func (r ResourceType) String() string
type WithEnv ¶ added in v0.2.0
type WithEnv interface {
SetEnvOptions(o *EnvOptions)
}
Click to show internal directories.
Click to hide internal directories.