genericoptions

package
v0.0.0-...-ad3a29e Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaginationFlags

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

func (*PaginationFlags) AddFlags

func (f *PaginationFlags) AddFlags(c *cobra.Command)

func (*PaginationFlags) PageOptions

func (f *PaginationFlags) PageOptions() *linodego.PageOptions

type PrinterFlags

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

PrintFlags provides flags for configuring resource printing.

func (*PrinterFlags) AddFlags

func (f *PrinterFlags) AddFlags(c *cobra.Command)

AddFlags recieves a *cobra.Command reference and binds flags for specifying fields to display and to sorty by.

func (*PrinterFlags) Descending

func (f *PrinterFlags) Descending() bool

Descending returns whether the resource printer should sort in descending order.

func (*PrinterFlags) Fields

func (f *PrinterFlags) Fields() []string

Fields returns the fields for the resource printer to print.

func (*PrinterFlags) NoHeader

func (f *PrinterFlags) NoHeader() bool

NoHeader returns whether the resource printer should omit the header.

func (*PrinterFlags) SortBy

func (f *PrinterFlags) SortBy() string

SortBy returns the field for the resource printer to sort upon.

type ProfileFlags

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

ProfileFlags provides flags for specifying a profile.

func (*ProfileFlags) AddFlags

func (f *ProfileFlags) AddFlags(c *cobra.Command)

AddFlags recieves a *cobra.Command reference and binds a flag for specifying a profile.

func (*ProfileFlags) ProfileName

func (f *ProfileFlags) ProfileName() string

ProfileName gets the name of the specified profile from the flag.

type WaitFlags

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

func (*WaitFlags) AddFlags

func (f *WaitFlags) AddFlags(c *cobra.Command)

Jump to

Keyboard shortcuts

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