Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrandingStruct ¶
type BrandingStruct struct { Logo string `default:"/static/img/quay-horizontal-color.svg" validate:"url" json:"logo,omitempty" yaml:"logo,omitempty"` }
BrandingStruct represents the BrandingStruct config fields
func NewBrandingStruct ¶
func NewBrandingStruct(fullConfig map[string]interface{}) (*BrandingStruct, error)
NewBrandingStruct creates a new BrandingStruct
type UserVisibleSettingsFieldGroup ¶
type UserVisibleSettingsFieldGroup struct { AvatarKind string `default:"local" validate:"" json:"AVATAR_KIND,omitempty" yaml:"AVATAR_KIND,omitempty"` Branding *BrandingStruct `default:"" validate:"" json:"BRANDING,omitempty" yaml:"BRANDING,omitempty"` ContactInfo []interface{} `default:"[]" validate:"" json:"CONTACT_INFO,omitempty" yaml:"CONTACT_INFO,omitempty"` RegistryTitle string `default:"Project Quay" validate:"" json:"REGISTRY_TITLE,omitempty" yaml:"REGISTRY_TITLE,omitempty"` RegistryTitleShort string `default:"Project Quay" validate:"" json:"REGISTRY_TITLE_SHORT,omitempty" yaml:"REGISTRY_TITLE_SHORT,omitempty"` SearchMaxResultPageCount int `default:"10" validate:"" json:"SEARCH_MAX_RESULT_PAGE_COUNT,omitempty" yaml:"SEARCH_MAX_RESULT_PAGE_COUNT,omitempty"` SearchResultsPerPage int `default:"10" validate:"" json:"SEARCH_RESULTS_PER_PAGE,omitempty" yaml:"SEARCH_RESULTS_PER_PAGE,omitempty"` EnterpriseLogoUrl string `default:"" validate:"" json:"ENTERPRISE_LOGO_URL,omitempty" yaml:"ENTERPRISE_LOGO_URL,omitempty"` }
UserVisibleSettingsFieldGroup represents the UserVisibleSettingsFieldGroup config fields
func NewUserVisibleSettingsFieldGroup ¶
func NewUserVisibleSettingsFieldGroup(fullConfig map[string]interface{}) (*UserVisibleSettingsFieldGroup, error)
NewUserVisibleSettingsFieldGroup creates a new UserVisibleSettingsFieldGroup
func (*UserVisibleSettingsFieldGroup) Fields ¶
func (fg *UserVisibleSettingsFieldGroup) Fields() []string
Fields returns a list of strings representing the fields in this field group
func (*UserVisibleSettingsFieldGroup) Validate ¶
func (fg *UserVisibleSettingsFieldGroup) Validate(opts shared.Options) []shared.ValidationError
Validate checks the configuration settings for this field group
Click to show internal directories.
Click to hide internal directories.