Documentation
¶
Overview ¶
Package resourceslice contains the rest API commands to allow liqoctl to interact with ResourceSlice resources.
Index ¶
- func ResourceSlice() rest.API
- type Options
- func (o *Options) APIOptions() *rest.APIOptions
- func (o *Options) Create(ctx context.Context, options *rest.CreateOptions) *cobra.Command
- func (o *Options) Delete(_ context.Context, _ *rest.DeleteOptions) *cobra.Command
- func (o *Options) Generate(_ context.Context, _ *rest.GenerateOptions) *cobra.Command
- func (o *Options) Get(_ context.Context, _ *rest.GetOptions) *cobra.Command
- func (o *Options) HandleCreate(ctx context.Context) error
- func (o *Options) Update(_ context.Context, _ *rest.UpdateOptions) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResourceSlice ¶
ResourceSlice returns the rest API for the resourceslice command.
Types ¶
type Options ¶
type Options struct { CreateOptions *rest.CreateOptions NamespaceManager tenantnamespace.Manager RemoteClusterID args.ClusterIDFlags Class string DisableVirtualNodeCreation bool CPU string Memory string Pods string }
Options encapsulates the arguments of the resourceslice command.
func (*Options) APIOptions ¶
func (o *Options) APIOptions() *rest.APIOptions
APIOptions returns the APIOptions for the identity API.
func (*Options) HandleCreate ¶
HandleCreate implements the logic to create a ResourceSlice resource.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.