...

Package preference

Overview ▾

Index ▾

Constants
func HumanReadableOutput(preferenceList api.PreferenceList, registryList []api.Registry)
func NewCmdPreference(ctx context.Context, name, fullName string, testClientset clientset.Clientset) *cobra.Command
func NewCmdSet(ctx context.Context, name, fullName string, testClientset clientset.Clientset) *cobra.Command
func NewCmdUnset(name, fullName string, testClientset clientset.Clientset) *cobra.Command
func NewCmdView(name, fullName string, testClientset clientset.Clientset) *cobra.Command
type SetOptions
    func NewSetOptions() *SetOptions
    func (o *SetOptions) Complete(ctx context.Context, cmdline cmdline.Cmdline, args []string) (err error)
    func (o *SetOptions) Run(ctx context.Context) (err error)
    func (o *SetOptions) SetClientset(clientset *clientset.Clientset)
    func (o *SetOptions) UseDevfile(ctx context.Context, cmdline cmdline.Cmdline, args []string) bool
    func (o *SetOptions) Validate(ctx context.Context) (err error)
type UnsetOptions
    func NewUnsetOptions() *UnsetOptions
    func (o *UnsetOptions) Complete(ctx context.Context, cmdline cmdline.Cmdline, args []string) (err error)
    func (o *UnsetOptions) Run(ctx context.Context) (err error)
    func (o *UnsetOptions) SetClientset(clientset *clientset.Clientset)
    func (o *UnsetOptions) UseDevfile(ctx context.Context, cmdline cmdline.Cmdline, args []string) bool
    func (o *UnsetOptions) Validate(ctx context.Context) (err error)
type ViewOptions
    func NewViewOptions() *ViewOptions
    func (o *ViewOptions) Complete(ctx context.Context, cmdline cmdline.Cmdline, args []string) (err error)
    func (o *ViewOptions) Run(ctx context.Context) (err error)
    func (o *ViewOptions) RunForJsonOutput(ctx context.Context) (result interface{}, err error)
    func (o *ViewOptions) SetClientset(clientset *clientset.Clientset)
    func (o *ViewOptions) UseDevfile(ctx context.Context, cmdline cmdline.Cmdline, args []string) bool
    func (o *ViewOptions) Validate(ctx context.Context) (err error)

Package files

preference.go set.go unset.go view.go

Constants

RecommendedCommandName is the recommended preference command name

const RecommendedCommandName = "preference"

func HumanReadableOutput

func HumanReadableOutput(preferenceList api.PreferenceList, registryList []api.Registry)

func NewCmdPreference

func NewCmdPreference(ctx context.Context, name, fullName string, testClientset clientset.Clientset) *cobra.Command

NewCmdPreference implements the utils config odo command

func NewCmdSet

func NewCmdSet(ctx context.Context, name, fullName string, testClientset clientset.Clientset) *cobra.Command

NewCmdSet implements the config set odo command

func NewCmdUnset

func NewCmdUnset(name, fullName string, testClientset clientset.Clientset) *cobra.Command

NewCmdUnset implements the preference unset odo command

func NewCmdView

func NewCmdView(name, fullName string, testClientset clientset.Clientset) *cobra.Command

NewCmdView implements the config view odo command

type SetOptions

SetOptions encapsulates the options for the command

type SetOptions struct {
    // contains filtered or unexported fields
}

func NewSetOptions

func NewSetOptions() *SetOptions

NewSetOptions creates a new SetOptions instance

func (*SetOptions) Complete

func (o *SetOptions) Complete(ctx context.Context, cmdline cmdline.Cmdline, args []string) (err error)

Complete completes SetOptions after they've been created

func (*SetOptions) Run

func (o *SetOptions) Run(ctx context.Context) (err error)

Run contains the logic for the command

func (*SetOptions) SetClientset

func (o *SetOptions) SetClientset(clientset *clientset.Clientset)

func (*SetOptions) UseDevfile

func (o *SetOptions) UseDevfile(ctx context.Context, cmdline cmdline.Cmdline, args []string) bool

func (*SetOptions) Validate

func (o *SetOptions) Validate(ctx context.Context) (err error)

Validate validates the SetOptions based on completed values

type UnsetOptions

UnsetOptions encapsulates the options for the command

type UnsetOptions struct {
    // contains filtered or unexported fields
}

func NewUnsetOptions

func NewUnsetOptions() *UnsetOptions

NewUnsetOptions creates a new UnsetOptions instance

func (*UnsetOptions) Complete

func (o *UnsetOptions) Complete(ctx context.Context, cmdline cmdline.Cmdline, args []string) (err error)

Complete completes UnsetOptions after they've been created

func (*UnsetOptions) Run

func (o *UnsetOptions) Run(ctx context.Context) (err error)

Run contains the logic for the command

func (*UnsetOptions) SetClientset

func (o *UnsetOptions) SetClientset(clientset *clientset.Clientset)

func (*UnsetOptions) UseDevfile

func (o *UnsetOptions) UseDevfile(ctx context.Context, cmdline cmdline.Cmdline, args []string) bool

func (*UnsetOptions) Validate

func (o *UnsetOptions) Validate(ctx context.Context) (err error)

Validate validates the UnsetOptions based on completed values

type ViewOptions

ViewOptions encapsulates the options for the command

type ViewOptions struct {
    // contains filtered or unexported fields
}

func NewViewOptions

func NewViewOptions() *ViewOptions

NewViewOptions creates a new ViewOptions instance

func (*ViewOptions) Complete

func (o *ViewOptions) Complete(ctx context.Context, cmdline cmdline.Cmdline, args []string) (err error)

Complete completes ViewOptions after they've been created

func (*ViewOptions) Run

func (o *ViewOptions) Run(ctx context.Context) (err error)

Run contains the logic for the command

func (*ViewOptions) RunForJsonOutput

func (o *ViewOptions) RunForJsonOutput(ctx context.Context) (result interface{}, err error)

func (*ViewOptions) SetClientset

func (o *ViewOptions) SetClientset(clientset *clientset.Clientset)

func (*ViewOptions) UseDevfile

func (o *ViewOptions) UseDevfile(ctx context.Context, cmdline cmdline.Cmdline, args []string) bool

func (*ViewOptions) Validate

func (o *ViewOptions) Validate(ctx context.Context) (err error)

Validate validates the ViewOptions based on completed values

Subdirectories

Name Synopsis
..
add
remove