project

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: 8 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

View Source
const Version = 1

Version версия формата файла настроек

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Version версия формата файла
	Version int `yaml:"version"`

	// Output каталог пакета со схемами относительно корня модуля
	Output string `yaml:"output"`

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

Config это настройки инструмента в проекте

func Load

func Load(file string) (*Config, error)

Load читает файл настроек

func New

func New(output string) *Config

New возвращает настройки по умолчанию с указанным каталогом вывода

func (*Config) AddExternal

func (c *Config) AddExternal(patterns ...string) bool

AddExternal добавляет внешние шаблоны пакетов и сообщает, изменился ли список

func (*Config) Check

func (c *Config) Check() error

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

func (*Config) Save

func (c *Config) Save(file string) error

Save записывает файл настроек

type Kubebuild

type Kubebuild struct {
	// Scan шаблоны пакетов модуля, которые обходит prune
	Scan []string `yaml:"scan"`

	// External внешние пакеты, добавленные через get, которые тоже обходит prune
	External []string `yaml:"external,omitempty"`
}

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

Jump to

Keyboard shortcuts

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