icons

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(args []string) (map[string]interface{}, error)

Parse parses input and outputs login icon config.

Types

type LoginIcon

type LoginIcon struct {
	Realm               string `json:"realm,omitempty" xml:"realm,omitempty" yaml:"realm,omitempty"`
	Endpoint            string `json:"endpoint,omitempty" xml:"endpoint,omitempty" yaml:"endpoint,omitempty"`
	Priority            int    `json:"priority,omitempty" xml:"priority,omitempty" yaml:"priority,omitempty"`
	ClassName           string `json:"class_name,omitempty" xml:"class_name,omitempty" yaml:"class_name,omitempty"`
	Color               string `json:"color,omitempty" xml:"color,omitempty" yaml:"color,omitempty"`
	BackgroundColor     string `json:"background_color,omitempty" xml:"background_color,omitempty" yaml:"background_color,omitempty"`
	Text                string `json:"text,omitempty" xml:"text,omitempty" yaml:"text,omitempty"`
	TextColor           string `json:"text_color,omitempty" xml:"text_color,omitempty" yaml:"text_color,omitempty"`
	TextBackgroundColor string `json:"text_background_color,omitempty" xml:"text_background_color,omitempty" yaml:"text_background_color,omitempty"`

	// RegistrationEnabled controls whether visitors can registers.
	RegistrationEnabled bool `json:"registration_enabled,omitempty" xml:"registration_enabled,omitempty" yaml:"registration_enabled,omitempty"`
	// UsernameRecoveryEnabled controls whether a user could recover username by providing an email address.
	UsernameRecoveryEnabled bool `` /* 127-byte string literal not displayed */
	// PasswordRecoveryEnabled controls whether a user could recover password by providing an email address.
	PasswordRecoveryEnabled bool `` /* 127-byte string literal not displayed */
	// ContactSupportEnabled controls whether contact support link is available.
	ContactSupportEnabled bool `json:"contact_support_enabled,omitempty" xml:"contact_support_enabled,omitempty" yaml:"contact_support_enabled,omitempty"`

	// SupportLink is the link to the support portal.
	SupportLink string `json:"support_link,omitempty" xml:"support_link,omitempty" yaml:"support_link,omitempty"`
	// SupportEmail is the email address to reach support.
	SupportEmail string `json:"support_email,omitempty" xml:"support_email,omitempty" yaml:"support_email,omitempty"`
}

LoginIcon represents an icon associated with an identity store or provider.

func NewLoginIcon

func NewLoginIcon(s string) *LoginIcon

NewLoginIcon returns an instance of LoginIcon.

func (*LoginIcon) Configure

func (icon *LoginIcon) Configure(s string)

Configure sets defaults for an instance of LoginIcon.

func (*LoginIcon) GetConfig

func (icon *LoginIcon) GetConfig() map[string]string

GetConfig returns icon configuration.

func (*LoginIcon) SetEndpoint

func (icon *LoginIcon) SetEndpoint(s string)

SetEndpoint sets the endpoint associated with the icon.

func (*LoginIcon) SetRealm

func (icon *LoginIcon) SetRealm(s string)

SetRealm sets the realm associated with the icon.

Jump to

Keyboard shortcuts

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