Documentation
¶
Index ¶
Constants ¶
const ( // ClusterStatusStable captures enum value "stable" ClusterStatusStable string = "stable" // ClusterStatusUnstable captures enum value "unstable" ClusterStatusUnstable string = "unstable" // ClusterStatusUnreachable captures enum value "unreachable" ClusterStatusUnreachable string = "unreachable" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
// disk total
// Required: true
// Minimum: 0
DiskTotal *int64 `json:"diskTotal"`
// disk used
// Required: true
// Minimum: 0
DiskUsed *int64 `json:"diskUsed"`
// memory total
// Required: true
// Minimum: 0
MemoryTotal *int64 `json:"memoryTotal"`
// memory used
// Required: true
// Minimum: 0
MemoryUsed *int64 `json:"memoryUsed"`
// nodes
// Required: true
Nodes []string `json:"nodes"`
// status
// Required: true
// Enum: [stable unstable unreachable]
Status *string `json:"status"`
}
Cluster cluster
swagger:model Cluster
func (*Cluster) ContextValidate ¶
ContextValidate validates this cluster based on context it is used
func (*Cluster) MarshalBinary ¶
MarshalBinary interface implementation
func (*Cluster) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Credential ¶
type Credential struct {
// secret key
SecretKey string `json:"secret_key,omitempty"`
// username
Username string `json:"username,omitempty"`
}
Credential credential
swagger:model Credential
func (*Credential) ContextValidate ¶
ContextValidate validates this credential based on context it is used
func (*Credential) MarshalBinary ¶
func (m *Credential) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Credential) UnmarshalBinary ¶
func (m *Credential) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Node ¶
type Node struct {
// cpu total
// Required: true
// Minimum: 0
CPUTotal *int64 `json:"cpuTotal"`
// cpu used
// Required: true
// Minimum: 0
CPUUsed *int64 `json:"cpuUsed"`
// disk total
// Required: true
// Minimum: 0
DiskTotal *int64 `json:"diskTotal"`
// disk used
// Required: true
// Minimum: 0
DiskUsed *int64 `json:"diskUsed"`
// id
// Required: true
ID *string `json:"id"`
// memory total
// Required: true
// Minimum: 0
MemoryTotal *int64 `json:"memoryTotal"`
// memory used
// Required: true
// Minimum: 0
MemoryUsed *int64 `json:"memoryUsed"`
// os
// Required: true
Os *string `json:"os"`
// quasardb version
// Required: true
QuasardbVersion *string `json:"quasardbVersion"`
}
Node node
swagger:model Node
func (*Node) ContextValidate ¶
ContextValidate validates this node based on context it is used
func (*Node) MarshalBinary ¶
MarshalBinary interface implementation
func (*Node) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Principal ¶
type Principal string
Principal principal
swagger:model Principal
func (Principal) ContextValidate ¶
ContextValidate validates this principal based on context it is used
type QdbError ¶
type QdbError struct {
// message
Message string `json:"message,omitempty"`
}
QdbError qdb error
swagger:model QdbError
func (*QdbError) ContextValidate ¶
ContextValidate validates this qdb error based on context it is used
func (*QdbError) MarshalBinary ¶
MarshalBinary interface implementation
func (*QdbError) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Query ¶
type Query struct {
// query
Query string `json:"query,omitempty"`
}
Query query
swagger:model Query
func (*Query) ContextValidate ¶
ContextValidate validates this query based on context it is used
func (*Query) MarshalBinary ¶
MarshalBinary interface implementation
func (*Query) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type QueryColumn ¶
type QueryColumn struct {
// data
Data []interface{} `json:"data"`
// name
Name string `json:"name,omitempty"`
// type
Type string `json:"type,omitempty"`
}
QueryColumn query column
swagger:model QueryColumn
func (*QueryColumn) ContextValidate ¶
ContextValidate validates this query column based on context it is used
func (*QueryColumn) MarshalBinary ¶
func (m *QueryColumn) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*QueryColumn) UnmarshalBinary ¶
func (m *QueryColumn) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type QueryResult ¶
type QueryResult struct {
// tables
// Required: true
Tables []*QueryTable `json:"tables"`
}
QueryResult query result
swagger:model QueryResult
func (*QueryResult) ContextValidate ¶
ContextValidate validate this query result based on the context it is used
func (*QueryResult) MarshalBinary ¶
func (m *QueryResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*QueryResult) UnmarshalBinary ¶
func (m *QueryResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type QueryTable ¶
type QueryTable struct {
// columns
Columns []*QueryColumn `json:"columns"`
// name
Name string `json:"name,omitempty"`
}
QueryTable query table
swagger:model QueryTable
func (*QueryTable) ContextValidate ¶
ContextValidate validate this query table based on the context it is used
func (*QueryTable) MarshalBinary ¶
func (m *QueryTable) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*QueryTable) UnmarshalBinary ¶
func (m *QueryTable) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Token ¶
type Token struct {
// token
Token string `json:"token,omitempty"`
}
Token token
swagger:model Token
func (*Token) ContextValidate ¶
ContextValidate validates this token based on context it is used
func (*Token) MarshalBinary ¶
MarshalBinary interface implementation
func (*Token) UnmarshalBinary ¶
UnmarshalBinary interface implementation