branding

package
v0.0.0-...-4d12b9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: AGPL-3.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultName = "UTMStack"

Variables

This section is empty.

Functions

func Dir

func Dir() string

func InstallLicense

func InstallLicense(updatesFolder string) (bool, error)

func IsCustom

func IsCustom() bool

func LicensePath

func LicensePath() string

func LogoDataURI

func LogoDataURI() (string, bool)

LogoDataURI returns the shipped logo encoded as a base64 data URI, so it can be embedded directly in the nginx maintenance page (which is served by the host nginx while the backend — and its /uploads — is down). Returns false when no logo was shipped.

func Name

func Name() string

func Seed

func Seed(baseURL, internalKey string) error

Types

type Brand

type Brand struct {
	ProductName string `yaml:"productName"`
}

Brand mirrors the text fields the backend branding accepts; image files (logo, logoDark, favicon, reportLogo, reportCover) live alongside brand.yaml and are discovered by name (see seed.go).

func Get

func Get() *Brand

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL