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

application

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 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 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"`
	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"`
	Label *struct {
		Text string `xml:",chardata"`
	} `xml:"label"`
		Text string `xml:",chardata"`
	} `xml:"logo"`
	NavType *struct {
		Text string `xml:",chardata"`
	} `xml:"navType"`
	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 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