Documentation ¶
Index ¶
Constants ¶
View Source
const ( NSS_STATUS_SUCCESS = 1 NSS_STATUS_NOTFOUND = 0 NSS_STATUS_UNAVAIL = -1 NSS_STATUS_TRYAGAIN = -2 )
http://www.gnu.org/software/libc/manual/html_node/NSS-Modules-Interface.html
View Source
const ( NSS_LIST_PRESET = 0 NSS_LIST_PURGE = 1 )
View Source
const ( PAM_AUTH_ERR = 7 PAM_AUTHINFO_UNAVAIL = 9 PAM_SUCCESS = 0 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { ApiEndPoint []string `toml:"api_end_point"` RequestTimeOut int `toml:"request_timeout"` RequestRetry int `toml:"retry_request"` User string `toml:"user"` Password string `toml:"password"` SslVerify bool `toml:"ssl_verify"` WrapperCommand string `toml:"wrapper_path"` ChainSshWrapper string `toml:"chain_ssh_wrapper"` HttpProxy string `toml:"http_proxy"` RequestHeader map[string]string `toml:"request_header"` TlsCa string `toml:"tls_ca"` TlsCert string `toml:"tls_cert"` TlsKey string `toml:"tls_key"` UIDShift int `toml:"uid_shift"` GIDShift int `toml:"gid_shift"` }
func LoadConfig ¶
type NssEntry ¶
type NssEntry interface {
Set(stns.Attributes) int
}
type Request ¶
func (*Request) GetByWrapperCmd ¶
func (r *Request) GetByWrapperCmd() (*ResponseFormat, error)
func (*Request) GetRawData ¶
only use wrapper command
func (*Request) TlsKeysExists ¶
type ResponseFormat ¶
type ResponseFormat struct {
Items stns.Attributes `json:"items"`
}
func (ResponseFormat) First ¶
func (r ResponseFormat) First() *stns.Attribute
Source Files ¶
Click to show internal directories.
Click to hide internal directories.