assets

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddTermsRequest added in v0.4.0

type AddTermsRequest struct {
	TermIDs []string `json:"term_ids" validate:"required,min=1"`
}

type AssetResponse added in v0.7.0

type AssetResponse struct {
	*asset.Asset
	EnrichedExternalLinks []assetrule.EnrichedExternalLink `json:"enriched_external_links,omitempty"`
}

AssetResponse wraps an asset with enriched external links from rules.

type AssetSummaryResponse

type AssetSummaryResponse struct {
	Types    map[string]int `json:"types"`
	Services map[string]int `json:"services"`
	Tags     map[string]int `json:"tags"`
}

type BatchDocumentationRequest

type BatchDocumentationRequest struct {
	Documentation []assetdocs.Documentation `json:"documentation" validate:"required,min=1"`
}

type BatchDocumentationResponse

type BatchDocumentationResponse struct {
	Results []BatchDocumentationResult `json:"results"`
}

type BatchDocumentationResult

type BatchDocumentationResult struct {
	Documentation assetdocs.Documentation `json:"documentation"`
	Status        string                  `json:"status"`
	Error         string                  `json:"error,omitempty"`
}

type CreateRequest

type CreateRequest struct {
	Name          string                       `json:"name" validate:"required"`
	Type          string                       `json:"type" validate:"required"`
	Providers     []string                     `json:"providers" validate:"required"`
	Description   *string                      `json:"description"`
	Metadata      map[string]interface{}       `json:"metadata"`
	Schema        map[string]string            `json:"schema"`
	Tags          []string                     `json:"tags"`
	Sources       []asset.AssetSource          `json:"sources"`
	Environments  map[string]asset.Environment `json:"environments"`
	ExternalLinks []asset.ExternalLink         `json:"external_links"`
}

type DocumentationCreateRequest

type DocumentationCreateRequest struct {
	MRN     string `json:"mrn" validate:"required"`
	Content string `json:"content" validate:"required"`
	Source  string `json:"source" validate:"required"`
}

type Handler

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

func NewHandler

func NewHandler(
	assetService asset.Service,
	assetDocsService assetdocs.Service,
	userService user.Service,
	authService auth.Service,
	metricsService *metrics.Service,
	runService runs.Service,
	teamService *team.Service,
	assetRuleService assetrule.Service,
	config *config.Config,
) *Handler

func (*Handler) Routes

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

type HistogramResponse added in v0.3.0

type HistogramResponse struct {
	Buckets []asset.HistogramBucket `json:"buckets"`
	Period  string                  `json:"period"`
}

type RemoveTermRequest added in v0.4.0

type RemoveTermRequest struct {
	TermID string `json:"term_id" validate:"required"`
}

type RunHistoryResponse added in v0.3.0

type RunHistoryResponse struct {
	RunHistory []*asset.RunHistory `json:"run_history"`
	Total      int                 `json:"total"`
	Limit      int                 `json:"limit"`
	Offset     int                 `json:"offset"`
}

type SearchFilter

type SearchFilter struct {
	Query     string   `json:"query" validate:"omitempty"`
	Types     []string `json:"types" validate:"omitempty"`
	Providers []string `json:"services" validate:"omitempty"`
	Tags      []string `json:"tags" validate:"omitempty"`
}

type SearchResponse

type SearchResponse struct {
	Assets  []*asset.Asset         `json:"assets"`
	Total   int                    `json:"total"`
	Limit   int                    `json:"limit"`
	Offset  int                    `json:"offset"`
	Filters asset.AvailableFilters `json:"filters"`
}

type TagRequest

type TagRequest struct {
	Tag string `json:"tag" validate:"required"`
}

type UpdateRequest

type UpdateRequest struct {
	Name            *string                      `json:"name"`
	Description     *string                      `json:"description"`
	UserDescription *string                      `json:"user_description"`
	Metadata        map[string]interface{}       `json:"metadata"`
	Type            string                       `json:"type"`
	Providers       []string                     `json:"providers"`
	Schema          map[string]string            `json:"schema"`
	Tags            []string                     `json:"tags"`
	Sources         []asset.AssetSource          `json:"sources"`
	Environments    map[string]asset.Environment `json:"environments"`
	ExternalLinks   []asset.ExternalLink         `json:"external_links"`
}

Jump to

Keyboard shortcuts

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