Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MicroFrontendAttribute ¶
type MicroFrontendAttribute struct { Name string `json:"name"` Value runtime.RawExtension `json:"value"` }
func (*MicroFrontendAttribute) ToContract ¶
func (attribute *MicroFrontendAttribute) ToContract() *contract.MicroFrontendAttributeTransfer
type MicroFrontendConfig ¶
type MicroFrontendConfig struct { ModuleUri string Preload *bool `json:"preload,omitempty"` Proxy *bool `json:"proxy,omitempty"` HashSuffix string `json:"hash-suffix,omitempty"` StyleRelativePaths []string `json:"style-relative-paths,omitempty"` ContextElements []MicroFrontendContextElement `json:"context-elements,omitempty"` MicroFrontendNamespace string `json:"microfrontend-namespace,omitempty"` MicroFrontendName string `json:"microfrontend-name,omitempty"` MicroFrontendLabels map[string]string `json:"microfrontend-labels,omitempty"` }
func CreateFrontendConfigFromWebComponent ¶
func CreateFrontendConfigFromWebComponent(webComponent *microfrontendv1alpha1.WebComponent) *MicroFrontendConfig
func (*MicroFrontendConfig) ExtractLabels ¶
func (frontendConfig *MicroFrontendConfig) ExtractLabels() map[string]string
func (*MicroFrontendConfig) ExtractModuleUri ¶
func (frontendConfig *MicroFrontendConfig) ExtractModuleUri() string
func (*MicroFrontendConfig) ExtractStyles ¶
func (frontendConfig *MicroFrontendConfig) ExtractStyles(finalModuleUri string) []string
type MicroFrontendContextElement ¶
type MicroFrontendContextElement struct { ContextNames []string `json:"context-names"` Element string `json:"element"` Priority *int `json:"priority,omitempty"` Attributes []MicroFrontendAttribute `json:"attributes,omitempty"` Roles []string `json:"roles,omitempty"` }
func (*MicroFrontendContextElement) ExtractAttributes ¶
func (context *MicroFrontendContextElement) ExtractAttributes() []MicroFrontendAttribute
func (*MicroFrontendContextElement) ExtractContextNames ¶
func (context *MicroFrontendContextElement) ExtractContextNames() []string
func (*MicroFrontendContextElement) ExtractRoles ¶
func (context *MicroFrontendContextElement) ExtractRoles() []string
type MicroFrontendIcon ¶
type MicroFrontendIcon struct { Mime string `json:"mime"` Data string `json:"data"` Url string `json:"url"` }
func (*MicroFrontendIcon) ExtractIconPath ¶
func (icon *MicroFrontendIcon) ExtractIconPath(iconPath string) string
type MicroFrontendNavigation ¶
type MicroFrontendNavigation struct {}
func (*MicroFrontendNavigation) ExtractAttributes ¶
func (navigation *MicroFrontendNavigation) ExtractAttributes() []MicroFrontendAttribute
func (*MicroFrontendNavigation) ExtractRoles ¶
func (navigation *MicroFrontendNavigation) ExtractRoles() []string
Click to show internal directories.
Click to hide internal directories.