dataproducts

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAssetsRequest

type AddAssetsRequest struct {
	AssetIDs []string `json:"asset_ids" validate:"required,min=1"`
}

type CreateRequest

type CreateRequest struct {
	Name        string                 `json:"name" validate:"required"`
	Description *string                `json:"description,omitempty"`
	Metadata    map[string]interface{} `json:"metadata,omitempty"`
	Tags        []string               `json:"tags,omitempty"`
	Owners      []OwnerRequest         `json:"owners,omitempty"`
	Rules       []RuleRequest          `json:"rules,omitempty"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(
	dataProductService dataproduct.Service,
	userService user.Service,
	authService auth.Service,
	config *config.Config,
) *Handler

func (*Handler) Routes

func (h *Handler) Routes() []common.Route

type OwnerRequest

type OwnerRequest struct {
	ID   string `json:"id" validate:"required"`
	Type string `json:"type" validate:"required,oneof=user team"`
}

type RuleRequest

type RuleRequest struct {
	Name            string  `json:"name" validate:"required"`
	Description     *string `json:"description,omitempty"`
	RuleType        string  `json:"rule_type" validate:"required"`
	QueryExpression *string `json:"query_expression,omitempty"`
	MetadataField   *string `json:"metadata_field,omitempty"`
	PatternType     *string `json:"pattern_type,omitempty"`
	PatternValue    *string `json:"pattern_value,omitempty"`
	Priority        int     `json:"priority"`
	IsEnabled       bool    `json:"is_enabled"`
}

type UpdateRequest

type UpdateRequest struct {
	Name        *string                `json:"name,omitempty"`
	Description *string                `json:"description,omitempty"`
	Metadata    map[string]interface{} `json:"metadata,omitempty"`
	Tags        []string               `json:"tags,omitempty"`
	Owners      []OwnerRequest         `json:"owners,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL