environments

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Duplicate = "Duplicate"
	Delete    = "Delete"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(view *View, repo repository.Repository, envState *state.Environments, explorer *explorer.Explorer) *Controller

func (*Controller) LoadData

func (c *Controller) LoadData() error

type View

type View struct {
	// contains filtered or unexported fields
}

func NewView

func NewView(theme *chapartheme.Theme) *View

func (*View) AddTreeViewNode

func (v *View) AddTreeViewNode(env *domain.Environment)

func (*View) CloseTab

func (v *View) CloseTab(id string)

func (*View) HidePrompt

func (v *View) HidePrompt(id string)

func (*View) IsTabOpen

func (v *View) IsTabOpen(id string) bool

func (*View) Layout

func (v *View) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions

func (*View) OpenContainer

func (v *View) OpenContainer(env *domain.Environment)

func (*View) OpenTab

func (v *View) OpenTab(env *domain.Environment)

func (*View) PopulateTreeView

func (v *View) PopulateTreeView(envs []*domain.Environment)

func (*View) ReloadContainerData

func (v *View) ReloadContainerData(env *domain.Environment)

func (*View) RemoveTreeViewNode

func (v *View) RemoveTreeViewNode(id string)

func (*View) SetOnImportEnv

func (v *View) SetOnImportEnv(onImportEnv func())

func (*View) SetOnItemsChanged

func (v *View) SetOnItemsChanged(onItemsChanged func(id string, items []domain.KeyValue))

func (*View) SetOnNewEnv

func (v *View) SetOnNewEnv(onNewEnv func())

func (*View) SetOnSave

func (v *View) SetOnSave(onSave func(id string))

func (*View) SetOnTabClose

func (v *View) SetOnTabClose(onTabClose func(id string))

func (*View) SetOnTabSelected

func (v *View) SetOnTabSelected(onTabSelected func(id string))

func (*View) SetOnTitleChanged

func (v *View) SetOnTitleChanged(onTitleChanged func(id, title string))

func (*View) SetOnTreeViewMenuClicked

func (v *View) SetOnTreeViewMenuClicked(onTreeViewMenuClicked func(id string, action string))

func (*View) SetOnTreeViewNodeClicked

func (v *View) SetOnTreeViewNodeClicked(onTreeViewNodeClicked func(id string))

func (*View) SetTabDirty

func (v *View) SetTabDirty(id string, dirty bool)

func (*View) ShowPrompt

func (v *View) ShowPrompt(id, title, content, modalType string, onSubmit func(selectedOption string, remember bool), options ...widgets.Option)

func (*View) SwitchToTab

func (v *View) SwitchToTab(id string)

func (*View) UpdateTabTitle

func (v *View) UpdateTabTitle(id, title string)

func (*View) UpdateTreeNodeTitle

func (v *View) UpdateTreeNodeTitle(id, title string)

func (*View) UpdateTreeViewNode

func (v *View) UpdateTreeViewNode(env *domain.Environment)

Jump to

Keyboard shortcuts

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