Documentation ¶
Index ¶
- Variables
- func FetchExpectedCAs(ctx context.Context, anc *api.Session, org, realm string) ([]*truststore.CA, error)
- func FetchLocalDevCAs(ctx context.Context, anc *api.Session) ([]*truststore.CA, error)
- func LoadStores(ctx context.Context, drv *ui.Driver) ([]truststore.Store, error)
- func PerformAudit(ctx context.Context, stores []truststore.Store, cas []*truststore.CA) (*truststore.AuditInfo, error)
- type Audit
- type Clean
- type Command
- type SudoManager
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdTrust = cli.NewCmd[Command](cli.CmdRoot, "trust", func(cmd *cobra.Command) { cfg := cli.ConfigFromCmd(cmd) cmd.Flags().StringVarP(&cfg.Org.APID, "org", "o", cli.Defaults.Org.APID, "Organization to trust.") cmd.Flags().BoolVar(&cfg.Trust.NoSudo, "no-sudo", cli.Defaults.Trust.NoSudo, "Disable sudo prompts.") cmd.Flags().StringVarP(&cfg.Realm.APID, "realm", "r", cli.Defaults.Realm.APID, "Realm to trust.") cmd.Flags().StringSliceVar(&cfg.Trust.Stores, "trust-stores", cli.Defaults.Trust.Stores, "Trust stores to update.") cmd.MarkFlagsRequiredTogether("org", "realm") })
View Source
var CmdTrustAudit = cli.NewCmd[Audit](CmdTrust, "audit", func(cmd *cobra.Command) { cfg := cli.ConfigFromCmd(cmd) cmd.Flags().StringVarP(&cfg.Org.APID, "org", "o", cli.Defaults.Org.APID, "Organization to trust.") cmd.Flags().StringVarP(&cfg.Realm.APID, "realm", "r", cli.Defaults.Realm.APID, "Realm to trust.") cmd.Flags().StringSliceVar(&cfg.Trust.Stores, "trust-stores", cli.Defaults.Trust.Stores, "Trust stores to update.") cmd.MarkFlagsRequiredTogether("org", "realm") })
View Source
var CmdTrustClean = cli.NewCmd[Clean](CmdTrust, "clean", func(cmd *cobra.Command) { cfg := cli.ConfigFromCmd(cmd) cmd.Flags().StringSliceVar(&cfg.Trust.Clean.States, "cert-states", cli.Defaults.Trust.Clean.States, "Cert states to clean.") cmd.Flags().StringVarP(&cfg.Org.APID, "org", "o", cli.Defaults.Org.APID, "Organization to trust.") cmd.Flags().BoolVar(&cfg.Trust.NoSudo, "no-sudo", cli.Defaults.Trust.NoSudo, "Disable sudo prompts.") cmd.Flags().StringVarP(&cfg.Realm.APID, "realm", "r", cli.Defaults.Realm.APID, "Realm to trust.") cmd.Flags().StringSliceVar(&cfg.Trust.Stores, "trust-stores", cli.Defaults.Trust.Stores, "Trust stores to update.") cmd.MarkFlagsRequiredTogether("org", "realm") cmd.Hidden = true })
Functions ¶
func FetchExpectedCAs ¶ added in v0.1.0
func FetchLocalDevCAs ¶ added in v0.1.0
func LoadStores ¶ added in v0.1.0
func PerformAudit ¶ added in v0.0.8
func PerformAudit(ctx context.Context, stores []truststore.Store, cas []*truststore.CA) (*truststore.AuditInfo, error)
Types ¶
type Command ¶
type Command struct { Anc *api.Session OrgAPID, RealmAPID string AuditInfo *truststore.AuditInfo }
type SudoManager ¶ added in v0.0.8
type SudoManager struct { truststore.CmdFS NoSudo bool AroundSudo func(sudoExec func()) }
Click to show internal directories.
Click to hide internal directories.