Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientMode ¶
type ClientMode types.ClientMode
configMode is a custom type for use as a CLI flag representing the type of config mode being applied
func (*ClientMode) AsClientMode ¶
func (i *ClientMode) AsClientMode() types.ClientMode
func (*ClientMode) Set ¶
func (i *ClientMode) Set(c string) error
func (*ClientMode) String ¶
func (i *ClientMode) String() string
func (*ClientMode) Type ¶
func (i *ClientMode) Type() string
type RuleInfoFlags ¶
func (*RuleInfoFlags) AddRuleInfoFlags ¶
func (r *RuleInfoFlags) AddRuleInfoFlags(cmd *cobra.Command)
type RulePolicy ¶
rulePolicy is a custom type for use as a CLI flag representing the type of rule policy being applied
func (*RulePolicy) AsRulePolicy ¶
func (i *RulePolicy) AsRulePolicy() types.Policy
func (*RulePolicy) Set ¶
func (i *RulePolicy) Set(s string) error
func (*RulePolicy) String ¶
func (i *RulePolicy) String() string
func (*RulePolicy) Type ¶
func (i *RulePolicy) Type() string
type RuleTargetFlags ¶
type RuleType ¶
ruleType is a custom type for use as a CLI flag representing the type of rule being applied
func (*RuleType) AsRuleType ¶
type RuleUpdateFlags ¶
type RuleUpdateFlags struct {
RulePolicy *RulePolicy
}
func (*RuleUpdateFlags) AddRuleUpdateFlags ¶
func (r *RuleUpdateFlags) AddRuleUpdateFlags(cmd *cobra.Command)
type TargetFlags ¶
func (*TargetFlags) AddTargetFlags ¶
func (t *TargetFlags) AddTargetFlags(cmd *cobra.Command)
func (*TargetFlags) AddTargetFlagsRules ¶
func (t *TargetFlags) AddTargetFlagsRules(cmd *cobra.Command)
func (TargetFlags) GetMachineID ¶
func (t TargetFlags) GetMachineID() (string, error)
func (TargetFlags) IsTargetSelf ¶
func (t TargetFlags) IsTargetSelf() bool
WARNING: This is best-effort as if you don't call getSelfMachineID first, it'll just always return false.
Click to show internal directories.
Click to hide internal directories.