Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
cb
v0.7.2
Top Level Namespace
CB
Action
Client
Account
Cluster
ClusterDetail
Error
FirewallRule
Logdest
Plan
Provider
Region
Role
Team
Role
ClusterCreate
Completion
NoClientError
Creds
LogdestAdd
LogdestDestroy
LogdestList
ManageFirewall
Program
Error
Psql
Scope
Token
Colorize
Object
IO
OptionParser
Scope
Bloat
Blocking
CacheHit
Calls
Check
Metadata
Connections
IndexHit
IndexSize
Locks
LongRunning
Mandelbrot
Meta
Outliers
SeqScans
Table
TableInfo
UnusedIndexes
VacuumStats
String
URI
Built with Crystal 1.9.2
2023-10-08 14:52:36 UTC
struct
CB::Creds
CB::Creds
Struct
Value
Object
Included Modules
JSON::Serializable
Defined in:
cb/creds.cr
Constant Summary
CONFIG
=
Path
[
"~/.config/cb"
].expand(home:
true
)
Constructors
.new
(host : String, id : String, secret : String)
.new
(pull : JSON::PullParser)
Class Method Summary
.for_host
(host) : Creds | Nil
Instance Method Summary
#delete
#host
: String
#id
: String
#secret
: String
#store
Constructor Detail
def self.
new
(host :
String
, id :
String
, secret :
String
)
#
[
View source
]
def self.
new
(pull : JSON::PullParser)
#
[
View source
]
Class Method Detail
def self.
for_host
(host) :
Creds
| Nil
#
[
View source
]
Instance Method Detail
def
delete
#
[
View source
]
def
host
:
String
#
[
View source
]
def
id
:
String
#
[
View source
]
def
secret
:
String
#
[
View source
]
def
store
#
[
View source
]