service

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const RecommendedCommandName = "service"

RecommendedCommandName is the recommended service command name

Variables

This section is empty.

Functions

func NewCmdService

func NewCmdService(name, fullName string) *cobra.Command

NewCmdService implements the odo service command

func NewCmdServiceCreate

func NewCmdServiceCreate(name, fullName string) *cobra.Command

NewCmdServiceCreate implements the odo service create command.

func NewCmdServiceDelete

func NewCmdServiceDelete(name, fullName string) *cobra.Command

NewCmdServiceDelete implements the odo service delete command.

func NewCmdServiceList

func NewCmdServiceList(name, fullName string) *cobra.Command

NewCmdServiceList implements the odo service list command.

Types

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

func (o *ServiceCreateOptions) Complete(name string, cmd *cobra.Command, args []string) (err error)

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

func (o *ServiceDeleteOptions) Complete(name string, cmd *cobra.Command, args []string) (err error)

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

func (o *ServiceListOptions) Complete(name string, cmd *cobra.Command, args []string) (err error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL