uservisiblesettings

package
v0.1.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrandingStruct

type BrandingStruct struct {
	FooterImg string `default:"" validate:"url" json:"footer_img,omitempty" yaml:"footer_img,omitempty"`
	FooterUrl string `default:"" validate:"url" json:"footer_url,omitempty" yaml:"footer_url,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

Validate checks the configuration settings for this field group

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL