workspace_config_blobs

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Coder = hyphence.CoderToTypedBlob[Config]{
	Metadata: hyphence.TypedMetadataCoder[Config]{},
	Blob: hyphence.CoderTypeMapWithoutType[Config](
		map[string]interfaces.CoderBufferedReadWriter[*Config]{
			ids.TypeTomlWorkspaceConfigV0: hyphence.CoderTommy[
				Config,
				*Config,
			]{
				Decode: func(b []byte) (Config, error) {
					doc, err := workspace_config_value_blobs.DecodeV0(b)
					if err != nil {
						return nil, err
					}
					return doc.Data(), nil
				},
				Encode: func(cfg Config) ([]byte, error) {
					doc, err := workspace_config_value_blobs.DecodeV0(nil)
					if err != nil {
						return nil, err
					}
					switch v := cfg.(type) {
					case *V0:
						*doc.Data() = *v
					case V0:
						*doc.Data() = v
					}
					return doc.Encode()
				},
			},
			ids.TypeTomlWorkspaceConfigV1: hyphence.CoderTommy[
				Config,
				*Config,
			]{
				Decode: func(b []byte) (Config, error) {
					doc, err := workspace_config_value_blobs.DecodeV1(b)
					if err != nil {
						return nil, err
					}
					return doc.Data(), nil
				},
				Encode: func(cfg Config) ([]byte, error) {
					doc, err := workspace_config_value_blobs.DecodeV1(nil)
					if err != nil {
						return nil, err
					}
					switch v := cfg.(type) {
					case *V1:
						*doc.Data() = *v
					case V1:
						*doc.Data() = v
					}
					return doc.Encode()
				},
			},
			ids.TypeTomlWorkspaceConfigV2: hyphence.CoderTommy[
				Config,
				*Config,
			]{
				Decode: func(b []byte) (Config, error) {
					doc, err := workspace_config_value_blobs.DecodeV2(b)
					if err != nil {
						return nil, err
					}
					return doc.Data(), nil
				},
				Encode: func(cfg Config) ([]byte, error) {
					doc, err := workspace_config_value_blobs.DecodeV2(nil)
					if err != nil {
						return nil, err
					}
					switch v := cfg.(type) {
					case *V2:
						*doc.Data() = *v
					case V2:
						*doc.Data() = v
					}
					return doc.Encode()
				},
			},
			ids.TypeTomlWorkspaceConfigV3: hyphence.CoderTommy[
				Config,
				*Config,
			]{
				Decode: func(b []byte) (Config, error) {
					doc, err := workspace_config_value_blobs.DecodeV3(b)
					if err != nil {
						return nil, err
					}
					return doc.Data(), nil
				},
				Encode: func(cfg Config) ([]byte, error) {
					doc, err := workspace_config_value_blobs.DecodeV3(nil)
					if err != nil {
						return nil, err
					}
					switch v := cfg.(type) {
					case *V3:
						*doc.Data() = *v
					case V3:
						*doc.Data() = v
					}
					return doc.Encode()
				},
			},
		},
	),
}

Functions

This section is empty.

Types

type Config

type Config interface {
	GetDefaults() repo_configs.Defaults
}

type ConfigTemporary

type ConfigTemporary interface {
	Config
	// contains filtered or unexported methods
}

type ConfigWithDefaultQueryString

type ConfigWithDefaultQueryString interface {
	Config
	GetDefaultQueryString() string
}

type ConfigWithDryRun

type ConfigWithDryRun interface {
	Config
	mad_domain_interfaces.ConfigDryRunGetter
}

type ConfigWithHaustoria

type ConfigWithHaustoria interface {
	Config
	GetHaustoriaConfig() HaustoriaConfig
}

type ConfigWithIgnore added in v0.1.22

type ConfigWithIgnore interface {
	Config
	GetIgnorePatterns() []string
}

type ConfigWithParentPath

type ConfigWithParentPath interface {
	Config
	GetParentPath() string
}

type ConfigWithRepo

type ConfigWithRepo interface {
	GetRepoConfig() repo_configs.ConfigOverlay
}

type ConfigWithSyncBaseline

type ConfigWithSyncBaseline interface {
	Config
	GetSyncTai() string
	GetSyncDigest() string
}

type Temporary

type Temporary struct {
	Defaults repo_configs.DefaultsV1OmitEmpty `toml:"defaults,omitempty"`
}

func (Temporary) GetDefaults

func (blob Temporary) GetDefaults() repo_configs.Defaults

type TypedConfig

type TypedConfig = hyphence.TypedBlob[Config]

type V3 added in v0.1.22

Jump to

Keyboard shortcuts

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