options

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatPositionalArgsHelp

func FormatPositionalArgsHelp(args map[string]string) string

Types

type Describe

type Describe struct {
	Detail bool `yaml:"detail" json:"detail" mapstructure:"detail"`
}

func (*Describe) AddFlags

func (o *Describe) AddFlags(flags fangs.FlagSet)

type ExtractCertificates

type ExtractCertificates struct {
	Leaf bool `yaml:"leaf" json:"leaf" mapstructure:"leaf"`
}

func (*ExtractCertificates) AddFlags

func (o *ExtractCertificates) AddFlags(flags fangs.FlagSet)

type Format

type Format struct {
	Output           string   `yaml:"output" json:"output" mapstructure:"output"`
	AllowableFormats []string `yaml:"-" json:"-" mapstructure:"-"`
}

func (*Format) AddFlags

func (o *Format) AddFlags(flags fangs.FlagSet)

type Keychain

type Keychain struct {
	Path string `yaml:"path" json:"path" mapstructure:"path"`
}

func (*Keychain) AddFlags

func (o *Keychain) AddFlags(flags fangs.FlagSet)

type Notary

type Notary struct {
	// bound options
	Issuer       string `yaml:"issuer" json:"issuer" mapstructure:"issuer"`
	PrivateKeyID string `yaml:"key-id" json:"key-id" mapstructure:"key-id"`
	PrivateKey   string `yaml:"key" json:"key" mapstructure:"key"`
}

func (*Notary) AddFlags

func (o *Notary) AddFlags(flags fangs.FlagSet)

func (*Notary) PostLoad

func (o *Notary) PostLoad() error

type P12

type P12 struct {
	Password string `yaml:"password" json:"password" mapstructure:"password"`
}

func (*P12) DescribeFields

func (o *P12) DescribeFields(d fangs.FieldDescriptionSet)

func (*P12) PostLoad

func (o *P12) PostLoad() error

type Signing

type Signing struct {
	// bound options
	Identity             string `yaml:"identity" json:"identity" mapstructure:"identity"`
	P12                  string `yaml:"p12" json:"p12" mapstructure:"p12"`
	TimestampServer      string `yaml:"timestamp-server" json:"timestamp-server" mapstructure:"timestamp-server"`
	AdHoc                bool   `yaml:"ad-hoc" json:"ad-hoc" mapstructure:"ad-hoc"`
	FailWithoutFullChain bool   `yaml:"fail-without-full-chain" json:"fail-without-full-chain" mapstructure:"fail-without-full-chain"`

	// unbound options
	Password     string `yaml:"password" json:"password" mapstructure:"password"`
	Entitlements string `yaml:"entitlements" json:"entitlements" mapstructure:"entitlements"`
}

func DefaultSigning

func DefaultSigning() Signing

func (*Signing) AddFlags

func (o *Signing) AddFlags(flags fangs.FlagSet)

func (*Signing) DescribeFields

func (o *Signing) DescribeFields(d fangs.FieldDescriptionSet)

func (*Signing) PostLoad

func (o *Signing) PostLoad() error

type Status

type Status struct {
	// bound options
	Wait bool `yaml:"wait" json:"wait" mapstructure:"wait"`

	// unbound options
	PollSeconds    int `yaml:"poll-seconds" json:"poll-seconds" mapstructure:"poll-seconds"`
	TimeoutSeconds int `yaml:"timeout-seconds" json:"timeout-seconds" mapstructure:"timeout-seconds"`
}

func DefaultStatus

func DefaultStatus() Status

func (*Status) AddFlags

func (o *Status) AddFlags(flags fangs.FlagSet)

func (*Status) DescribeFields

func (o *Status) DescribeFields(d fangs.FieldDescriptionSet)

func (*Status) PostLoad

func (o *Status) PostLoad() error

Jump to

Keyboard shortcuts

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