Documentation
¶
Index ¶
- Constants
- type Auth
- type BlockProperties
- type Connection
- func (c *Connection) ClientOpts(ctx *hcl.EvalContext) (*options.ClientOptions, errors.Error)
- func (c *Connection) SetAuth(auth *Auth)
- func (c *Connection) SetTimeout(expr hcl.Expression)
- func (c *Connection) SetURI(expr hcl.Expression)
- func (c *Connection) Timeout(ctx *hcl.EvalContext) (*time.Duration, errors.Error)
- type Document
- type Filter
- type Query
- func (q *Query) Collection(ctx *hcl.EvalContext) (string, errors.Error)
- func (q *Query) Database(ctx *hcl.EvalContext) (string, errors.Error)
- func (q *Query) Documents(ctx *hcl.EvalContext) ([]map[string]interface{}, errors.Error)
- func (q *Query) Filter(ctx *hcl.EvalContext) (map[string]interface{}, errors.Error)
- func (q *Query) HasSet() bool
- func (q *Query) Limit(ctx *hcl.EvalContext) (int, errors.Error)
- func (q *Query) Set(ctx *hcl.EvalContext) (map[string]interface{}, errors.Error)
- func (q *Query) SetCollection(expr hcl.Expression)
- func (q *Query) SetDatabase(expr hcl.Expression)
- func (q *Query) SetLimit(expr hcl.Expression)
- type Response
- type Set
Constants ¶
View Source
const ( BlockConnection = "connection" BlockQuery = "query" BlockResponse = "response" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) SetPassword ¶
func (auth *Auth) SetPassword(expr hcl.Expression)
func (*Auth) SetUsername ¶
func (auth *Auth) SetUsername(expr hcl.Expression)
type BlockProperties ¶
type BlockProperties struct {
// contains filtered or unexported fields
}
func NewBlockProperties ¶
func NewBlockProperties(block *hcl.Block) (*BlockProperties, errors.Error)
func (BlockProperties) Evaluate ¶
func (b BlockProperties) Evaluate(ctx *hcl.EvalContext) errors.Error
func (*BlockProperties) SetValues ¶
func (b *BlockProperties) SetValues(attributes hcl.Attributes)
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func DecodeConnection ¶
func DecodeConnection(block *hcl.Block) (*Connection, errors.Error)
func (*Connection) ClientOpts ¶
func (c *Connection) ClientOpts(ctx *hcl.EvalContext) (*options.ClientOptions, errors.Error)
func (*Connection) SetAuth ¶
func (c *Connection) SetAuth(auth *Auth)
func (*Connection) SetTimeout ¶
func (c *Connection) SetTimeout(expr hcl.Expression)
func (*Connection) SetURI ¶
func (c *Connection) SetURI(expr hcl.Expression)
type Document ¶
type Document struct {
*BlockProperties
}
type Filter ¶
type Filter struct {
*BlockProperties
}
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func DecodeQuery ¶
func (*Query) SetCollection ¶
func (q *Query) SetCollection(expr hcl.Expression)
func (*Query) SetDatabase ¶
func (q *Query) SetDatabase(expr hcl.Expression)
type Response ¶
type Response struct {
*BlockProperties
}
type Set ¶
type Set struct {
*BlockProperties
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.