Documentation ¶
Index ¶
- Constants
- Variables
- func ParseTrustDomain(trustDomain string, logger logrus.FieldLogger) (spiffeid.TrustDomain, error)
- func SetUmask(log logrus.FieldLogger)
- func WarnOnLongTrustDomainName(td spiffeid.TrustDomain, logger logrus.FieldLogger)
- type BoolFlag
- type CommaStringsFlag
- type DurationFlag
- type Env
- type StringsFlag
Constants ¶
View Source
const BoolFlagAll = 0
View Source
const BoolFlagFalse = 1
View Source
const BoolFlagTrue = 2
Variables ¶
Functions ¶
func ParseTrustDomain ¶ added in v1.0.0
func ParseTrustDomain(trustDomain string, logger logrus.FieldLogger) (spiffeid.TrustDomain, error)
ParseTrustDomain parses a configured trustDomain in a consistent way for either the SPIRE agent or server.
func WarnOnLongTrustDomainName ¶ added in v1.0.0
func WarnOnLongTrustDomainName(td spiffeid.TrustDomain, logger logrus.FieldLogger)
Types ¶
type BoolFlag ¶ added in v1.9.6
type BoolFlag int
BoolFlag is used to define 3 possible states: true, false, or all. Take care that false=1, and true=2
type CommaStringsFlag ¶
type CommaStringsFlag []string
CommaStringsFlag facilitates parsing flags representing a comma separated list of strings
func (*CommaStringsFlag) Set ¶
func (f *CommaStringsFlag) Set(v string) error
func (CommaStringsFlag) String ¶
func (f CommaStringsFlag) String() string
type DurationFlag ¶
DurationFlag facilitates parsing flags representing a time.Duration
func (*DurationFlag) Set ¶
func (f *DurationFlag) Set(v string) error
func (DurationFlag) String ¶
func (f DurationFlag) String() string
type Env ¶
Env provides an pluggable environment for CLI commands that facilitates easy testing.
func (*Env) ErrPrintln ¶
type StringsFlag ¶
type StringsFlag []string
StringsFlag facilitates setting multiple flags
func (*StringsFlag) Set ¶
func (s *StringsFlag) Set(val string) error
func (*StringsFlag) String ¶
func (s *StringsFlag) String() string
Click to show internal directories.
Click to hide internal directories.