builder

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: BSD-3-Clause Imports: 22 Imported by: 0

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

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