Documentation ¶
Index ¶
- func Create(hasura config.Hasura, cfg config.Database, views []string, ...) error
- func Generate(hasura config.Hasura, cfg config.Database, models ...interface{}) (map[string]interface{}, error)
- type API
- func (api *API) CreateSelectPermissions(table, role string, perm Permission) error
- func (api *API) DropSelectPermissions(table, role string) error
- func (api *API) ExportMetadata(data interface{}) (ExportMetadataResponse, error)
- func (api *API) Health() error
- func (api *API) ReplaceMetadata(data interface{}) error
- func (api *API) TrackTable(schema, name string) error
- type ExportMetadataResponse
- type Permission
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API -
func (*API) CreateSelectPermissions ¶ added in v0.1.8
func (api *API) CreateSelectPermissions(table, role string, perm Permission) error
CreateSelectPermissions - A select permission is used to restrict access to only the specified columns and rows.
func (*API) DropSelectPermissions ¶ added in v0.1.9
DropSelectPermissions -
func (*API) ExportMetadata ¶
func (api *API) ExportMetadata(data interface{}) (ExportMetadataResponse, error)
ExportMetadata -
func (*API) ReplaceMetadata ¶
ReplaceMetadata -
func (*API) TrackTable ¶ added in v0.1.6
TrackTable -
type ExportMetadataResponse ¶
type ExportMetadataResponse struct {
Tables []map[string]interface{} `json:"tables"`
}
ExportMetadataResponse -
type Permission ¶ added in v0.1.8
type Permission struct { Columns string `json:"columns"` Limit uint64 `json:"limit"` AllowAggs bool `json:"allow_aggregations"` Filter interface{} `json:"filter,omitempty"` }
Permission -
Click to show internal directories.
Click to hide internal directories.