Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GramProductFeaturesMap is a map indexing the attribute names of // GramProductFeatures by view name. GramProductFeaturesMap = map[string][]string{ "default": { "logs_enabled", "tool_io_logs_enabled", "session_capture_enabled", "authz_challenge_logging_enabled", }, } )
Functions ¶
func ValidateGramProductFeatures ¶
func ValidateGramProductFeatures(result *GramProductFeatures) (err error)
ValidateGramProductFeatures runs the validations defined on the viewed result type GramProductFeatures.
func ValidateGramProductFeaturesView ¶
func ValidateGramProductFeaturesView(result *GramProductFeaturesView) (err error)
ValidateGramProductFeaturesView runs the validations defined on GramProductFeaturesView using the "default" view.
Types ¶
type GramProductFeatures ¶
type GramProductFeatures struct {
// Type to project
Projected *GramProductFeaturesView
// View to render
View string
}
GramProductFeatures is the viewed result type that is projected based on a view.
type GramProductFeaturesView ¶
type GramProductFeaturesView struct {
// Whether logging is enabled
LogsEnabled *bool
// Whether tool I/O logging is enabled
ToolIoLogsEnabled *bool
// Whether Claude Code session capture is enabled
SessionCaptureEnabled *bool
// Whether authz challenge logging to ClickHouse is enabled
AuthzChallengeLoggingEnabled *bool
}
GramProductFeaturesView is a type that runs validations on a projected type.
Click to show internal directories.
Click to hide internal directories.