Versions in this module Expand all Collapse all v1 v1.2.0-rc.3 Nov 6, 2026 v1.2.0-rc.2 Nov 6, 2026 v1.2.0-rc.1 Nov 4, 2026 v1.1.2 Oct 23, 2026 v1.1.1 Sep 17, 2026 v1.1.1-rc.1 Sep 16, 2026 v1.1.0 Sep 3, 2026 Changes in this version + const MaxPageSize + const MaxPages + const MinPageSize + const OptionsPreamble + var ErrAborted = errors.New("aborted") + func ApplyPagination(flags Resolved, setPage func(*int), setPageSize func(*int)) + func Confirm(in io.Reader, out io.Writer, summary string) error + func CredentialWarnings(resolved config.Resolved) []string + func ExitCode(err error) int + func ExtractRawItems(data []byte, itemKey string) ([]json.RawMessage, error) + func FixAPIURLHint(resolved config.Resolved) string + func FormatLocation(location *nvfleetint.Location) string + func FromResolved(resolved config.Resolved, common Resolved) (*nvfleetint.Client, error) + func MissingAPIKeyError(resolved config.Resolved) error + func New(common Resolved) (*nvfleetint.Client, error) + func NormalizeWindowFlag(window string) (string, error) + func OneIndexRawPage(data []byte) []byte + func OptionalSingleArg(name string) cobra.PositionalArgs + func OptionsHelpNote(command string, flags ...string) string + func ParseCommaList(raw string) ([]string, error) + func ParseIntList(flag, raw string) ([]int, error) + func ParseTypedList[T ~string](flag, raw string) ([]T, error) + func RegisterListFlags(cmd *cobra.Command, flags *Common) + func RegisterOutputFlag(cmd *cobra.Command, flags *Common) + func RegisterPaginationFlags(cmd *cobra.Command, flags *Common) + func RegisterProfileFlag(cmd *cobra.Command, flags *Common) + func RegisterReadFlags(cmd *cobra.Command, flags *Common) + func RegisterTimeRangeFlags(cmd *cobra.Command, window, start, end *string) + func RegisterTimeoutFlag(cmd *cobra.Command, flags *Common) + func RejectUnknownSubcommands(cmd *cobra.Command) + func RenderOptionError(err error, names map[string]OptionFlagName) error + func RequireSingleArg(name string) cobra.PositionalArgs + func ResolveCredentials(profile string) (config.Resolved, error) + func ValidateListFlags(flags Resolved) error + func ValidateOptionalTimeRangeFlags(window, start, end string) error + func ValidateRFC3339Flag(name, value string) error + func ValidateReadFlags(flags Resolved) error + func ValidateStepFlag(step string) error + func ValidateTimeRangeFlags(window, start, end string) error + func ValueRows(values []string) [][]string + func WantsJSONOutput(args []string) bool + func Write(out io.Writer, args []string, err error) + func WriteOptionSection(w io.Writer, heading string, rows [][]string) error + func WritePaginatedListJSON(w io.Writer, rawJSON []byte, jsonValue any) error + func WriteRequestPreview(w io.Writer, common Resolved, preview nvfleetint.RequestPreview) error + type Common struct + All bool + Output string + Page int + PageSize int + Profile string + Timeout time.Duration + func NewCommon() *Common + type CredentialPrompt struct + func NewCredentialPrompt(in io.Reader, out io.Writer) *CredentialPrompt + func (p *CredentialPrompt) APIKey(keepStored bool) (string, bool, error) + func (p *CredentialPrompt) APIURL(current string) (string, error) + func (p *CredentialPrompt) Interactive() bool + func (p *CredentialPrompt) Note(format string, args ...any) + type MergedJSONResult struct + Items []json.RawMessage + Pagination MergedPagination + func FetchAllPages[P nvfleetint.Paginated](itemKey string, fetch func(page int) (P, error), collect func(P)) (MergedJSONResult, error) + func FetchAllRawPages(itemKey string, startPage int, fetch func(page int) (RawPage, error)) (MergedJSONResult, error) + type MergedPagination struct + HasMore bool + Page int + PageSize int + PagesFetched int + Total int + type OptionFlag struct + Name string + Promote string + type OptionFlagName struct + Expected string + Flag string + type OptionSection struct + Heading string + Rows [][]string + type OptionsRenderer struct + Consumers []string + Filters map[string]OptionFlag + SortAccepted func(field string) bool + SortConsumers []string + SortFields map[string]string + SortHidden func(field string) bool + func (renderer OptionsRenderer) Write(w io.Writer, options nvfleetint.FilterOptions) error + type RawPage struct + HasMore *bool + Page int + PageSize int + RawJSON []byte + Total int + type Resolved struct + All bool + AllSet bool + Output string + OutputSet bool + Page int + PageSet bool + PageSize int + PageSizeSet bool + Profile string + ProfileSet bool + Timeout time.Duration + TimeoutSet bool + func ResolveCommon(cmd *cobra.Command, flags *Common) Resolved v1.1.0-rc.5 Sep 3, 2026 v1.1.0-rc.4 Sep 1, 2026 v1.1.0-rc.3 Sep 1, 2026 v1.1.0-rc.2 Aug 26, 2026