Documentation ¶
Index ¶
- Constants
- func GetAuthProtocolOption(protos ...AuthProtocol) dsl.Option
- func GetPrivacyProtocolOption(protos ...PrivacyProtocol) dsl.Option
- type AuthProtocol
- type Client
- type PrivacyProtocol
- type Value
- type Values
- func (v *Values) Get(oid string) *Value
- func (v *Values) GetBytes(oid string) ([]byte, error)
- func (v *Values) GetFloat64(oid string) (float64, error)
- func (v *Values) GetInt64(oid string) (int64, error)
- func (v *Values) GetString(oid string) (string, error)
- func (v *Values) GetUint64(oid string) (uint64, error)
- func (v *Values) String() string
- func (v *Values) Walk(callback func(Value))
Constants ¶
View Source
const ( AuthProtocolNone = "" AuthProtocolMD5 = "md5" AuthProtocolSHA = "sha" AuthProtocolSHA224 = "sha224" AuthProtocolSHA256 = "sha256" AuthProtocolSHA384 = "sha384" AuthProtocolSHA512 = "sha512" )
View Source
const ( PrivacyProtocolNone = "" PrivacyProtocolDES = "des" PrivacyProtocolAES128 = "aes128" PrivacyProtocolAES192 = "aes192" PrivacyProtocolAES192C = "aes192c" PrivacyProtocolAES256 = "aes256" PrivacyProtocolAES256C = "aes256c" )
Variables ¶
This section is empty.
Functions ¶
func GetAuthProtocolOption ¶
func GetAuthProtocolOption(protos ...AuthProtocol) dsl.Option
func GetPrivacyProtocolOption ¶
func GetPrivacyProtocolOption(protos ...PrivacyProtocol) dsl.Option
Types ¶
type AuthProtocol ¶
type AuthProtocol string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(host, transport, username string, authProto AuthProtocol, privacyProto PrivacyProtocol, password dsl.PasswordCallback, encryptionPassphrase dsl.EncryptionPassphraseCallback) (*Client, error)
type PrivacyProtocol ¶
type PrivacyProtocol string
type Value ¶
func (Value) ValFloat64 ¶
Click to show internal directories.
Click to hide internal directories.