Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CreatePostgresTable represents a query to create the Postgres settings table. CreatePostgresTable = `` /* 271-byte string literal not displayed */ // CreateSqliteTable represents a query to create the Sqlite settings table. CreateSqliteTable = `` /* 327-byte string literal not displayed */ )
View Source
const (
TableSettings = "settings"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EngineOpt ¶
type EngineOpt func(*engine) error
EngineOpt represents a configuration option to initialize the database engine for Settings.
func WithClient ¶
WithClient sets the gorm.io/gorm client in the database engine for Settings.
func WithContext ¶
WithContext sets the context in the database engine for Settings.
func WithLogger ¶
WithLogger sets the github.com/sirupsen/logrus logger in the database engine for Settings.
func WithSkipCreation ¶
WithSkipCreation sets the skip creation logic in the database engine for Settings.
type SettingsInterface ¶
type SettingsInterface interface { // CreateSettings defines a function that creates a platform settings record. CreateSettings(context.Context, *settings.Platform) (*settings.Platform, error) // GetSettings defines a function that gets platform settings. GetSettings(context.Context) (*settings.Platform, error) // UpdateSettings defines a function that updates platform settings. UpdateSettings(context.Context, *settings.Platform) (*settings.Platform, error) }
SettingsInterface represents the Vela interface for settings functions with the supported Database backends.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.