minerset

package
v0.2.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package minerset provides functions to manage minersets on onex platform.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdList

func NewCmdList(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command

NewCmdList returns new initialized instance of list sub command.

func NewCmdMinerSet

func NewCmdMinerSet(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command

NewCmdMinerSet returns new initialized instance of 'minerset' sub command.

Types

type ListOptions

type ListOptions struct {
	Offset int64
	Limit  int64

	ListMinerSetRequest *v1.ListMinerSetRequest

	genericiooptions.IOStreams
	// contains filtered or unexported fields
}

ListOptions is an options struct to support list subcommands.

func NewListOptions

func NewListOptions(ioStreams genericiooptions.IOStreams) *ListOptions

NewListOptions returns an initialized ListOptions instance.

func (*ListOptions) Complete

func (o *ListOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*ListOptions) Run

func (o *ListOptions) Run(f cmdutil.Factory, args []string) error

Run executes a list subcommand using the specified options.

func (*ListOptions) Validate

func (o *ListOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure there is no discrepency in command options.

Jump to

Keyboard shortcuts

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