commands

package
v0.0.0-...-c4d653c Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package commands implements subcommands of cos_gpu_installer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FallBackFlag

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

func (*FallBackFlag) Get

func (f *FallBackFlag) Get() bool

func (*FallBackFlag) IsSet

func (f *FallBackFlag) IsSet() bool

func (*FallBackFlag) Set

func (f *FallBackFlag) Set(s string) error

func (*FallBackFlag) String

func (f *FallBackFlag) String() string

type Fallback

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

func (Fallback) Compatible

func (f Fallback) Compatible(driverMajorVersion int) bool

Checks compatibilty of input driverVersion with Fallback for GPU device type

type InstallCommand

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

InstallCommand is the subcommand to install GPU drivers.

func (*InstallCommand) Execute

func (c *InstallCommand) Execute(ctx context.Context, _ *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute implements subcommands.Command.Execute.

func (*InstallCommand) Name

func (*InstallCommand) Name() string

Name implements subcommands.Command.Name.

func (*InstallCommand) SetFlags

func (c *InstallCommand) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*InstallCommand) Synopsis

func (*InstallCommand) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*InstallCommand) Usage

func (*InstallCommand) Usage() string

Usage implements subcommands.Command.Usage.

type ListCommand

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

ListCommand is the subcommand to list supported GPU drivers.

func (*ListCommand) Execute

func (c *ListCommand) Execute(ctx context.Context, _ *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

Execute implements subcommands.Command.Execute.

func (*ListCommand) Name

func (*ListCommand) Name() string

Name implements subcommands.Command.Name.

func (*ListCommand) SetFlags

func (c *ListCommand) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*ListCommand) Synopsis

func (*ListCommand) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*ListCommand) Usage

func (*ListCommand) Usage() string

Usage implements subcommands.Command.Usage.

Jump to

Keyboard shortcuts

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