Documentation
¶
Index ¶
- Variables
- type CalDAVConfig
- type CalendarConfig
- type Config
- type ConfigTemporary
- type ConfigWithDefaultQueryString
- type ConfigWithDryRun
- type ConfigWithHaustoria
- type ConfigWithIgnore
- type ConfigWithParentPath
- type ConfigWithRepo
- type ConfigWithSyncBaseline
- type FolderConfig
- type HaustoriaConfig
- type OrgmodeConfig
- type OrgmodeSFTP
- type OrgmodeWebDAV
- type Temporary
- type TypedConfig
- type V0
- type V1
- type V2
- type V3
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 CalDAVConfig ¶
type CalDAVConfig = workspace_config_value_blobs.CalDAVConfig
type CalendarConfig ¶
type CalendarConfig = workspace_config_value_blobs.CalendarConfig
type Config ¶
type Config interface {
GetDefaults() repo_configs.Defaults
}
type ConfigTemporary ¶
type ConfigTemporary interface {
Config
// contains filtered or unexported methods
}
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 ConfigWithParentPath ¶
type ConfigWithRepo ¶
type ConfigWithRepo interface {
GetRepoConfig() repo_configs.ConfigOverlay
}
type ConfigWithSyncBaseline ¶
type FolderConfig ¶
type FolderConfig = workspace_config_value_blobs.FolderConfig
type HaustoriaConfig ¶
type HaustoriaConfig = workspace_config_value_blobs.HaustoriaConfig
type OrgmodeConfig ¶
type OrgmodeConfig = workspace_config_value_blobs.OrgmodeConfig
type OrgmodeSFTP ¶
type OrgmodeSFTP = workspace_config_value_blobs.OrgmodeSFTP
type OrgmodeWebDAV ¶
type OrgmodeWebDAV = workspace_config_value_blobs.OrgmodeWebDAV
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 V0 ¶
type V0 = workspace_config_value_blobs.V0
type V1 ¶
type V1 = workspace_config_value_blobs.V1
type V2 ¶
type V2 = workspace_config_value_blobs.V2
type V3 ¶ added in v0.1.22
type V3 = workspace_config_value_blobs.V3
Click to show internal directories.
Click to hide internal directories.