resourceslice

package
v0.11.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package resourceslice contains the rest API commands to allow liqoctl to interact with ResourceSlice resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResourceSlice

func ResourceSlice() rest.API

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) Create

func (o *Options) Create(ctx context.Context, options *rest.CreateOptions) *cobra.Command

Create implements the create command.

func (*Options) Delete

Delete implements the delete command.

func (*Options) Generate

func (o *Options) Generate(_ context.Context, _ *rest.GenerateOptions) *cobra.Command

Generate implements the generate command.

func (*Options) Get

Get implements the get command.

func (*Options) HandleCreate

func (o *Options) HandleCreate(ctx context.Context) error

HandleCreate implements the logic to create a ResourceSlice resource.

func (*Options) Update

Update implements the update command.

Jump to

Keyboard shortcuts

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