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

read

package
v0.1.57 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ReaderDatlyResourceNamespace = "reporting_sharedartifact_read_reader"

DatlyResourceNamespace identifies this package's generated resource filesystem.

Variables

View Source
var ReaderDatly = new(ReaderComponent)

The public value supports explicit component wiring.

View Source
var ReaderDatlyResources embed.FS

Functions

func ReaderDatlyType

func ReaderDatlyType() reflect.Type

ReaderDatlyType returns the public component type.

Types

type Input

type Input struct {
	Internal     bool      `parameter:"Internal,kind=artifactaccess,in=internal,dataType=bool,required=true"`
	ReadMode     string    `parameter:"ReadMode,kind=artifactaccess,in=mode,dataType=string,required=true"`
	OwnerSubject *string   `parameter:"OwnerSubject,kind=visibility,in=subject,dataType=*string,required=true"`
	ArtifactID   string    `parameter:"ArtifactID,kind=query,in=artifactId,dataType=string,required=false" predicate:"equal,r,artifact_id"`
	Fields       []string  `` /* 132-byte string literal not displayed */
	Limit        int       `parameter:"Limit,kind=query,in=limit,dataType=int,required=false,cacheable=false" querySelector:"view=reader,property=limit"`
	Offset       int       `` /* 127-byte string literal not displayed */
	OrderBy      string    `` /* 133-byte string literal not displayed */
	OwnerID      string    `parameter:"OwnerID,kind=query,in=ownerId,dataType=string,required=false" predicate:"equal,r,owner_id"`
	ArtifactRef  string    `parameter:"ArtifactRef,kind=query,in=artifactRef,dataType=string,required=false" predicate:"equal,r,artifact_ref"`
	ReportID     string    `parameter:"ReportID,kind=query,in=reportId,dataType=string,required=false" predicate:"equal,r,report_id"`
	Kind         string    `parameter:"Kind,kind=query,in=kind,dataType=string,required=false" predicate:"equal,r,kind"`
	Lifecycle    string    `parameter:"Lifecycle,kind=query,in=lifecycle,dataType=string,required=false" predicate:"equal,r,lifecycle"`
	Has          *InputHas `setMarker:"true" typeName:"InputHas" json:"-" sqlx:"-"`
}

Input is the generated input scaffold for reader.

func (*Input) Init

func (input *Input) Init(context.Context) error

func (*Input) SetArtifactID

func (input *Input) SetArtifactID(value string)

func (*Input) SetArtifactRef

func (input *Input) SetArtifactRef(value string)

func (*Input) SetFields

func (input *Input) SetFields(value []string)

func (*Input) SetInternal

func (input *Input) SetInternal(value bool)

func (*Input) SetKind

func (input *Input) SetKind(value string)

func (*Input) SetLifecycle

func (input *Input) SetLifecycle(value string)

func (*Input) SetLimit

func (input *Input) SetLimit(value int)

func (*Input) SetOffset

func (input *Input) SetOffset(value int)

func (*Input) SetOrderBy

func (input *Input) SetOrderBy(value string)

func (*Input) SetOwnerID

func (input *Input) SetOwnerID(value string)

func (*Input) SetOwnerSubject

func (input *Input) SetOwnerSubject(value *string)

func (*Input) SetReadMode

func (input *Input) SetReadMode(value string)

func (*Input) SetReportID

func (input *Input) SetReportID(value string)

type InputHas

type InputHas struct {
	Internal     bool
	ReadMode     bool
	OwnerSubject bool
	ArtifactID   bool
	Fields       bool
	Limit        bool
	Offset       bool
	OrderBy      bool
	OwnerID      bool
	ArtifactRef  bool
	ReportID     bool
	Kind         bool
	Lifecycle    bool
}

type Output

type Output struct {
	Data []*SharedArtifact `` /* 284-byte string literal not displayed */
}

Output is the generated output scaffold for reader.

type ReaderComponent

type ReaderComponent struct {
	Contract xdatly.Component[Input, Output] "" /* 164-byte string literal not displayed */
}

Component is the generated component scaffold for reader.

func (ReaderComponent) EmbedFS

func (ReaderComponent) EmbedFS() *embed.FS

func (ReaderComponent) EmbedNamespace

func (ReaderComponent) EmbedNamespace() string

type SharedArtifact

type SharedArtifact struct {
	ArtifactId           string     `json:"artifactId,omitempty" sqlx:"artifact_id,primaryKey=true"`
	ArtifactRef          string     `json:"artifactRef,omitempty" sqlx:"artifact_ref,required=true"`
	OwnerId              string     `json:"ownerId,omitempty" sqlx:"owner_id,required=true"`
	OwnerRef             string     `json:"ownerRef,omitempty" sqlx:"owner_ref"`
	Kind                 string     `json:"kind,omitempty" sqlx:"kind,required=true"`
	Lifecycle            string     `json:"lifecycle,omitempty" sqlx:"lifecycle,required=true"`
	Version              int        `json:"version,omitempty" sqlx:"version,required=true"`
	ReportId             string     `json:"reportId,omitempty" sqlx:"report_id"`
	Title                string     `json:"title,omitempty" sqlx:"title"`
	SourceArtifactId     string     `json:"sourceArtifactId,omitempty" sqlx:"source_artifact_id"`
	BaseArtifactRef      string     `json:"baseArtifactRef,omitempty" sqlx:"base_artifact_ref"`
	PolicyRef            string     `json:"policyRef,omitempty" sqlx:"policy_ref"`
	DocumentVersion      int        `json:"documentVersion,omitempty" sqlx:"document_version,required=true"`
	ReportDocumentJson   []byte     `json:"document,omitempty" sqlx:"report_document_json"`
	ReportSpecJson       []byte     `json:"reportSpec,omitempty" sqlx:"report_spec_json"`
	CompileStateJson     []byte     `json:"compileState,omitempty" sqlx:"compile_state_json"`
	ReportFillJson       []byte     `json:"reportFill,omitempty" sqlx:"report_fill_json"`
	ReportPrintJson      []byte     `json:"reportPrint,omitempty" sqlx:"report_print_json"`
	SavedViewOverlayJson []byte     `json:"savedViewOverlay,omitempty" sqlx:"saved_view_overlay_json"`
	MetadataJson         []byte     `json:"metadata,omitempty" sqlx:"metadata_json"`
	CreatedAt            time.Time  `json:"createdAt,omitempty" sqlx:"created_at,required=true"`
	UpdatedAt            *time.Time `json:"updatedAt,omitempty" sqlx:"updated_at"`
}

SharedArtifact is generated canonical view metadata for reader.

Jump to

Keyboard shortcuts

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