asset

package
v0.77.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AssetFS embed.FS
View Source
var AssetPathURI = "/v1/api/endly/asset/{ProjectID}"

Functions

func DefineAssetComponent

func DefineAssetComponent(ctx context.Context, srv *datly.Service) error

Types

type AssetInput

type AssetInput struct {
	ProjectID  string         `parameter:",kind=path,in=ProjectID" predicate:"exists,group=0,a,WORKFLOW_ID,w,WORKFLOW,SessionID,PROJECT_ID"`
	ID         []string       `parameter:",kind=form,in=id" predicate:"in,group=0,a,SessionID"`
	WorkflowID string         `parameter:",kind=form,in=wid" predicate:"equal,group=0,a,WORKFLOW_ID"`
	Has        *AssetInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-"`
}

type AssetInputHas

type AssetInputHas struct {
	ProjectID  bool
	ID         bool
	WorkflowID bool
}

type AssetOutput

type AssetOutput struct {
	response.Status `parameter:",kind=output,in=status"`
	Data            []*AssetView       `parameter:",kind=output,in=view" view:"asset" sql:"uri=asset/asset_view.sql"`
	Metrics         []*response.Metric `parameter:",kind=output,in=metrics"`
}

type AssetView

type AssetView struct {
	Id            string  `sqlx:"SessionID"`
	Location      string  `sqlx:"LOCATION"`
	Description   *string `sqlx:"DESCRIPTION"`
	WorkflowId    string  `sqlx:"WORKFLOW_ID"`
	IsDir         *int    `sqlx:"IS_DIR"`
	Template      *string `sqlx:"TEMPLATE"`
	InstanceIndex *int    `sqlx:"INSTANCE_INDEX"`
	InstanceTag   *string `sqlx:"INSTANCE_TAG"`
	Position      *int    `sqlx:"POSITION"`
	Source        *string `sqlx:"SOURCE"`
	Format        *string `sqlx:"FORMAT"`
	Codec         *string `sqlx:"CODEC"`
}

Jump to

Keyboard shortcuts

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