{"modulePath":"github.com/evilsocket/shellz","version":"v1.6.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package models\n\n## Variables\n\n```go\nvar (\n\tPath  = \"~/.shellz\"\n\tPaths = map[string]string(nil)\n)\n```\n\n## Functions\n\n```go\nfunc Init() (err error)\n```\n\n```go\nfunc Load() (error, Identities, Shells, Groups)\n```\n\n## Types\n\n```go\ntype Address struct {\n\tAddress string `json:\"address\"`\n\tPort    int    `json:\"port\"`\n}\n```\n\n```go\nfunc (t Address) Empty() bool\n```\n\n```go\nfunc (t Address) String() string\n```\n\n```go\ntype Groups map[string]Shells\n```\n\n```go\ntype Identities map[string]Identity\n```\n\n```go\ntype Identity struct {\n\tName     string `json:\"name\"`\n\tUsername string `json:\"username\"`\n\tKeyFile  string `json:\"key\"`\n\tPassword string `json:\"password\"`\n\tPath     string `json:\"-\"`\n}\n```\n\n```go\nfunc LoadIdent(path string) (err error, ident Identity)\n```\n\n```go\ntype Proxy struct {\n\tAddress  string `json:\"address\"`\n\tPort     int    `json:\"port\"`\n\tUsername string `json:\"username\"`\n\tPassword string `json:\"password\"`\n}\n```\n\n```go\nfunc (p Proxy) Empty() bool\n```\n\n```go\nfunc (p Proxy) String() string\n```\n\n```go\ntype Shell struct {\n\tName         string    `json:\"name\"`\n\tHost         string    `json:\"host\"`\n\tPort         int       `json:\"port\"`\n\tIdentityName string    `json:\"identity\"`\n\tType         string    `json:\"type\"`\n\tCiphers      []string  `json:\"ciphers\"`\n\tHTTPS        bool      `json:\"https\"`\n\tInsecure     bool      `json:\"insecure\"`\n\tEnabled      bool      `json:\"enabled\"`\n\tGroups       []string  `json:\"groups\"`\n\tProxy        Proxy     `json:\"proxy\"`\n\tTunnel       Tunnel    `json:\"tunnel\"`\n\tNamespace    string    `json:\"namespace\"`\n\tContainer    string    `json:\"container\"`\n\tPod          string    `json:\"pod\"`\n\tIdentity     *Identity `json:\"-\"`\n\tPath         string    `json:\"-\"`\n}\n```\n\n```go\nfunc LoadShell(path string, idents Identities) (err error, shell Shell)\n```\n\n```go\nfunc (sh Shell) Save() error\n```\n\n```go\ntype Shells map[string]Shell\n```\n\n```go\ntype Tunnel struct {\n\tLocal  Address `json:\"local\"`\n\tRemote Address `json:\"remote\"`\n}\n```\n\n```go\nfunc (t Tunnel) Empty() bool\n```\n\n```go\nfunc (t Tunnel) String() string\n```\n\n","path":"github.com/evilsocket/shellz/models","name":"models","synopsis":"","isRedistributable":true}
