Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actions ¶
type Actions []string
The Allowed Http-Methods for this resource. If empty, all methods are allowed. Allowed aliases are "read-only" (GET, HEAD) and "read-change" (GET, HEAD, PATCH).
func (Actions) GetAllowedList ¶
type OpenapiConfig ¶
type OpenapiConfig struct {
Title string `json:"name"`
Description string `json:"description"`
Version string `json:"version"`
Servers []OpenapiServer `json:"servers"`
}
type OpenapiServer ¶
type PProfConfig ¶
type PredefinedConfig ¶
type ResourceConfig ¶
type ResourceConfig struct {
Id string `json:"id"`
Group string `json:"group"`
Version string `json:"version"`
Resource string `json:"resource"`
AllowedSorts []string `yaml:"allowedSorts" json:"allowedSorts"`
Owns []string `json:"owns"`
References []string `json:"references"`
Secrets []string `json:"secrets"`
Actions Actions `json:"actions"`
Store StoreOpts `json:"store"`
}
type SecurityConfig ¶
type ServerConfig ¶
type ServerConfig struct {
Address string `json:"address"`
BasePath string `json:"basepath"`
AddGroupToPath bool `yaml:"addGroupToPath" json:"addGroupToPath"`
Resources []ResourceConfig `json:"resources"`
Predefined []PredefinedConfig `json:"predefined"`
Openapi OpenapiConfig `json:"openapi"`
Security SecurityConfig `json:"security"`
Tree TreeConfig `json:"tree"`
Pprof PProfConfig `json:"pprof"`
}
func ReadConfig ¶
func ReadConfig(filepath string) (*ServerConfig, error)
type StoreOpts ¶
type StoreOpts struct {
// DisableInformerCache if true, the informer will not use a local cache and will directly forward events to the event handler.
DisableInformerCache bool `json:"disableInformerCache" yaml:"disableInformerCache"`
// DatabaseFilepath is the filepath where the badger database will be stored. If empty, the database will be in-memory only.
DatabaseFilepath string `json:"databaseFilepath" yaml:"databaseFilepath"`
// OptimizeMemoryUsage if true, the database will be optimized for memory usage.
OptimizeMemoryUsage bool `json:"optimizeMemoryUsage" yaml:"optimizeMemoryUsage"`
}
type TreeConfig ¶
type TreeConfig struct {
Enabled bool `json:"enabled"`
}
Click to show internal directories.
Click to hide internal directories.