Documentation ¶
Index ¶
- func Replay(events []ddd.Event) ddd.Aggregate
- type Approval
- func (a *Approval) Approved() bool
- func (a *Approval) Approver() (*auth.User, error)
- func (a *Approval) Complete(approve, override bool, user *auth.User, timestamp int64) error
- func (a *Approval) Completed() bool
- func (a *Approval) Destroy() error
- func (a *Approval) Destroyed() bool
- func (a *Approval) Events() []ddd.Event
- func (a *Approval) Overridden() bool
- func (a *Approval) Roles() []string
- func (a *Approval) RunUUID() string
- func (a *Approval) UUID() string
- func (a *Approval) Users() []string
- type ApproverError
- type Completed
- type Created
- type Destroyed
- type ReadRepository
- type WriteRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Approval ¶
type Approval struct {
// contains filtered or unexported fields
}
Approval represents a manual signoff for a deployment
func (*Approval) Overridden ¶
Overridden determines if this approval has been overriden
type ApproverError ¶
type ApproverError struct {
// contains filtered or unexported fields
}
ApproverError is an error related to approvers
func (ApproverError) Error ¶
func (e ApproverError) Error() string
type ReadRepository ¶
type ReadRepository struct {
// contains filtered or unexported fields
}
ReadRepository is the repository for dealing with Approval reads
func NewReadRepository ¶
func NewReadRepository(s storage.Storage) *ReadRepository
NewReadRepository creates a repository with the given storage
func (*ReadRepository) All ¶
func (rr *ReadRepository) All() ([]*Approval, error)
All gets all Approvals
type WriteRepository ¶
type WriteRepository struct {
// contains filtered or unexported fields
}
WriteRepository for creating/updating approvals
func NewWriteRepository ¶
func NewWriteRepository(s storage.Storage) *WriteRepository
NewWriteRepository builds the repository
func (*WriteRepository) Save ¶
func (wr *WriteRepository) Save(a *Approval) error
Save persists new events for the Approval
Click to show internal directories.
Click to hide internal directories.