Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitData ¶
type InitData[T modconfig.ModTreeItem] struct { Workspace *workspace.Workspace WorkspaceEvents *dashboardworkspace.WorkspaceEvents Result *InitResult ShutdownTelemetry func() ExportManager *export.Manager Targets []modconfig.ModTreeItem DefaultClient *db_client.DbClient }
func NewErrorInitData ¶
func NewErrorInitData[T modconfig.ModTreeItem](err error) *InitData[T]
func NewInitData ¶
func (*InitData[T]) GetSingleTarget ¶
func (i *InitData[T]) GetSingleTarget() (modconfig.ModTreeItem, error)
GetSingleTarget validates there is only a single target and returns it
type InitResult ¶
type InitResult struct { error_helpers.ErrorAndWarnings Messages []string // allow overriding of the display functions DisplayMessage func(ctx context.Context, m string) DisplayWarning func(ctx context.Context, w string) }
func (*InitResult) AddMessage ¶
func (r *InitResult) AddMessage(messages ...string)
func (*InitResult) AddWarnings ¶
func (r *InitResult) AddWarnings(warnings ...string)
func (*InitResult) DisplayMessages ¶
func (r *InitResult) DisplayMessages()
func (*InitResult) HasMessages ¶
func (r *InitResult) HasMessages() bool
func (*InitResult) Merge ¶
func (r *InitResult) Merge(other InitResult)
Click to show internal directories.
Click to hide internal directories.