util

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CELExpressionReferencesFields added in v0.4.0

func CELExpressionReferencesFields(celCmd string, fieldNames []string, options ...cel.EnvOption) (bool, error)

CELExpressionReferencesFields checks if a CEL expression references any of the given field names. Returns true if the expression references at least one of the specified fields.

func GetClient

func GetClient(ctx context.Context) (*api.Client, error)

GetClient gets a Logged in Passbolt Client

func GetClientCertificate added in v0.3.2

func GetClientCertificate() (tls.Certificate, error)

func GetContext

func GetContext() context.Context

func GetHttpClient added in v0.3.2

func GetHttpClient() (*http.Client, error)

func InitCELProgram added in v0.3.0

func InitCELProgram(celCmd string, options ...cel.EnvOption) (*cel.Program, error)

InitCELProgram - Initialize a CEL program with given CEL command and a set of environments

func ReadPassword added in v0.2.0

func ReadPassword(prompt string) (string, error)

ReadPassword reads a Password interactively or via Pipe

func SaveSessionKeysAndLogout added in v0.4.0

func SaveSessionKeysAndLogout(ctx context.Context, client *api.Client)

SaveSessionKeysAndLogout saves any pending session keys to the server and then logs out. This should be used instead of client.Logout() to ensure session keys are persisted.

Types

type PermissionJsonOutput added in v0.4.0

type PermissionJsonOutput struct {
	ID                *string    `json:"id,omitempty"`
	Aco               *string    `json:"aco,omitempty"`
	AcoForeignKey     *string    `json:"aco_foreign_key,omitempty"`
	Aro               *string    `json:"aro,omitempty"`
	AroForeignKey     *string    `json:"aro_foreign_key,omitempty"`
	Type              *int       `json:"type,omitempty"`
	CreatedTimestamp  *time.Time `json:"created_timestamp,omitempty"`
	ModifiedTimestamp *time.Time `json:"modified_timestamp,omitempty"`
}

Jump to

Keyboard shortcuts

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