Documentation
¶
Index ¶
Constants ¶
View Source
const AuthMethodCredentials = "method_credentials"
View Source
const AuthMethodOIDC = "method_oidc"
Variables ¶
This section is empty.
Functions ¶
func Update ¶
func Update(updateFunc func(*RuntimeConfig) error) error
Types ¶
type AgentConfig ¶
type AuthConfig ¶
type AuthConfig struct { General AuthGeneralConfig `json:"general"` OIDC AuthOIDCConfig `json:"oidc"` }
type AuthGeneralConfig ¶
type AuthOIDCConfig ¶
type AuthOIDCConfig struct { ClientID string `json:"client_id"` ClientSecret string `json:"client_secret"` IssuerURL string `json:"issuer_url"` RedirectURL string `json:"redirect_url"` AutomaticUserCreation bool `json:"automatic_user_creation"` UsernameClaim string `json:"username_claim"` RolesClaim string `json:"role_field"` RequiredRole string `json:"required_role"` Prompt string `json:"prompt"` AdditionalScopes []string `json:"scopes"` }
type GeneralConfig ¶
type RuntimeConfig ¶
type RuntimeConfig struct { ConfigVersion int `json:"version"` IsSetupComplete bool `json:"is_setup_complete"` Auth AuthConfig `json:"auth"` Agent AgentConfig `json:"agent"` General GeneralConfig `json:"general"` }
func Get ¶
func Get() RuntimeConfig
func MakeDefaultConfig ¶
func MakeDefaultConfig() RuntimeConfig
func (RuntimeConfig) ToAdminDTO ¶
func (conf RuntimeConfig) ToAdminDTO() apitypes.AdminConfigResponseDTO
func (RuntimeConfig) ToPublicDTO ¶
func (conf RuntimeConfig) ToPublicDTO() apitypes.PublicConfigDTO
Click to show internal directories.
Click to hide internal directories.