tool

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 15 Imported by: ? 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Name имя инструмента, от него строится префикс переменных окружения
	Name string

	// Usage краткое описание для справки
	Usage string

	// ConfigFile имя файла настроек проекта в корне модуля
	ConfigFile string

	// Output каталог пакета со схемами по умолчанию для init
	Output string

	// OpenAPIFile имя файла настроек OpenAPI в корне модуля
	OpenAPIFile string

	// Kubebuild настройки сбора схем из kubebuilder-маркеров
	Kubebuild Kubebuild
}

Config это настройки инструмента, задаются в main.go

func (Config) Check

func (c Config) Check() error

Check проверяет настройки

type Kubebuild

type Kubebuild struct {
	// TagKey ключ тега поля, например crd
	TagKey string

	// TagValue значение метки в теге поля, например kubebuild
	TagValue string
}

Kubebuild это настройки сбора схем из kubebuilder-маркеров

type Tool

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

Tool это консольный инструмент

func New

func New(c Config) *Tool

New возвращает инструмент

func (*Tool) RunAndFatal

func (t *Tool) RunAndFatal(args []string)

RunAndFatal запускает инструмент и завершает процесс при ошибке

Jump to

Keyboard shortcuts

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