Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthorizationConfig ¶
type AuthorizationConfig struct {
Enabled bool
KetoRemoteRead string `validate:"required_if=Enabled True"`
KetoRemoteWrite string `validate:"required_if=Enabled True"`
Caching *InMemoryCacheConfig `validate:"required_if=Enabled True"`
UseMiddleware bool
}
type Config ¶
type Config struct {
APIHost string `validate:"required"`
Environment string `validate:"required"`
Port int `validate:"required"`
SentryDSN string
OauthClientID string
Streams Streams `validate:"dive,required"`
Docs Documentations
Applications []modelsv2.Application `validate:"dive"`
Authorization *AuthorizationConfig `validate:"required"`
Database *DatabaseConfig `validate:"required"`
Mlflow *MlflowConfig `validate:"required"`
DefaultSecretStorage *SecretStorage `validate:"required"`
UI *UIConfig
Webhooks *webhooks.Config
UpdateProjectConfig *UpdateProjectConfig
}
func LoadAndValidate ¶
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
func (*Config) DefaultSecretStorageModel ¶ added in v1.8.0
func (c *Config) DefaultSecretStorageModel() *models.SecretStorage
DefaultSecretStorageModel returns the default secret storage model from the given config. The returned secret storage model is a globally-scoped secret storage.
func (*Config) ListenAddress ¶
type DatabaseConfig ¶
type DatabaseConfig struct {
Host string `validate:"required"`
Port int `validate:"required"`
User string `validate:"required"`
Password string `validate:"required"`
Database string `validate:"required"`
MigrationPath string `validate:"required,url"`
ConnMaxIdleTime time.Duration
ConnMaxLifetime time.Duration
MaxIdleConns int
MaxOpenConns int
}
type Documentation ¶
type Documentations ¶
type Documentations []Documentation
type InMemoryCacheConfig ¶ added in v1.9.0
type MlflowConfig ¶
type MlflowConfig struct {
TrackingURL string `validated:"required,url"`
}
type SecretStorage ¶ added in v1.8.0
type SecretStorage struct {
// Name is the name of the secret storage.
Name string `validate:"required"`
// Type is the type of the secret storage.
Type string `validate:"oneof=internal vault"`
// Config is the configuration of the secret storage.
Config models.SecretStorageConfig
}
SecretStorage represents the configuration for a secret storage.
type UIConfig ¶
type UIConfig struct {
StaticPath string `validated:"required"`
IndexPath string `validated:"required"`
ClockworkUIHomepage string `json:"REACT_APP_CLOCKWORK_UI_HOMEPAGE"`
KubeflowUIHomepage string `json:"REACT_APP_KUBEFLOW_UI_HOMEPAGE"`
AllowCustomStream bool `json:"REACT_APP_ALLOW_CUSTOM_STREAM"`
AllowCustomTeam bool `json:"REACT_APP_ALLOW_CUSTOM_TEAM"`
ProjectInfoUpdateEnabled bool `json:"REACT_APP_PROJECT_INFO_UPDATE_ENABLED"`
}
UIConfig stores the configuration for the UI.
type UpdateProjectConfig ¶ added in v1.13.1
type UpdateProjectConfig struct {
// endpoint to be called when the update projects config endpoint is called
Endpoint string `validate:"omitempty,url"`
// payload template to define the payload in a JSON template to be sent to the endpoint
PayloadTemplate string
// response template to define the response in the JSON payload given by the endpoint
// through the template that should be sent back to the user
ResponseTemplate string
// labels blacklist that hides/prevents labels contained within to not be modifiable
LabelsBlacklist []string
}
Click to show internal directories.
Click to hide internal directories.