Documentation ¶
Overview ¶
Package `fsomain` implements an event-sourced aggregate that contains the FSO filesystem observer main root entity. The main root is accessed via a wellknown name, usually `main`. To get to a repo, traverse entities:
fsomain -> fsoregistry -> fsorepos
The main root contains a list of registries. Registry details are in separate entities, implemented by package `fsoregistry`. Registries contain lists of repos. Repo details are in separate entities, implemented by package `fsorepos`.
Index ¶
- Variables
- type Advancer
- type Behavior
- type CmdAddUnixDomain
- type CmdConfirmRegistry
- type CmdInitMain
- type CmdInitRegistry
- type Event
- type Main
- func (r *Main) AddUnixDomain(id uuid.I, vid ulid.I, domainId uuid.I, domainName string) (ulid.I, error)
- func (r *Main) ConfirmRegistry(id uuid.I, vid ulid.I, name string) (ulid.I, error)
- func (r *Main) FindId(id uuid.I) (*State, error)
- func (r *Main) Init(id uuid.I, name string) (ulid.I, error)
- func (r *Main) InitRegistry(id uuid.I, vid ulid.I, name string) (ulid.I, error)
- type RegistryInfo
- type State
- type UnixDomainInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCommandUnknown = errors.New("unknown command")
View Source
var ErrDomainNameInUse = errors.New("domain name already in used")
View Source
var ErrMalformedDomainName = errors.New("malformed unix domain name")
View Source
var ErrUninitialized = errors.New("uninitialized")
View Source
var NoVC = events.NoVC
`NoVC` is a sentinel value that can be passed in place of `vid` to indicate that concurrency version checks are skipped.
Functions ¶
This section is empty.
Types ¶
type CmdAddUnixDomain ¶
func (*CmdAddUnixDomain) AggregateCommand ¶
func (*CmdAddUnixDomain) AggregateCommand()
type CmdConfirmRegistry ¶
type CmdConfirmRegistry struct {
Name string
}
func (*CmdConfirmRegistry) AggregateCommand ¶
func (*CmdConfirmRegistry) AggregateCommand()
type CmdInitMain ¶
type CmdInitMain struct {
Name string
}
func (*CmdInitMain) AggregateCommand ¶
func (*CmdInitMain) AggregateCommand()
type CmdInitRegistry ¶
type CmdInitRegistry struct {
Name string
}
func (*CmdInitRegistry) AggregateCommand ¶
func (*CmdInitRegistry) AggregateCommand()
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func (*Event) MarshalProto ¶
func (*Event) PbMainEvent ¶
func (*Event) UnmarshalProto ¶
type Main ¶
type Main struct {
// contains filtered or unexported fields
}
func (*Main) AddUnixDomain ¶
func (*Main) ConfirmRegistry ¶
type RegistryInfo ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) AggregateState ¶
func (*State) AggregateState()
func (*State) FindUnixDomainName ¶
func (st *State) FindUnixDomainName(name string) *UnixDomainInfo
func (*State) NumRegistries ¶
func (*State) Registries ¶
func (s *State) Registries() []RegistryInfo
type UnixDomainInfo ¶
Click to show internal directories.
Click to hide internal directories.