pages

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSecretPage

func CreateSecretPage(
	currentApp *app.App,
	basePath string,
	prefill *core.CreateSecretRequest,
	errorMsg string,
) g.Node

CreateSecretPage renders the create secret form

func EditSecretPage

func EditSecretPage(
	currentApp *app.App,
	basePath string,
	secret *core.SecretDTO,
	errorMsg string,
) g.Node

EditSecretPage renders the edit secret form

func ImportTemplateDownload

func ImportTemplateDownload() g.Node

ImportTemplateDownload renders download links for import templates

func PathBreadcrumb

func PathBreadcrumb(path string, appBase string) g.Node

PathBreadcrumb renders a breadcrumb from a secret path

func RollbackConfirmationModal

func RollbackConfirmationModal(secret *core.SecretDTO, targetVersion int) g.Node

RollbackConfirmationModal renders a confirmation modal for rollback

func SecretDetailPage

func SecretDetailPage(
	currentApp *app.App,
	basePath string,
	secret *core.SecretDTO,
	versions []*core.SecretVersionDTO,
) g.Node

SecretDetailPage renders the secret detail page

func SecretFormValidation

func SecretFormValidation() g.Node

SecretFormValidation renders client-side validation hints

func SecretImportForm

func SecretImportForm(appBase string) g.Node

SecretImportForm renders a bulk import form

func SecretsListPage

func SecretsListPage(
	currentApp *app.App,
	basePath string,
	secrets []*core.SecretDTO,
	pag *pagination.Pagination,
	query *core.ListSecretsQuery,
) g.Node

SecretsListPage renders the secrets list page

func SecretsPath

func SecretsPath(path string) g.Node

SecretsPath renders breadcrumb-style path navigation

func SecretsTreeView

func SecretsTreeView(
	currentApp *app.App,
	basePath string,
	tree []*core.SecretTreeNode,
) g.Node

SecretsTreeView renders a tree view of secrets

func VersionDiff

func VersionDiff(oldVersion, newVersion *core.SecretVersionDTO) g.Node

VersionDiff renders a comparison between two versions

func VersionHistoryPage

func VersionHistoryPage(
	currentApp *app.App,
	basePath string,
	secret *core.SecretDTO,
	versions []*core.SecretVersionDTO,
	pag *pagination.Pagination,
) g.Node

VersionHistoryPage renders the version history page for a secret

Types

type TreeNode

type TreeNode struct {
	Name     string
	Path     string
	IsSecret bool
	Secret   *core.SecretDTO
	Children []*TreeNode
}

TreeNode represents a node in the secrets tree

Jump to

Keyboard shortcuts

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