uservisiblesettings

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 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" yaml:"footer_img"`
	FooterUrl string `default:"" validate:"url" json:"footer_url" yaml:"footer_url"`
}

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" yaml:"AVATAR_KIND"`
	Branding                 *BrandingStruct `default:"" validate:"" json:"BRANDING" yaml:"BRANDING"`
	ContactInfo              []interface{}   `default:"[]" validate:"" json:"CONTACT_INFO" yaml:"CONTACT_INFO"`
	RegistryTitle            string          `default:"Project Quay" validate:"" json:"REGISTRY_TITLE" yaml:"REGISTRY_TITLE"`
	RegistryTitleShort       string          `default:"Project Quay" validate:"" json:"REGISTRY_TITLE_SHORT" yaml:"REGISTRY_TITLE_SHORT"`
	SearchMaxResultPageCount int             `default:"10" validate:"" json:"SEARCH_MAX_RESULT_PAGE_COUNT" yaml:"SEARCH_MAX_RESULT_PAGE_COUNT"`
	SearchResultsPerPage     int             `default:"10" validate:"" json:"SEARCH_RESULTS_PER_PAGE" yaml:"SEARCH_RESULTS_PER_PAGE"`
}

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