Documentation
¶
Index ¶
- Variables
- func CheckErr(err error)
- func CheckForErrors(resp *http.Response)
- func CheckIfUnixTime(unixString string) bool
- func ConvertUnixToTime(unixString string) time.Time
- func ConvertUnixToTimeInt(unixString int64) time.Time
- func Execute() error
- func MakeNewRequest(method, endpoint string, body io.Reader) (req *http.Request, e error)
- type CloudResults
- type Columns
- type ContainerInfo
- type ContainerInfoColumns
- type ContainersList
- type ErrorMsg
- type ExpireTime
- type IP
- type QueryData
- type SqlResults
- type TQLResults
- type TokenManager
Constants ¶
This section is empty.
Variables ¶
View Source
var GridDBTypes = []string{
"BOOL",
"STRING",
"BYTE",
"SHORT",
"INTEGER",
"LONG",
"FLOAT",
"DOUBLE",
"TIMESTAMP",
"GEOMETRY",
"BLOB",
"BOOL_ARRAY",
"STRING_ARRAY",
"BYTE_ARRAY",
"SHORT_ARRAY",
"INTEGER_ARRAY",
"LONG_ARRAY",
"FLOAT_ARRAY",
"DOUBLE_ARRAY",
"TIMESTAMP_ARRAY",
}
View Source
var (
RootCmd = &cobra.Command{
Use: "griddb-cloud-cli",
Short: "A wrapper to making HTTP Requests to your GridDB Cloud Instance",
Long: `A series of commands to help you manage your cloud-based DB.
Standouts include creating a container and graphing one using 'read graph' and 'create' respectfully`,
}
)
Functions ¶
func CheckForErrors ¶
func CheckIfUnixTime ¶
func ConvertUnixToTime ¶
func ConvertUnixToTimeInt ¶
Types ¶
type CloudResults ¶
type ContainerInfo ¶
type ContainerInfo struct {
ContainerName string `json:"container_name"`
ContainerType string `json:"container_type"`
RowKey bool `json:"rowkey"`
Columns []ContainerInfoColumns `json:"columns"`
}
type ContainerInfoColumns ¶
type ContainersList ¶
type ExpireTime ¶ added in v0.1.8
func (*ExpireTime) UnmarshalJSON ¶ added in v0.1.8
func (at *ExpireTime) UnmarshalJSON(b []byte) error
type SqlResults ¶
type TQLResults ¶
type TokenManager ¶ added in v0.1.8
type TokenManager struct {
AccessToken string `json:"accessToken"`
Expiration ExpireTime `json:"expiredDate"`
// contains filtered or unexported fields
}
func NewTokenManager ¶ added in v0.1.8
func NewTokenManager() *TokenManager
Click to show internal directories.
Click to hide internal directories.