Documentation
¶
Index ¶
- Constants
- Variables
- func AgentRequested(sshSess glssh.Session) bool
- func ForwardAgentConnections(ln gonet.Listener, logger log.Logger, sshSess glssh.Session)
- type Cipher
- func (this Cipher) IsEqualTo(other any) bool
- func (this Cipher) IsZero() bool
- func (this Cipher) MarshalText() (text []byte, err error)
- func (this *Cipher) Set(text string) error
- func (this Cipher) String() string
- func (this *Cipher) UnmarshalText(text []byte) error
- func (this Cipher) Validate() error
- type Ciphers
- func (this Ciphers) Contains(v Cipher) bool
- func (this Ciphers) IsCumulative() bool
- func (this Ciphers) IsEmpty() bool
- func (this Ciphers) IsEqualTo(other any) bool
- func (this Ciphers) IsZero() bool
- func (this Ciphers) MarshalText() (text []byte, err error)
- func (this Ciphers) MarshalTexts() (texts [][]byte, err error)
- func (this *Ciphers) Set(text string) error
- func (this Ciphers) String() string
- func (this *Ciphers) UnmarshalText(text []byte) error
- func (this Ciphers) Validate() error
- type KeyExchange
- func (this KeyExchange) IsEqualTo(other any) bool
- func (this KeyExchange) IsZero() bool
- func (this KeyExchange) MarshalText() (text []byte, err error)
- func (this *KeyExchange) Set(text string) error
- func (this KeyExchange) String() string
- func (this *KeyExchange) UnmarshalText(text []byte) error
- func (this KeyExchange) Validate() error
- type KeyExchanges
- func (this KeyExchanges) Contains(v KeyExchange) bool
- func (this KeyExchanges) IsCumulative() bool
- func (this KeyExchanges) IsEmpty() bool
- func (this KeyExchanges) IsEqualTo(other any) bool
- func (this KeyExchanges) IsZero() bool
- func (this KeyExchanges) MarshalText() (text []byte, err error)
- func (this KeyExchanges) MarshalTexts() (texts [][]byte, err error)
- func (this *KeyExchanges) Set(text string) error
- func (this KeyExchanges) String() string
- func (this *KeyExchanges) UnmarshalText(text []byte) error
- func (this KeyExchanges) Validate() error
- type MessageAuthentication
- func (this MessageAuthentication) IsEqualTo(other any) bool
- func (this MessageAuthentication) IsZero() bool
- func (this MessageAuthentication) MarshalText() (text []byte, err error)
- func (this *MessageAuthentication) Set(text string) error
- func (this MessageAuthentication) String() string
- func (this *MessageAuthentication) UnmarshalText(text []byte) error
- func (this MessageAuthentication) Validate() error
- type MessageAuthentications
- func (this MessageAuthentications) Contains(v MessageAuthentication) bool
- func (this MessageAuthentications) IsCumulative() bool
- func (this MessageAuthentications) IsEmpty() bool
- func (this MessageAuthentications) IsEqualTo(other any) bool
- func (this MessageAuthentications) IsZero() bool
- func (this MessageAuthentications) MarshalText() (text []byte, err error)
- func (this MessageAuthentications) MarshalTexts() (texts [][]byte, err error)
- func (this *MessageAuthentications) Set(text string) error
- func (this MessageAuthentications) String() string
- func (this *MessageAuthentications) UnmarshalText(text []byte) error
- func (this MessageAuthentications) Validate() error
Constants ¶
View Source
const (
AuthSockEnvName = "SSH_AUTH_SOCK"
)
Variables ¶
View Source
var ( DefaultCiphers = []Cipher{ CipherAes256Gcm, CipherAes256Ctr, CipherAes192Ctr, } )
View Source
var ( DefaultKeyExchanges = []KeyExchange{ KeyExchangeCurve25519Sha256LibSsh, KeyExchangeCurve25519Sha256, KeyExchangeDh16Sha512, KeyExchangeMlkem768x25519xSha256, } )
View Source
var ( DefaultMessageAuthentications = []MessageAuthentication{ MessageAuthenticationHmacSha2B512Etm, MessageAuthenticationHmacSha2B256Etm, } )
Functions ¶
func AgentRequested ¶
Types ¶
type Cipher ¶ added in v0.6.0
type Cipher uint8
func (Cipher) MarshalText ¶ added in v0.6.0
func (*Cipher) UnmarshalText ¶ added in v0.6.0
type Ciphers ¶ added in v0.6.0
type Ciphers []Cipher
func (Ciphers) IsCumulative ¶ added in v0.6.0
func (Ciphers) MarshalText ¶ added in v0.6.0
func (Ciphers) MarshalTexts ¶ added in v0.6.0
func (*Ciphers) UnmarshalText ¶ added in v0.6.0
type KeyExchange ¶ added in v0.6.0
type KeyExchange uint8
const ( KeyExchangeDh1Sha1 KeyExchange = iota KeyExchangeDh14Sha1 KeyExchangeDh14Sha256 KeyExchangeDh16Sha512 KeyExchangeEcdh256 KeyExchangeEcdh384 KeyExchangeEcdh521 KeyExchangeCurve25519Sha256LibSsh KeyExchangeCurve25519Sha256 KeyExchangeDhgexSha1 KeyExchangeDhgexSha256 KeyExchangeMlkem768x25519xSha256 )
func (KeyExchange) IsEqualTo ¶ added in v0.6.0
func (this KeyExchange) IsEqualTo(other any) bool
func (KeyExchange) IsZero ¶ added in v0.6.0
func (this KeyExchange) IsZero() bool
func (KeyExchange) MarshalText ¶ added in v0.6.0
func (this KeyExchange) MarshalText() (text []byte, err error)
func (*KeyExchange) Set ¶ added in v0.6.0
func (this *KeyExchange) Set(text string) error
func (KeyExchange) String ¶ added in v0.6.0
func (this KeyExchange) String() string
func (*KeyExchange) UnmarshalText ¶ added in v0.6.0
func (this *KeyExchange) UnmarshalText(text []byte) error
func (KeyExchange) Validate ¶ added in v0.6.0
func (this KeyExchange) Validate() error
type KeyExchanges ¶ added in v0.6.0
type KeyExchanges []KeyExchange
func (KeyExchanges) Contains ¶ added in v0.6.0
func (this KeyExchanges) Contains(v KeyExchange) bool
func (KeyExchanges) IsCumulative ¶ added in v0.6.0
func (this KeyExchanges) IsCumulative() bool
func (KeyExchanges) IsEmpty ¶ added in v0.6.0
func (this KeyExchanges) IsEmpty() bool
func (KeyExchanges) IsEqualTo ¶ added in v0.6.0
func (this KeyExchanges) IsEqualTo(other any) bool
func (KeyExchanges) IsZero ¶ added in v0.6.0
func (this KeyExchanges) IsZero() bool
func (KeyExchanges) MarshalText ¶ added in v0.6.0
func (this KeyExchanges) MarshalText() (text []byte, err error)
func (KeyExchanges) MarshalTexts ¶ added in v0.6.0
func (this KeyExchanges) MarshalTexts() (texts [][]byte, err error)
func (*KeyExchanges) Set ¶ added in v0.6.0
func (this *KeyExchanges) Set(text string) error
func (KeyExchanges) String ¶ added in v0.6.0
func (this KeyExchanges) String() string
func (*KeyExchanges) UnmarshalText ¶ added in v0.6.0
func (this *KeyExchanges) UnmarshalText(text []byte) error
func (KeyExchanges) Validate ¶ added in v0.6.0
func (this KeyExchanges) Validate() error
type MessageAuthentication ¶ added in v0.6.0
type MessageAuthentication uint8
const ( MessageAuthenticationHmacSha1 MessageAuthentication = iota MessageAuthenticationHmacSha1B96 MessageAuthenticationHmacSha2B256 MessageAuthenticationHmacSha2B512 MessageAuthenticationHmacSha2B256Etm MessageAuthenticationHmacSha2B512Etm )
func (MessageAuthentication) IsEqualTo ¶ added in v0.6.0
func (this MessageAuthentication) IsEqualTo(other any) bool
func (MessageAuthentication) IsZero ¶ added in v0.6.0
func (this MessageAuthentication) IsZero() bool
func (MessageAuthentication) MarshalText ¶ added in v0.6.0
func (this MessageAuthentication) MarshalText() (text []byte, err error)
func (*MessageAuthentication) Set ¶ added in v0.6.0
func (this *MessageAuthentication) Set(text string) error
func (MessageAuthentication) String ¶ added in v0.6.0
func (this MessageAuthentication) String() string
func (*MessageAuthentication) UnmarshalText ¶ added in v0.6.0
func (this *MessageAuthentication) UnmarshalText(text []byte) error
func (MessageAuthentication) Validate ¶ added in v0.6.0
func (this MessageAuthentication) Validate() error
type MessageAuthentications ¶ added in v0.6.0
type MessageAuthentications []MessageAuthentication
func (MessageAuthentications) Contains ¶ added in v0.6.0
func (this MessageAuthentications) Contains(v MessageAuthentication) bool
func (MessageAuthentications) IsCumulative ¶ added in v0.6.0
func (this MessageAuthentications) IsCumulative() bool
func (MessageAuthentications) IsEmpty ¶ added in v0.6.0
func (this MessageAuthentications) IsEmpty() bool
func (MessageAuthentications) IsEqualTo ¶ added in v0.6.0
func (this MessageAuthentications) IsEqualTo(other any) bool
func (MessageAuthentications) IsZero ¶ added in v0.6.0
func (this MessageAuthentications) IsZero() bool
func (MessageAuthentications) MarshalText ¶ added in v0.6.0
func (this MessageAuthentications) MarshalText() (text []byte, err error)
func (MessageAuthentications) MarshalTexts ¶ added in v0.6.0
func (this MessageAuthentications) MarshalTexts() (texts [][]byte, err error)
func (*MessageAuthentications) Set ¶ added in v0.6.0
func (this *MessageAuthentications) Set(text string) error
func (MessageAuthentications) String ¶ added in v0.6.0
func (this MessageAuthentications) String() string
func (*MessageAuthentications) UnmarshalText ¶ added in v0.6.0
func (this *MessageAuthentications) UnmarshalText(text []byte) error
func (MessageAuthentications) Validate ¶ added in v0.6.0
func (this MessageAuthentications) Validate() error
Click to show internal directories.
Click to hide internal directories.