Documentation
¶
Overview ¶
Package sitecontract is where a site release's contract meets the application it is a front end of (#2679): a release's _application file declares the application's contract versions it works with, a promotion into an environment that is a part of that application is refused when the release excludes the application's contract, and an application release reads what each of its site parts serves.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parts ¶
type Parts func(ctx context.Context, siteName, environment string) (application string, version int, ok bool)
Parts names the application a site environment is a part of and the contract version it declares; ok is false for an environment that is a part of none.
type Reader ¶
type Reader struct {
Store site.Store
// Find reads a site by name or id.
Find func(ctx context.Context, ref string) (*site.Site, error)
}
Reader reads what a site part serves and the contract a release declares, for an application release's check.