Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindComputeOptions ¶
type BindComputeOptions struct { *base.Options // PlacementName is the name of the placement PlacementName string // APIExports is a list of APIExport to use in the workspace. APIExports []string NamespaceSelectorString string LocationSelectorsStrings []string // LocationWorkspace is the workspace for synctarget LocationWorkspace logicalcluster.Path // BindWaitTimeout is how long to wait for the placement to be created and successful. BindWaitTimeout time.Duration // contains filtered or unexported fields }
func NewBindComputeOptions ¶
func NewBindComputeOptions(streams genericclioptions.IOStreams) *BindComputeOptions
func (*BindComputeOptions) BindFlags ¶
func (o *BindComputeOptions) BindFlags(cmd *cobra.Command)
BindFlags binds fields SyncOptions as command line flags to cmd's flagset.
func (*BindComputeOptions) Complete ¶
func (o *BindComputeOptions) Complete(args []string) error
Complete ensures all dynamically populated fields are initialized.
func (*BindComputeOptions) Run ¶
func (o *BindComputeOptions) Run(ctx context.Context) error
Run creates a placement in the workspace, linking to the location workspace.
func (*BindComputeOptions) Validate ¶
func (o *BindComputeOptions) Validate() error
Validate validates the BindOptions are complete and usable.
type BindOptions ¶
type BindOptions struct { *base.Options // APIExportRef is the argument accepted by the command. It contains the // reference to where APIExport exists. For ex: <absolute_ref_to_workspace>:<apiexport>. APIExportRef string // Name of the APIBinding. APIBindingName string // BindWaitTimeout is how long to wait for the APIBinding to be created and successful. BindWaitTimeout time.Duration }
BindOptions contains the options for creating an APIBinding.
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.