Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BindOptions ¶
type BindOptions struct { *base.Options // CatalogEntryRef is the argument accepted by the command. It contains the // reference to where CatalogEntry exists. For ex: <absolute_ref_to_workspace>:<catalogEntry>. CatalogEntryRef string // BindWaitTimeout is how long to wait for the apibindings to be created and successful. BindWaitTimeout time.Duration }
BindOptions contains the options for creating APIBindings for CE
func NewBindOptions ¶
func NewBindOptions(streams genericclioptions.IOStreams) *BindOptions
NewBindOptions returns new BindOptions.
func (*BindOptions) BindFlags ¶
func (b *BindOptions) BindFlags(cmd *cobra.Command)
BindFlags binds fields to cmd's flagset.
func (*BindOptions) Complete ¶
func (b *BindOptions) Complete(args []string) error
Complete ensures all fields are initialized.
func (*BindOptions) Run ¶
func (b *BindOptions) Run(ctx context.Context) error
Run creates an apibinding for the user.
func (*BindOptions) Validate ¶
func (b *BindOptions) Validate() error
Validate validates the BindOptions are complete and usable.
Click to show internal directories.
Click to hide internal directories.