minerset

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 8 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 genericclioptions.IOStreams) *cobra.Command

NewCmdList returns new initialized instance of list sub command.

func NewCmdMinerSet

func NewCmdMinerSet(f cmdutil.Factory, ioStreams genericclioptions.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

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

ListOptions is an options struct to support list subcommands.

func NewListOptions

func NewListOptions(ioStreams genericclioptions.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