config

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputModeSingle = "single"
	OutputModeGroup  = "group"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Processor ProcessorConfig `json:"processor"`
	Render    RenderConfig    `json:"render"`
	Flags     `json:"-"`
}

func Load

func Load(flags Flags) (*Config, error)

type Flags

type Flags struct {
	Config       string
	LogLevel     string
	OutputPath   string
	Renderer     string
	SourcePath   string
	TemplatesDir string
	OutputMode   string
	MaxDepth     int
}

type KnownType

type KnownType struct {
	Name    string `json:"name"`
	Package string `json:"package"`
	Link    string `json:"link"`
}

type Marker added in v0.1.6

type Marker struct {
	Name   string
	Target TargetType
}

type ProcessorConfig

type ProcessorConfig struct {
	MaxDepth            int      `json:"maxDepth"`
	IgnoreTypes         []string `json:"ignoreTypes"`
	IgnoreFields        []string `json:"ignoreFields"`
	IgnoreGroupVersions []string `json:"ignoreGroupVersions"`
	UseRawDocstring     bool     `json:"useRawDocstring"`
	CustomMarkers       []Marker `json:"customMarkers"`
}

type RenderConfig

type RenderConfig struct {
	KnownTypes        []*KnownType `json:"knownTypes"`
	KubernetesVersion string       `json:"kubernetesVersion"`
}

type TargetType added in v0.1.6

type TargetType string
const (
	TargetTypePackage TargetType = "package"
	TargetTypeType    TargetType = "type"
	TargetTypeField   TargetType = "field"
)

Jump to

Keyboard shortcuts

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