Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
DefaultPath returns the OS-specific default path for settings.json.
Types ¶
type ClientSettings ¶
type ClientSettings struct {
NoColor *bool `json:"no-color,omitempty"`
Quiet *bool `json:"quiet,omitempty"`
ExpiryWarning *int `json:"expiry-warning,omitempty"`
Output *string `json:"output,omitempty"`
CACert *string `json:"cacert,omitempty"`
Proxy *string `json:"proxy,omitempty"`
File *string `json:"file,omitempty"`
TLSVersions *bool `json:"tls-versions,omitempty"`
ServerName *string `json:"servername,omitempty"`
StartTLS *string `json:"starttls,omitempty"`
Revocation *string `json:"revocation,omitempty"`
RevocationTimeout *Duration `json:"revocation-timeout,omitempty"`
RevocationSoftFail *bool `json:"revocation-soft-fail,omitempty"`
}
ClientSettings holds settings for the client subcommand.
type Duration ¶
Duration is a time.Duration that unmarshals from a JSON string like "5s".
func (Duration) MarshalJSON ¶
func (*Duration) UnmarshalJSON ¶
type GlobalSettings ¶
type GlobalSettings struct {
NoColor *bool `json:"no-color,omitempty"`
Quiet *bool `json:"quiet,omitempty"`
ExpiryWarning *int `json:"expiry-warning,omitempty"`
Output *string `json:"output,omitempty"`
CACert *string `json:"cacert,omitempty"`
Revocation *string `json:"revocation,omitempty"`
RevocationTimeout *Duration `json:"revocation-timeout,omitempty"`
RevocationSoftFail *bool `json:"revocation-soft-fail,omitempty"`
}
GlobalSettings holds settings that apply to all subcommands.
type PemSettings ¶
type PemSettings struct {
NoColor *bool `json:"no-color,omitempty"`
Quiet *bool `json:"quiet,omitempty"`
ExpiryWarning *int `json:"expiry-warning,omitempty"`
Output *string `json:"output,omitempty"`
CACert *string `json:"cacert,omitempty"`
Revocation *string `json:"revocation,omitempty"`
RevocationTimeout *Duration `json:"revocation-timeout,omitempty"`
RevocationSoftFail *bool `json:"revocation-soft-fail,omitempty"`
}
PemSettings holds settings for the pem subcommand.
type Settings ¶
type Settings struct {
Global GlobalSettings `json:"global"`
Client ClientSettings `json:"client"`
Pem PemSettings `json:"pem"`
}
Settings represents the full configuration file.
Click to show internal directories.
Click to hide internal directories.