Documentation
¶
Overview ¶
Package branding resolves the organisation branding SofCat UI shows: policy registry values first, then the config.yaml `branding:` block, field by field. Every field is validated here, in the SYSTEM service, so the UI only ever receives plain text, an http(s) URL, a #rrggbb colour and a sniffed image. A field that fails validation is dropped; it never fails the request.
Index ¶
Constants ¶
const (
MaxLogoBytes = 512 << 10
)
Caps on the admin-supplied values. Text is counted in runes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Branding ¶
type Branding struct {
Title string `json:"title"`
Tagline string `json:"tagline"`
HelpURL string `json:"helpUrl"`
HelpLabel string `json:"helpLabel"`
Accent string `json:"accent"`
LogoMime string `json:"logoMime"`
LogoBase64 string `json:"logoBase64"`
}
Branding is the GetBranding payload. Unset or rejected fields are empty.