MCPcopy Index your code
hub / github.com/ContainerSSH/ContainerSSH / MustSSHKeyAlgoListFromStringList

Function MustSSHKeyAlgoListFromStringList

config/ssh.go:246–252  ·  view source on GitHub ↗

MustSSHKeyAlgoListFromStringList is identical to SSHKeyAlgoListFromStringList but panics on error.

(hostKeyAlgorithms []string)

Source from the content-addressed store, hash-verified

244// MustSSHKeyAlgoListFromStringList is identical to SSHKeyAlgoListFromStringList but panics on
245// error.
246func MustSSHKeyAlgoListFromStringList(hostKeyAlgorithms []string) SSHKeyAlgoList {
247 l, err := SSHKeyAlgoListFromStringList(hostKeyAlgorithms)
248 if err != nil {
249 panic(err)
250 }
251 return l
252}
253
254// Validate validates the list of ciphers to contain only supported items.
255func (h SSHKeyAlgoList) Validate() error {

Callers 1

ConfigureBackendMethod · 0.92

Calls 1

Tested by 1

ConfigureBackendMethod · 0.74