Help us shape the future of Go! Take the 2026 Go Developer Survey

apidocs

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package apidocs loads the OpenAPI document of the meshStack API into the config directory, and keeps it there up to date.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoConfigDir = errors.New("no writable config directory to keep the API docs in")

ErrNoConfigDir is returned rather than a document downloaded for nothing, because 4.7MB per command is too much to fetch again and again.

Functions

func Load

func Load(ctx context.Context, opts Options) (spec openapi.Spec, wait func(), err error)

Load returns a wait that the caller runs when the command has done its work, so that a slow download can finish.

Types

type Options

type Options struct {
	setting.Sources

	Client http.Client
	// Version is the CLI's. A build of no release reads the docs of develop, as Dev does.
	Version string
	Dev     bool
}

Jump to

Keyboard shortcuts

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