Versions in this module Expand all Collapse all v0 v0.6.0 Nov 10, 2026 Changes in this version + var ClientProvider func(context.Context) (*api.Client, error) + var ClientRelease func(context.Context, *api.Client) + var ConfirmationPrompt func(string) (bool, error) + var DataOut io.Writer = os.Stdout + var InvocationContext = context.Background() + var InvocationDialog *agent.Dialog + var PasswordPrompt func(string) (string, error) + var ProxyEnvironment []string + var RedactServerErrors bool + var ResourceApproval func(context.Context, string, string) error + func ApproveResource(ctx context.Context, id, name string) error + func ApproveResourceRead(ctx context.Context, client *api.Client, id string) error + func CurrentDialog() agent.Dialog + func NewClient(ctx context.Context) (*api.Client, error) + func NewClientWithHTTP(ctx context.Context, httpClient *http.Client) (*api.Client, error) + func SessionKeyWarning(err error) + func WithMachineClient(cmd *cobra.Command, fn func(context.Context, *api.Client) error) error v0.5.4 Nov 10, 2026 Changes in this version + const ConfigExposure + var Err io.Writer = NewSanitizingWriter(os.Stderr) + var ErrNoColumns = errors.New("no columns specified") + var ErrNoID = errors.New("no ID provided") + var ErrNotInteractive = errors.New("stdin is not a terminal") + var Out io.Writer = NewSanitizingWriter(os.Stdout) + var PermissionColumns = []string + func CELExpressionReferencesFields(celCmd string, fieldNames []string, options ...cel.EnvOption) (bool, error) + func Confirm(prompt string) (bool, error) + func Eprint(args ...any) + func Eprintf(format string, args ...any) + func Eprintln(args ...any) + func Exit(code int) + func ExplainAPIError(op string, err error) error + func ExplainReadError(op, slug string, err error) error + func ExplainWriteError(op, slug string, err error) error + func FlushOutputs() + func FprintJSON(w io.Writer, v any) error + func GetClient(ctx context.Context) (*api.Client, error) + func GetClientCertificate() (tls.Certificate, error) + func GetContext() (context.Context, context.CancelFunc) + func GetHTTPClient() (*http.Client, error) + func InitCELProgram(celCmd string, options ...cel.EnvOption) (*cel.Program, error) + func IsInteractive() bool + func NewSanitizingWriter(dest io.Writer) io.Writer + func NoColumnsError(valid []string) error + func Print(args ...any) + func PrintJSON(v any) error + func PrintJSONColumnFiltered[T any](items []T, columns []string) error + func PrintPermissionTable(columns []string, permissions []api.Permission) error + func PrintTable[T any](columns []string, items []T, ...) error + func Printf(format string, args ...any) + func Println(args ...any) + func ReadPassword(prompt string) (string, error) + func RenderTable(data pterm.TableData) + func Sanitize(text string) string + func SaveSessionKeysAndLogout(ctx context.Context, client *api.Client) + func WarnIfExposed(path, holds string) + func WarnReplacements() + func WithClient(cmd *cobra.Command, fn func(ctx context.Context, client *api.Client) error) error + func WriteViperConfig(path string) error + type ColumnAlias struct + Aliases []string + Name string + type ColumnAliasResolver struct + func NewColumnAliasResolver(specs []ColumnAlias) *ColumnAliasResolver + func (r *ColumnAliasResolver) Canonical() []string + func (r *ColumnAliasResolver) Normalize(input string) (string, error) + func (r *ColumnAliasResolver) NormalizeAll(inputs []string) ([]string, error) + type ColumnRegistry struct + func NewColumnRegistry[T any](noun string, columns []ColumnSpec[T]) *ColumnRegistry[T] + func (r *ColumnRegistry[T]) CelEnvOptions() []cel.EnvOption + func (r *ColumnRegistry[T]) DefaultTableColumns() []string + func (r *ColumnRegistry[T]) Filter(ctx context.Context, items []T, celCmd string) ([]T, error) + func (r *ColumnRegistry[T]) RequiresSecrets(columns []string) bool + func (r *ColumnRegistry[T]) Resolver() *ColumnAliasResolver + func (r *ColumnRegistry[T]) SecretCelNames() []string + func (r *ColumnRegistry[T]) TableValue(item T, col string) (string, bool) + type ColumnSpec struct + Aliases []string + CelType *cel.Type + CelValue func(item T) any + DefaultTable bool + Name string + RequiresSecrets bool + TableValue func(item T) string + type PermissionJSONOutput struct + Aco *string + AcoForeignKey *string + Aro *string + AroForeignKey *string + CreatedTimestamp *time.Time + ID *string + ModifiedTimestamp *time.Time + Type *int + func PermissionsToJSONOutput(permissions []api.Permission) []PermissionJSONOutput