Documentation ¶
Index ¶
- Variables
- func IsPackageError(err error) bool
- type Advancer
- type ArgumentError
- type Behavior
- type CannotRemovePrimaryGroupError
- type CmdAddGroupUser
- type CmdCreateGroup
- type CmdCreateUser
- type CmdDeleteGroup
- type CmdDeleteUser
- type CmdInit
- type CmdRemoveGroupUser
- type Event
- type EventTypeError
- type Group
- type GroupConflictError
- type InvalidCommandError
- type JournalError
- type MissingGroupError
- type MissingUserError
- type NewEventsError
- type NotIdempotentError
- type PreconditionError
- type State
- func (*State) AggregateState()
- func (st *State) FindGid(gid uint32) (Group, bool)
- func (st *State) FindUser(name string) (User, bool)
- func (st *State) Groups() []Group
- func (s *State) Id() uuid.I
- func (st *State) Name() string
- func (s *State) SetVid(vid ulid.I)
- func (st *State) Users() []User
- func (s *State) Vid() ulid.I
- type UninitializedError
- type UnixDomains
- func (r *UnixDomains) AddGroupUser(id uuid.I, vid ulid.I, cmd *CmdAddGroupUser) (ulid.I, error)
- func (r *UnixDomains) CreateGroup(id uuid.I, vid ulid.I, group string, gid uint32) (ulid.I, error)
- func (r *UnixDomains) CreateUser(id uuid.I, vid ulid.I, cmd *CmdCreateUser) (ulid.I, error)
- func (r *UnixDomains) DeleteGroup(id uuid.I, vid ulid.I, gid uint32) (ulid.I, error)
- func (r *UnixDomains) DeleteUser(id uuid.I, vid ulid.I, uid uint32) (ulid.I, error)
- func (r *UnixDomains) FindId(id uuid.I) (*State, error)
- func (r *UnixDomains) Init(id uuid.I, cmd *CmdInit) (ulid.I, error)
- func (r *UnixDomains) RemoveGroupUser(id uuid.I, vid ulid.I, cmd *CmdRemoveGroupUser) (ulid.I, error)
- type User
- type UserConflictError
Constants ¶
This section is empty.
Variables ¶
View Source
var NoVC = events.NoVC
View Source
var RetryNoVC = events.RetryNoVC
Functions ¶
func IsPackageError ¶
Types ¶
type Advancer ¶
type Advancer struct {
// contains filtered or unexported fields
}
The bools indicate which part of the state has been duplicated.
type ArgumentError ¶
type ArgumentError struct {
Reason string
}
func (*ArgumentError) Error ¶
func (err *ArgumentError) Error() string
type CannotRemovePrimaryGroupError ¶
type CannotRemovePrimaryGroupError struct {
Gid uint32
}
func (*CannotRemovePrimaryGroupError) Error ¶
func (err *CannotRemovePrimaryGroupError) Error() string
type CmdAddGroupUser ¶
func (*CmdAddGroupUser) AggregateCommand ¶
func (*CmdAddGroupUser) AggregateCommand()
type CmdCreateGroup ¶
func (*CmdCreateGroup) AggregateCommand ¶
func (*CmdCreateGroup) AggregateCommand()
type CmdCreateUser ¶
func (*CmdCreateUser) AggregateCommand ¶
func (*CmdCreateUser) AggregateCommand()
type CmdDeleteGroup ¶
type CmdDeleteGroup struct {
Gid uint32
}
func (*CmdDeleteGroup) AggregateCommand ¶
func (*CmdDeleteGroup) AggregateCommand()
type CmdDeleteUser ¶
type CmdDeleteUser struct {
Uid uint32
}
func (*CmdDeleteUser) AggregateCommand ¶
func (*CmdDeleteUser) AggregateCommand()
type CmdInit ¶
type CmdInit struct {
Name string
}
func (*CmdInit) AggregateCommand ¶
func (*CmdInit) AggregateCommand()
type CmdRemoveGroupUser ¶
func (*CmdRemoveGroupUser) AggregateCommand ¶
func (*CmdRemoveGroupUser) AggregateCommand()
type Event ¶
func (*Event) UnmarshalProto ¶
type EventTypeError ¶
type EventTypeError struct{}
func (*EventTypeError) Error ¶
func (err *EventTypeError) Error() string
type GroupConflictError ¶
func (*GroupConflictError) Error ¶
func (err *GroupConflictError) Error() string
type InvalidCommandError ¶
type InvalidCommandError struct{}
func (*InvalidCommandError) Error ¶
func (err *InvalidCommandError) Error() string
type JournalError ¶
type JournalError struct {
Err error
}
func (*JournalError) Error ¶
func (err *JournalError) Error() string
func (*JournalError) Unwrap ¶
func (err *JournalError) Unwrap() error
type MissingGroupError ¶
type MissingGroupError struct {
Gid uint32
}
func (*MissingGroupError) Error ¶
func (err *MissingGroupError) Error() string
type MissingUserError ¶
type MissingUserError struct {
Uid uint32
}
func (*MissingUserError) Error ¶
func (err *MissingUserError) Error() string
type NewEventsError ¶
type NewEventsError struct {
Err error
}
func (*NewEventsError) Error ¶
func (err *NewEventsError) Error() string
func (*NewEventsError) Unwrap ¶
func (err *NewEventsError) Unwrap() error
type NotIdempotentError ¶
type NotIdempotentError struct { }
func (*NotIdempotentError) Error ¶
func (err *NotIdempotentError) Error() string
type PreconditionError ¶
type PreconditionError struct {
Reason string
}
func (*PreconditionError) Error ¶
func (err *PreconditionError) Error() string
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) AggregateState ¶
func (*State) AggregateState()
type UninitializedError ¶
type UninitializedError struct{}
func (*UninitializedError) Error ¶
func (err *UninitializedError) Error() string
type UnixDomains ¶
type UnixDomains struct {
// contains filtered or unexported fields
}
func New ¶
func New(journal *events.Journal) *UnixDomains
func (*UnixDomains) AddGroupUser ¶
func (r *UnixDomains) AddGroupUser( id uuid.I, vid ulid.I, cmd *CmdAddGroupUser, ) (ulid.I, error)
func (*UnixDomains) CreateGroup ¶
func (*UnixDomains) CreateUser ¶
func (r *UnixDomains) CreateUser( id uuid.I, vid ulid.I, cmd *CmdCreateUser, ) (ulid.I, error)
func (*UnixDomains) DeleteGroup ¶
func (*UnixDomains) DeleteUser ¶
func (*UnixDomains) RemoveGroupUser ¶
func (r *UnixDomains) RemoveGroupUser( id uuid.I, vid ulid.I, cmd *CmdRemoveGroupUser, ) (ulid.I, error)
Click to show internal directories.
Click to hide internal directories.