add ability to store/create encrypted vcenter password
Some checks are pending
CI / Lint (push) Waiting to run
CI / Test (push) Waiting to run
CI / End-to-End (push) Waiting to run
CI / Publish Docker (push) Blocked by required conditions
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-27 17:02:02 +10:00
parent 5a00f4a8c7
commit 3501967c9e
13 changed files with 235 additions and 772 deletions

View File

@@ -5,6 +5,8 @@ import (
"log/slog"
"net/http"
"vctp/db"
"vctp/internal/secrets"
"vctp/internal/vcenter"
"github.com/a-h/templ"
)
@@ -16,6 +18,8 @@ type Handler struct {
BuildTime string
SHA1Ver string
GoVersion string
VcCreds *vcenter.VcenterLogin
Secret *secrets.Secrets
}
func (h *Handler) html(ctx context.Context, w http.ResponseWriter, status int, t templ.Component) {