mirror of
https://github.com/siderolabs/image-factory.git
synced 2026-05-05 04:16:20 +02:00
Just a few changes: * introduce license split * add 'Enterprise' label to Enterprise version * add a separate test pipeline Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
24 lines
557 B
Go
24 lines
557 B
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
package version
|
|
|
|
import (
|
|
"sync"
|
|
|
|
"github.com/siderolabs/image-factory/pkg/enterprise"
|
|
)
|
|
|
|
// ServerString returns the server string including enterprise info if enabled.
|
|
var ServerString = sync.OnceValue(func() string {
|
|
server := "Image Factory"
|
|
if enterprise.Enabled() {
|
|
server = "Enterprise " + server
|
|
}
|
|
|
|
server += " " + Tag
|
|
|
|
return server
|
|
})
|