keys

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 6 Imported by: 7 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	PublicKeyPaths []string
	// contains filtered or unexported fields
}

Options provides key file configuration for Carabiner applications.

func (*Options) AddFlags

func (ko *Options) AddFlags(cmd *cobra.Command)

AddFlags adds the key flags to a command.

func (*Options) AddKeys added in v0.3.1

func (ko *Options) AddKeys(providers ...key.PublicKeyProvider)

AddKeys appends pre-parsed key providers. These are included in the result of ParseKeys alongside any keys parsed from file paths.

func (*Options) Config

func (ko *Options) Config() *command.OptionsSetConfig

Config returns the flag configuration for key options.

func (*Options) ParseKeys

func (ko *Options) ParseKeys() ([]key.PublicKeyProvider, error)

ParseKeys parses the key files and returns a slice of public key providers. Any keys previously added via AddKeys are included in the result.

func (*Options) Validate

func (ko *Options) Validate() error

Validate checks that the key files exist.

Jump to

Keyboard shortcuts

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