Documentation ¶
Index ¶
- type Handler
- func (h *Handler) BuildMetadata() (yaml.MapSlice, error)
- func (h *Handler) DropInconsistentMetadata() error
- func (h *Handler) ExportMetadata() (map[string][]byte, error)
- func (h *Handler) GetInconsistentMetadata() (bool, []InconsistentMetadataObject, error)
- func (h *Handler) MakeJSONMetadata() ([]byte, error)
- func (h *Handler) ReloadMetadata() error
- func (h *Handler) ResetMetadata() error
- func (h *Handler) SetMetadataObjects(objects Objects)
- func (h *Handler) V1ApplyMetadata() error
- func (h *Handler) V2ApplyMetadata() (*hasura.V2ReplaceMetadataResponse, error)
- func (h *Handler) WriteMetadata(files map[string][]byte) error
- type InconsistentMetadataObject
- type Object
- type Objects
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler will be responsible for interaction between a hasura instance and Objects
func NewHandler ¶
func NewHandler(objects Objects, v1MetadataOps hasura.CommonMetadataOperations, v2MetadataOps hasura.V2CommonMetadataOperations, logger *logrus.Logger) *Handler
func NewHandlerFromEC ¶
func NewHandlerFromEC(ec *cli.ExecutionContext) *Handler
func (*Handler) BuildMetadata ¶
func (*Handler) DropInconsistentMetadata ¶
func (*Handler) GetInconsistentMetadata ¶
func (h *Handler) GetInconsistentMetadata() (bool, []InconsistentMetadataObject, error)
func (*Handler) MakeJSONMetadata ¶
func (*Handler) ReloadMetadata ¶
ReloadMetadata - Reload Hasura GraphQL Engine metadata on the database
func (*Handler) ResetMetadata ¶
func (*Handler) SetMetadataObjects ¶
func (*Handler) V1ApplyMetadata ¶
func (*Handler) V2ApplyMetadata ¶
func (h *Handler) V2ApplyMetadata() (*hasura.V2ReplaceMetadataResponse, error)
type InconsistentMetadataObject ¶
type InconsistentMetadataObject struct { Definition interface{} `json:"definition" mapstructure:"definition"` Reason interface{} `json:"reason" mapstructure:"reason"` Type interface{} `json:"type" mapstructure:"type"` }
func (InconsistentMetadataObject) GetDescription ¶
func (obj InconsistentMetadataObject) GetDescription() string
func (InconsistentMetadataObject) GetName ¶
func (obj InconsistentMetadataObject) GetName() string
func (InconsistentMetadataObject) GetReason ¶
func (obj InconsistentMetadataObject) GetReason() string
func (InconsistentMetadataObject) GetType ¶
func (obj InconsistentMetadataObject) GetType() string
type Objects ¶
type Objects []Object
func GetMetadataObjectsWithDir ¶
func GetMetadataObjectsWithDir(ec *cli.ExecutionContext, dir ...string) Objects
Click to show internal directories.
Click to hide internal directories.