builder

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

SPDX-License-Identifier: BSD-3-Clause

Index

Constants

This section is empty.

Variables

View Source
var NumEntriesInSlices = 1

Functions

This section is empty.

Types

type Builder

type Builder[T any] struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder[T any](provider string, spec *openapi3.T) *Builder[T]

func (*Builder[T]) Build

func (b *Builder[T]) Build(rootCmd *cobra.Command)

Build builds the high-level API, must be run after BuildAPI as aliases might use API flags.

func (*Builder[T]) BuildAPI

func (b *Builder[T]) BuildAPI(
	rootCmd *cobra.Command,
	methodFilter func(m reflect.Method) bool,
	run func(cmd *cobra.Command, args []string),
)

BuildAPI builds the api command.

func (*Builder[T]) BuildFlags

func (b *Builder[T]) BuildFlags(
	cmd *cobra.Command,
	arg reflect.Type,
)

type Spec

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

func NewSpec

func NewSpec(spec *openapi3.T) *Spec

func (*Spec) SummaryForAttribute

func (s *Spec) SummaryForAttribute(typeName, attribute string) (description string, required bool)

func (*Spec) SummaryForOperation

func (s *Spec) SummaryForOperation(name string) (short, help, group string, deprecated bool)

Jump to

Keyboard shortcuts

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