Help us shape the future of Go! Take the 2026 Go Developer Survey

reporting

package
v0.1.56 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const SharedArtifactPathURI = "/v1/api/forge/reporting/shared-artifact/{artifactId}"

Variables

Functions

func DefineSharedArtifactComponent

func DefineSharedArtifactComponent(ctx context.Context, srv *datly.Service, connectorRef string) error

Types

type SharedArtifact

type SharedArtifact struct {
	ArtifactID       string     `sqlx:"artifact_id,primaryKey" json:"artifactId,omitempty"`
	ArtifactRef      string     `sqlx:"artifact_ref" json:"artifactRef,omitempty"`
	OwnerID          string     `sqlx:"owner_id" json:"ownerId,omitempty"`
	OwnerRef         string     `sqlx:"owner_ref" json:"ownerRef,omitempty"`
	Kind             string     `sqlx:"kind" json:"kind,omitempty"`
	Lifecycle        string     `sqlx:"lifecycle" json:"lifecycle,omitempty"`
	Version          int        `sqlx:"version" json:"version,omitempty"`
	ReportID         string     `sqlx:"report_id" json:"reportId,omitempty"`
	Title            string     `sqlx:"title" json:"title,omitempty"`
	SourceArtifactID string     `sqlx:"source_artifact_id" json:"sourceArtifactId,omitempty"`
	BaseArtifactRef  string     `sqlx:"base_artifact_ref" json:"baseArtifactRef,omitempty"`
	PolicyRef        string     `sqlx:"policy_ref" json:"policyRef,omitempty"`
	DocumentVersion  int        `sqlx:"document_version" json:"documentVersion,omitempty"`
	Document         []byte     `sqlx:"report_document_json" json:"document,omitempty"`
	ReportSpec       []byte     `sqlx:"report_spec_json" json:"reportSpec,omitempty"`
	CompileState     []byte     `sqlx:"compile_state_json" json:"compileState,omitempty"`
	ReportFill       []byte     `sqlx:"report_fill_json" json:"reportFill,omitempty"`
	ReportPrint      []byte     `sqlx:"report_print_json" json:"reportPrint,omitempty"`
	SavedViewOverlay []byte     `sqlx:"saved_view_overlay_json" json:"savedViewOverlay,omitempty"`
	Metadata         []byte     `sqlx:"metadata_json" json:"metadata,omitempty"`
	CreatedAt        time.Time  `sqlx:"created_at" json:"createdAt,omitempty"`
	UpdatedAt        *time.Time `sqlx:"updated_at" json:"updatedAt,omitempty"`
}

SharedArtifact is the Datly-facing persisted report shell used by the SQL reporting store.

type SharedArtifactInput

type SharedArtifactInput struct {
	ArtifactID string                  `parameter:",kind=path,in=artifactId" predicate:"equal,group=0,r,artifact_id"`
	OwnerID    string                  `parameter:",kind=query,in=ownerId" predicate:"equal,group=0,r,owner_id"`
	Has        *SharedArtifactInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

func (*SharedArtifactInput) EmbedFS

func (i *SharedArtifactInput) EmbedFS() *embed.FS

type SharedArtifactInputHas

type SharedArtifactInputHas struct {
	ArtifactID bool
	OwnerID    bool
}

type SharedArtifactOutput

type SharedArtifactOutput struct {
	response.Status `parameter:",kind=output,in=status" json:",omitempty"`
	Data            []*SharedArtifact `` /* 137-byte string literal not displayed */
	Metrics         response.Metrics  `parameter:",kind=output,in=metrics"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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