config_mutable_blobs

package
v0.0.0-...-791c77c Latest Latest
Warning

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

Go to latest
Published: May 11, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func Default

func Default(defaultTyp ids.Type) ids.TypedBlob[Blob]

Types

type Blob

type Blob interface {
	interfaces.MutableStoredConfig
	GetBlob() Blob
	GetDefaults() Defaults
	GetFileExtensions() interfaces.FileExtensions
	GetPrintOptions() options_print.V0
}

type Defaults

type Defaults interface {
	GetType() ids.Type
	GetTags() quiter.Slice[ids.Tag]
}

type DefaultsV0

type DefaultsV0 struct {
	Typ       ids.Type  `toml:"typ"`
	Etiketten []ids.Tag `toml:"etiketten"`
}

func (DefaultsV0) GetTags

func (d DefaultsV0) GetTags() quiter.Slice[ids.Tag]

func (DefaultsV0) GetType

func (d DefaultsV0) GetType() ids.Type

type DefaultsV1

type DefaultsV1 struct {
	Type ids.Type  `toml:"type"`
	Tags []ids.Tag `toml:"tags"`
}

func (DefaultsV1) GetTags

func (d DefaultsV1) GetTags() quiter.Slice[ids.Tag]

func (DefaultsV1) GetType

func (d DefaultsV1) GetType() ids.Type

type DefaultsV1OmitEmpty

type DefaultsV1OmitEmpty struct {
	Type ids.Type  `toml:"type,omitempty"`
	Tags []ids.Tag `toml:"tags,omitempty"`
}

func (DefaultsV1OmitEmpty) GetTags

func (d DefaultsV1OmitEmpty) GetTags() quiter.Slice[ids.Tag]

func (DefaultsV1OmitEmpty) GetType

func (d DefaultsV1OmitEmpty) GetType() ids.Type

type Getter

type Getter interface {
	GetMutableConfig() Blob
}

type V0

type V0 struct {
	Defaults        DefaultsV0                            `toml:"defaults"`
	HiddenEtiketten []ids.Tag                             `toml:"hidden-etiketten"`
	FileExtensions  file_extensions.V0                    `toml:"file-extensions"`
	RemoteScripts   map[string]script_config.RemoteScript `toml:"remote-scripts"`
	Actions         map[string]script_config.ScriptConfig `toml:"actions,omitempty"`
	PrintOptions    options_print.V0                      `toml:"cli-output"`
	Tools           options_tools.Options                 `toml:"tools"`
	Filters         map[string]string                     `toml:"filters"`
}

func (V0) GetBlob

func (a V0) GetBlob() Blob

func (V0) GetDefaults

func (a V0) GetDefaults() Defaults

func (V0) GetFileExtensions

func (a V0) GetFileExtensions() interfaces.FileExtensions

func (V0) GetFilters

func (a V0) GetFilters() map[string]string

func (V0) GetPrintOptions

func (a V0) GetPrintOptions() options_print.V0

func (*V0) Reset

func (a *V0) Reset()

func (*V0) ResetWith

func (a *V0) ResetWith(b *V0)

type V1

type V1 struct {
	Defaults       DefaultsV1            `toml:"defaults"`
	FileExtensions file_extensions.V1    `toml:"file-extensions"`
	PrintOptions   options_print.V0      `toml:"cli-output"`
	Tools          options_tools.Options `toml:"tools"`
}

func (V1) GetBlob

func (a V1) GetBlob() Blob

func (V1) GetDefaults

func (a V1) GetDefaults() Defaults

func (V1) GetFileExtensions

func (a V1) GetFileExtensions() interfaces.FileExtensions

func (V1) GetFilters

func (a V1) GetFilters() map[string]string

func (V1) GetPrintOptions

func (a V1) GetPrintOptions() options_print.V0

func (*V1) Reset

func (a *V1) Reset()

func (*V1) ResetWith

func (a *V1) ResetWith(b *V1)

Jump to

Keyboard shortcuts

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