 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- func NewCmdService(name, fullName string) *cobra.Command
- func NewCmdServiceCreate(name, fullName string) *cobra.Command
- func NewCmdServiceDelete(name, fullName string) *cobra.Command
- func NewCmdServiceList(name, fullName string) *cobra.Command
- type DynamicCRD
- type ServiceCreateOptions
- type ServiceDeleteOptions
- type ServiceListOptions
Constants ¶
const RecommendedCommandName = "service"
    RecommendedCommandName is the recommended service command name
Variables ¶
This section is empty.
Functions ¶
func NewCmdService ¶
NewCmdService implements the odo service command
func NewCmdServiceCreate ¶
NewCmdServiceCreate implements the odo service create command.
func NewCmdServiceDelete ¶
NewCmdServiceDelete implements the odo service delete command.
func NewCmdServiceList ¶
NewCmdServiceList implements the odo service list command.
Types ¶
type DynamicCRD ¶ added in v1.2.5
type DynamicCRD struct {
	// contains the CR as obtained from CSV or user
	OriginalCRD map[string]interface{}
}
    DynamicCRD holds the original CR obtained from the Operator (a CSV), or user (when they use --from-file flag), and few other attributes that are likely to be used to validate a CRD before creating a service from it
func NewDynamicCRD ¶ added in v1.2.5
func NewDynamicCRD() *DynamicCRD
type ServiceCreateOptions ¶
type ServiceCreateOptions struct {
	// Plan is the selected service plan
	Plan string
	// ServiceType corresponds to the service class name
	ServiceType string
	// ServiceName is how the service will be named and known by odo
	ServiceName string
	// ParametersMap is populated from the flag-provided values (parameters) and/or the interactive mode and is the expected format by the business logic
	ParametersMap map[string]string
	// CmdFullName records the command's full name
	CmdFullName string
	// generic context options common to all commands
	*genericclioptions.Context
	// Custom Resrouce to create service from
	CustomResource string
	// Custom Resrouce's Definition fetched from alm-examples
	CustomResourceDefinition map[string]interface{}
	// If set to true, DryRun prints the yaml that will create the service
	DryRun bool
	// contains filtered or unexported fields
}
    ServiceCreateOptions encapsulates the options for the odo service create command
func NewServiceCreateOptions ¶
func NewServiceCreateOptions() *ServiceCreateOptions
NewServiceCreateOptions creates a new ServiceCreateOptions instance
func (*ServiceCreateOptions) Complete ¶
Complete completes ServiceCreateOptions after they've been created
func (*ServiceCreateOptions) Run ¶
func (o *ServiceCreateOptions) Run() (err error)
Run contains the logic for the odo service create command
func (*ServiceCreateOptions) Validate ¶
func (o *ServiceCreateOptions) Validate() (err error)
Validate validates the ServiceCreateOptions based on completed values
type ServiceDeleteOptions ¶
type ServiceDeleteOptions struct {
	*genericclioptions.Context
	// contains filtered or unexported fields
}
    ServiceDeleteOptions encapsulates the options for the odo service delete command
func NewServiceDeleteOptions ¶
func NewServiceDeleteOptions() *ServiceDeleteOptions
NewServiceDeleteOptions creates a new ServiceDeleteOptions instance
func (*ServiceDeleteOptions) Complete ¶
Complete completes ServiceDeleteOptions after they've been created
func (*ServiceDeleteOptions) Run ¶
func (o *ServiceDeleteOptions) Run() (err error)
Run contains the logic for the odo service delete command
func (*ServiceDeleteOptions) Validate ¶
func (o *ServiceDeleteOptions) Validate() (err error)
Validate validates the ServiceDeleteOptions based on completed values
type ServiceListOptions ¶
type ServiceListOptions struct {
	*genericclioptions.Context
	// contains filtered or unexported fields
}
    ServiceListOptions encapsulates the options for the odo service list command
func NewServiceListOptions ¶
func NewServiceListOptions() *ServiceListOptions
NewServiceListOptions creates a new ServiceListOptions instance
func (*ServiceListOptions) Complete ¶
Complete completes ServiceListOptions after they've been created
func (*ServiceListOptions) Run ¶
func (o *ServiceListOptions) Run() (err error)
Run contains the logic for the odo service list command
func (*ServiceListOptions) Validate ¶
func (o *ServiceListOptions) Validate() (err error)
Validate validates the ServiceListOptions based on completed values