forked from TrueCloudLab/certificates
Update doc line on WithSSHGetHosts
This commit is contained in:
parent
57f9e54151
commit
4afcdd55ff
1 changed files with 2 additions and 2 deletions
|
@ -101,8 +101,8 @@ func WithSSHBastionFunc(fn func(ctx context.Context, user, host string) (*config
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithSSHGetHosts sets a custom function to get the bastion for a
|
// WithSSHGetHosts sets a custom function to return a list of step ssh enabled
|
||||||
// given user-host pair.
|
// hosts.
|
||||||
func WithSSHGetHosts(fn func(ctx context.Context, cert *x509.Certificate) ([]config.Host, error)) Option {
|
func WithSSHGetHosts(fn func(ctx context.Context, cert *x509.Certificate) ([]config.Host, error)) Option {
|
||||||
return func(a *Authority) error {
|
return func(a *Authority) error {
|
||||||
a.sshGetHostsFunc = fn
|
a.sshGetHostsFunc = fn
|
||||||
|
|
Loading…
Reference in a new issue