Documentation
¶
Index ¶
- func CreateOrUpdate(orgID, orgSubdomain string) error
- func Found(mayHaveFound interface{}) bool
- func Write(data *Data) error
- type Data
- func (d *Data) GetOrSuggestSocket(dnsName string, socketType string) *Socket
- func (d *Data) Org(orgID string) *Org
- func (d *Data) RecentlyUsedOrgs(numOfOrgs int) Orgs
- func (d *Data) SetOrg(input *Org)
- func (d *Data) SetSocket(input *Socket)
- func (d *Data) Socket(dnsName string) *Socket
- func (d *Data) SuggestSocket(dnsName, socketType string) *Socket
- type Org
- type Orgs
- type Socket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdate ¶
Types ¶
type Data ¶
type Data struct { Orgs map[string]Org `json:"orgs"` Sockets map[string]Socket `json:"sockets"` PreferredTerminal string `json:"preferred_terminal"` PathEnvConfigured bool `json:"path_env_configured"` }
func (*Data) GetOrSuggestSocket ¶
func (*Data) RecentlyUsedOrgs ¶
func (*Data) SuggestSocket ¶
type Org ¶
type Socket ¶
type Socket struct { DNSName string `json:"dns_name"` Username string `json:"username"` LastUsed time.Time `json:"last_used"` SocketType string `json:"socket_type"` DatabaseName string `json:"database_name"` DatabaseClient string `json:"database_client"` }
func NewDatabaseSocket ¶
func NewSSHSocket ¶
Click to show internal directories.
Click to hide internal directories.