Help us shape the future of Go! Take the 2026 Go Developer Survey

application

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "CustomApplication"

Variables

View Source
var TabExistsError = errors.New("tab already exists")

Functions

This section is empty.

Types

type ActionOverride

type ActionOverride struct {
	ActionName struct {
		Text string `xml:",chardata"`
	} `xml:"actionName"`
	Comment *struct {
		Text string `xml:",chardata"`
	} `xml:"comment"`
	Content struct {
		Text string `xml:",chardata"`
	} `xml:"content"`
	FormFactor struct {
		Text string `xml:",chardata"`
	} `xml:"formFactor"`
	SkipRecordTypeSelect struct {
		Text string `xml:",chardata"`
	} `xml:"skipRecordTypeSelect"`
	Type struct {
		Text string `xml:",chardata"`
	} `xml:"type"`
	PageOrSobjectType struct {
		Text string `xml:",chardata"`
	} `xml:"pageOrSobjectType"`
}

func (ActionOverride) MarshalXML

func (o ActionOverride) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type ConsoleConfig added in v0.69.0

type ConsoleConfig struct {
	DetailPageRefreshMethod *TextLiteral `xml:"detailPageRefreshMethod"`
	FooterColor             *TextLiteral `xml:"footerColor"`
	HeaderColor             *TextLiteral `xml:"headerColor"`
	KeyboardShortcuts       *struct {
		CustomShortcuts []struct {
			Action      TextLiteral  `xml:"action"`
			Active      TextLiteral  `xml:"active"`
			Description *TextLiteral `xml:"description"`
			EventName   TextLiteral  `xml:"eventName"`
			KeyCommand  TextLiteral  `xml:"keyCommand"`
		} `xml:"customShortcuts"`
		DefaultShortcuts []struct {
			Action     TextLiteral `xml:"action"`
			Active     TextLiteral `xml:"active"`
			KeyCommand TextLiteral `xml:"keyCommand"`
		} `xml:"defaultShortcuts"`
	} `xml:"keyboardShortcuts"`
	ListPlacement *struct {
		Height   *TextLiteral `xml:"height"`
		Location TextLiteral  `xml:"location"`
		Units    *TextLiteral `xml:"units"`
		Width    *TextLiteral `xml:"width"`
	} `xml:"listPlacement"`
	ListRefreshMethod  *TextLiteral  `xml:"listRefreshMethod"`
	PrimaryTabColor    *TextLiteral  `xml:"primaryTabColor"`
	WhitelistedDomains []TextLiteral `xml:"whitelistedDomains"`
}

type CustomApplication

type CustomApplication struct {
	metadata.MetadataInfo
	XMLName         xml.Name         `xml:"CustomApplication"`
	Xmlns           string           `xml:"xmlns,attr"`
	ActionOverrides []ActionOverride `xml:"actionOverrides"`
	Brand           *struct {
		HeaderColor struct {
			Text string `xml:",chardata"`
		} `xml:"headerColor"`
		Logo *struct {
			Text string `xml:",chardata"`
		} `xml:"logo"`
		LogoVersion *struct {
			Text string `xml:",chardata"`
		} `xml:"logoVersion"`
		ShouldOverrideOrgTheme struct {
			Text string `xml:",chardata"`
		} `xml:"shouldOverrideOrgTheme"`
	} `xml:"brand"`
	ConsoleConfig     *ConsoleConfig `xml:"consoleConfig"`
	DefaultLandingTab *struct {
		Text string `xml:",chardata"`
	} `xml:"defaultLandingTab"`
	Description *struct {
		Text string `xml:",chardata"`
	} `xml:"description"`
	FormFactors []struct {
		Text string `xml:",chardata"`
	} `xml:"formFactors"`
	IsNavAutoTempTabsDisabled *struct {
		Text string `xml:",chardata"`
	} `xml:"isNavAutoTempTabsDisabled"`
	IsNavPersonalizationDisabled *struct {
		Text string `xml:",chardata"`
	} `xml:"isNavPersonalizationDisabled"`
	IsNavTabPersistenceDisabled *struct {
		Text string `xml:",chardata"`
	} `xml:"isNavTabPersistenceDisabled"`
	IsOmniPinnedViewEnabled *TextLiteral `xml:"isOmniPinnedViewEnabled"`
	IsServiceCloudConsole   *TextLiteral `xml:"isServiceCloudConsole"`
	Label                   *struct {
		Text string `xml:",chardata"`
	} `xml:"label"`
		Text string `xml:",chardata"`
	} `xml:"logo"`
	NavType *struct {
		Text string `xml:",chardata"`
	} `xml:"navType"`
	Preferences            *Preferences              `xml:"preferences"`
	ProfileActionOverrides ProfileActionOverrideList `xml:"profileActionOverrides"`
	SetupExperience        *struct {
		Text string `xml:",chardata"`
	} `xml:"setupExperience"`
	Tabs   []TextLiteral `xml:"tabs"`
	UiType *struct {
		Text string `xml:",chardata"`
	} `xml:"uiType"`
	UtilityBar *struct {
		Text string `xml:",chardata"`
	} `xml:"utilityBar"`
	WorkspaceConfig *struct {
		Mappings []struct {
			FieldName *string `xml:"fieldName"`
			Tab       *string `xml:"tab"`
		} `xml:"mappings"`
	} `xml:"workspaceConfig"`
}

func Open

func Open(path string) (*CustomApplication, error)

func (*CustomApplication) AddTab

func (p *CustomApplication) AddTab(tabName string) error

func (*CustomApplication) DeleteActionOverrides

func (o *CustomApplication) DeleteActionOverrides(filters ...ProfileActionOverrideFilter) error

func (*CustomApplication) DeleteTab

func (p *CustomApplication) DeleteTab(tabName string) error

func (*CustomApplication) GetProfileActionOverrides

func (o *CustomApplication) GetProfileActionOverrides(filters ...ProfileActionOverrideFilter) []ProfileActionOverride

func (*CustomApplication) GetTabs

func (p *CustomApplication) GetTabs() []TextLiteral

func (*CustomApplication) ResetActionOverrides

func (o *CustomApplication) ResetActionOverrides(filters ...ProfileActionOverrideFilter) error

func (*CustomApplication) SetMetadata

func (c *CustomApplication) SetMetadata(m metadata.MetadataInfo)

func (*CustomApplication) Tidy

func (a *CustomApplication) Tidy()

func (*CustomApplication) Type

type Preferences added in v0.69.0

type Preferences struct {
	EnableCustomizeMyTabs        TextLiteral `xml:"enableCustomizeMyTabs"`
	EnableKeyboardShortcuts      TextLiteral `xml:"enableKeyboardShortcuts"`
	EnableListViewHover          TextLiteral `xml:"enableListViewHover"`
	EnableListViewReskin         TextLiteral `xml:"enableListViewReskin"`
	EnableMultiMonitorComponents TextLiteral `xml:"enableMultiMonitorComponents"`
	EnablePinTabs                TextLiteral `xml:"enablePinTabs"`
	EnableTabHover               TextLiteral `xml:"enableTabHover"`
	EnableTabLimits              TextLiteral `xml:"enableTabLimits"`
	SaveUserSessions             TextLiteral `xml:"saveUserSessions"`
}

type ProfileActionOverride

type ProfileActionOverride struct {
	ActionName        string  `xml:"actionName"`
	Content           *string `xml:"content"`
	FormFactor        string  `xml:"formFactor"`
	PageOrSobjectType string  `xml:"pageOrSobjectType"`
	RecordType        *string `xml:"recordType"`
	Type              string  `xml:"type"`
	Profile           string  `xml:"profile"`
}

func (ProfileActionOverride) MarshalXML

func (o ProfileActionOverride) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type ProfileActionOverrideFilter

type ProfileActionOverrideFilter func(ProfileActionOverride) bool

type ProfileActionOverrideList

type ProfileActionOverrideList []ProfileActionOverride

func (ProfileActionOverrideList) Tidy

func (pao ProfileActionOverrideList) Tidy()

Jump to

Keyboard shortcuts

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