Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AdrStatusDescriptions = map[AdrStatus]string{ UNKNOWN: "status is not determined", PROPOSED: "the record has been proposed but is not accepted yet by stakeholders", ACCEPTED: "the record has been accepted by stakeholders", DEPRECATED: "the decision record is deprecated and no longer applies", SUPERSEDED: "the decision record has been superseded by a new one", OBSERVED: "the decision was observed after the fact", }
AdrStatusDescriptions documents the meaning of each status.
View Source
var AdrStatuses = []AdrStatus{UNKNOWN, PROPOSED, ACCEPTED, DEPRECATED, SUPERSEDED, OBSERVED}
AdrStatuses lists every allowed status in display order.
Functions ¶
func AllowedStatuses ¶
func AllowedStatuses() string
AllowedStatuses returns the allowed statuses formatted for help/error messages, e.g. `"unknown", "proposed", "accepted", "deprecated", "superseded" or "observed"`.
func MarshalYAML ¶
Types ¶
type AdrData ¶
type AdrData struct {
ID string `yaml:"id"`
Title string `yaml:"title"`
Author string `yaml:"author"`
Status AdrStatus `yaml:"status"`
CreationDate time.Time `yaml:"creation_date" mapstructure:"creation_date"`
LastUpdateDate time.Time `yaml:"last_update_date" mapstructure:"last_update_date"`
Tags Set[string] `yaml:"tags,omitempty"`
Superseders Set[string] `yaml:"superseders,omitempty"`
Name string `yaml:"-"`
Body string `yaml:"-"`
}
type AdrStatus ¶
type AdrStatus string
AdrStatus type
const ( UNKNOWN AdrStatus = "unknown" PROPOSED AdrStatus = "proposed" ACCEPTED AdrStatus = "accepted" DEPRECATED AdrStatus = "deprecated" SUPERSEDED AdrStatus = "superseded" OBSERVED AdrStatus = "observed" )
ADR status enums
func ParseStatus ¶
ParseStatus validates a raw value and returns the matching AdrStatus.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (Service) GetRecords ¶
func (Service) UpdateRecord ¶
Click to show internal directories.
Click to hide internal directories.