lib

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Overview

Package lib holds shared helpers for the `hilt client` command tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAdminClient

func InitAdminClient(cmd *cobra.Command) (*client.AdminClient, *zap.Logger, error)

InitAdminClient loads the Hilt config, builds the service identity (the signing key) and an admin client targeting the running Hilt server. The command must be run with the service's identity config so the signed invocation's issuer matches the server's service DID.

func InitManagementClient

func InitManagementClient(cmd *cobra.Command) (*management.Client, *zap.Logger, error)

InitManagementClient loads the Hilt config (if available) and builds a partner REST client for the Tenant API. Config is optional: when it does not load, the partner key is read from the HILT_PARTNER_KEY env var and the server URL must be supplied with --url, so the command works as a standalone tool.

func PrintJSON

func PrintJSON(cmd *cobra.Command, v any) error

PrintJSON pretty-prints v as JSON to the command's stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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