Documentation
¶
Index ¶
Constants ¶
View Source
const (
StatAgent = "agent"
)
View Source
const (
StatSession = "session"
)
View Source
const (
TableUser = "user"
)
Variables ¶
This section is empty.
Functions ¶
func HashPassword ¶
Types ¶
type AgentIfaces ¶
func NewAgentIfaces ¶
func NewAgentIfaces() *AgentIfaces
func (*AgentIfaces) Add ¶
func (m *AgentIfaces) Add(a iface.Agent)
func (*AgentIfaces) Remove ¶
func (m *AgentIfaces) Remove(a iface.Agent)
type SessionIfaces ¶
func NewSessionIfaces ¶
func NewSessionIfaces() *SessionIfaces
func (*SessionIfaces) Add ¶
func (m *SessionIfaces) Add(s iface.Session)
func (*SessionIfaces) Remove ¶
func (m *SessionIfaces) Remove(s iface.Session)
type User ¶
type User struct { CreateAt time.Time `bson:"create_at"` Name string `bson:"name"` Keys map[string][]byte `bson:"keys"` Password []byte `bson:"password"` Permissions ssh.Permissions }
func (*User) CheckPassword ¶
func (*User) CheckPublicKey ¶
Click to show internal directories.
Click to hide internal directories.