step

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package Step encapsulates the DATA required for each pipeline step in the builder. This package does not contain any building functions (that's in /build) but these objects know how to parse and "compile" raw data into the arguments required to execute each step.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncMap added in v0.6.0

func FuncMap() template.FuncMap

func StepDeleteSchema added in v0.7.0

func StepDeleteSchema() schema.Element

StepDeleteSchema returns a validating schema for the EditContent step

func StepEditContentSchema added in v0.7.0

func StepEditContentSchema() schema.Element

StepEditContentSchema returns a validating schema for the EditContent step

func StepSaveSchema added in v0.7.0

func StepSaveSchema() schema.Element

StepSaveSchema returns a validating schema for the EditContent step

Types

type AddModelObject

type AddModelObject struct {
	Form     form.Element
	Defaults []Step
}

AddModelObject is an action that can add new model objects of any type

func NewAddModelObject

func NewAddModelObject(stepInfo mapof.Any) (AddModelObject, error)

NewAddModelObject returns a fully initialized AddModelObject record

func (AddModelObject) AmStep

func (step AddModelObject) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type AddStream added in v0.6.0

type AddStream struct {
	Style         string                        // Style of input widget to use. Options are: "chooser", "modal", and "inline".  Defaults to "chooser".
	Title         string                        // Title to use on the create modal. Defaults to "Add a Stream"
	Location      string                        // Options are: "top", "child", "outbox".  Defaults to "child".
	TemplateID    string                        // ID of the template to use.  If empty, then template roles are used.
	TemplateRoles []string                      // List of acceptable Template Roles that can be used to make a stream.  If empty, then all template for this container are valid.
	WithData      map[string]*template.Template // Map of values to preset in the new stream
}

AddStream is an action that can add new sub-streams to the domain.

Uses: Display a pop-up to choose a template and create a new stream Embed a custom "create" widget into the current page - possibly selecting between multiple templates Create a new stream using a specific template as a part of a larger pipeline

func NewAddStream added in v0.6.0

func NewAddStream(stepInfo mapof.Any) (AddStream, error)

NewAddStream returns a fully initialized AddStream record

func (AddStream) AmStep added in v0.6.0

func (step AddStream) AmStep()

AmStep is here to verify that this struct is a build pipeline step

type AsConfirmation

type AsConfirmation struct {
	Title   string
	Message string
	Submit  string
}

AsConfirmation displays a confirmation dialog on GET, giving users an option to continue or not

func NewAsConfirmation

func NewAsConfirmation(stepInfo mapof.Any) (AsConfirmation, error)

NewAsConfirmation returns a fully initialized AsConfirmation object

func (AsConfirmation) AmStep

func (step AsConfirmation) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type AsModal

type AsModal struct {
	SubSteps   []Step
	Options    []string
	Background string
}

AsModal is a Step that can update the data.DataMap custom data stored in a Stream

func NewAsModal

func NewAsModal(stepInfo mapof.Any) (AsModal, error)

NewAsModal returns a fully initialized AsModal object

func (AsModal) AmStep

func (step AsModal) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type AsTooltip added in v0.6.0

type AsTooltip struct {
	SubSteps []Step
}

AsTooltip is a Step that can update the data.DataMap custom data stored in a Stream

func NewAsTooltip added in v0.6.0

func NewAsTooltip(stepInfo mapof.Any) (AsTooltip, error)

NewAsTooltip returns a fully initialized AsTooltip object

func (AsTooltip) AmStep added in v0.6.0

func (step AsTooltip) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type CacheURL added in v0.7.0

type CacheURL struct {
	CacheControl string
}

CacheURL is an action that can add new model objects of any type

func NewCacheURL added in v0.7.0

func NewCacheURL(stepInfo mapof.Any) (CacheURL, error)

NewCacheURL returns a fully initialized CacheURL record

func (CacheURL) AmStep added in v0.7.0

func (step CacheURL) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type Delete

type Delete struct {
	Title   *template.Template
	Message *template.Template
	Submit  string
	Method  string
}

Delete is a Step that can delete a Stream from the Domain

func NewDelete

func NewDelete(stepInfo mapof.Any) (Delete, error)

NewDelete returns a fully populated Delete object

func (Delete) AmStep

func (step Delete) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type DeleteArchive added in v0.7.0

type DeleteArchive struct {
	Token string
}

DeleteArchive is a Step that removes a named archive from a Stream

func NewDeleteArchive added in v0.7.0

func NewDeleteArchive(stepInfo mapof.Any) (DeleteArchive, error)

NewDeleteArchive returns a fully initialized DeleteArchive object

func (DeleteArchive) AmStep added in v0.7.0

func (step DeleteArchive) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type DeleteAttachments

type DeleteAttachments struct {
	All      bool   // If TRUE, then ALL ATTACHMENTS for this object will be deleted.
	Field    string // If set, the the attachment named by this property will be deleted. (If zero, then NOOP)
	Category string // If set, then all attachments from a specified group are deleted.
}

DeleteAttachments represents an action that removes one or more attachments from an object. The filter criteria in this step is further narrowed by the "attachmentId" query parameter, if present.

func NewDeleteAttachments

func NewDeleteAttachments(stepInfo mapof.Any) (DeleteAttachments, error)

NewDeleteAttachments returns a fully parsed DeleteAttachments object

func (DeleteAttachments) AmStep

func (step DeleteAttachments) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type Do added in v0.6.0

type Do struct {
	Action string
}

Do is a Step that calls anoter action to continue processing

func NewDo added in v0.6.0

func NewDo(stepInfo mapof.Any) (Do, error)

NewDo returns a fully initialized Do object

func (Do) AmStep added in v0.6.0

func (step Do) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type Dump added in v0.7.0

type Dump struct {
	Value *template.Template
}

Dump is a Step that can update the data.DataMap custom data stored in a Stream

func NewDump added in v0.7.0

func NewDump(stepInfo mapof.Any) (Dump, error)

NewDump returns a fully initialized Dump object

func (Dump) AmStep added in v0.7.0

func (step Dump) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type EditConnection

type EditConnection struct{}

EditConnection contains the configuration data for a modal that lets administrators manage connections to external servers.

func NewEditConnection

func NewEditConnection(stepInfo mapof.Any) (EditConnection, error)

func (EditConnection) AmStep

func (step EditConnection) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type EditContent

type EditContent struct {
	Filename  string
	Fieldname string
	Format    string
}

EditContent is a Step that can edit/update Container in a streamDraft.

func NewEditContent

func NewEditContent(stepInfo mapof.Any) (EditContent, error)

func (EditContent) AmStep

func (step EditContent) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type EditModelObject

type EditModelObject struct {
	Form    form.Element
	Options []*template.Template
}

EditModelObject is an action that can add new sub-streams to the domain.

func NewEditModelObject

func NewEditModelObject(stepInfo mapof.Any) (EditModelObject, error)

NewEditModelObject returns a fully initialized EditModelObject record

func (EditModelObject) AmStep

func (step EditModelObject) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type EditRegistration added in v0.7.0

type EditRegistration struct{}

EditRegistration is a Step that locates an existing widget and creates a builder for it.

func NewEditRegistration added in v0.7.0

func NewEditRegistration(stepInfo mapof.Any) (EditRegistration, error)

NewEditRegistration returns a fully initialized EditRegistration object

func (EditRegistration) AmStep added in v0.7.0

func (step EditRegistration) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

func (EditRegistration) RequireType added in v0.7.0

func (step EditRegistration) RequireType() string

type EditTemplate added in v0.7.0

type EditTemplate struct {
	Title string
	Paths []string
}

EditTemplate is a Step that lets users edit an object's template(s)

func NewEditTemplate added in v0.7.0

func NewEditTemplate(stepInfo mapof.Any) (EditTemplate, error)

func (EditTemplate) AmStep added in v0.7.0

func (step EditTemplate) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type EditWidget added in v0.6.0

type EditWidget struct{}

EditWidget is a Step that locates an existing widget and creates a builder for it.

func NewEditWidget added in v0.6.0

func NewEditWidget(stepInfo mapof.Any) (EditWidget, error)

NewEditWidget returns a fully initialized EditWidget object

func (EditWidget) AmStep added in v0.6.0

func (step EditWidget) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type ForwardTo

type ForwardTo struct {
	URL *template.Template
}

ForwardTo is a Step that forwards the user to a new page.

func NewForwardTo

func NewForwardTo(stepInfo mapof.Any) (ForwardTo, error)

NewForwardTo returns a fully initialized ForwardTo object

func (ForwardTo) AmStep

func (step ForwardTo) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type GetArchive added in v0.7.0

type GetArchive struct {
	Token       string
	Depth       int
	JSON        bool
	Attachments bool
	Metadata    [][]map[string]any
}

GetArchive is a Step that removes a named archive from a Stream

func NewGetArchive added in v0.7.0

func NewGetArchive(stepInfo mapof.Any) (GetArchive, error)

NewGetArchive returns a fully initialized GetArchive object

func (GetArchive) AmStep added in v0.7.0

func (step GetArchive) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type Halt added in v0.6.0

type Halt struct{}

Halt is a Step that can update the data.DataMap custom data stored in a Stream

func NewHalt added in v0.6.0

func NewHalt(stepInfo mapof.Any) (Halt, error)

NewHalt returns a fully initialized Halt object

func (Halt) AmStep added in v0.6.0

func (step Halt) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type IfCondition

type IfCondition struct {
	Condition *template.Template
	Then      []Step
	Otherwise []Step
}

IfCondition is a Step that can update the data.DataMap custom data stored in a Stream

func NewIfCondition

func NewIfCondition(stepInfo mapof.Any) (IfCondition, error)

func (IfCondition) AmStep

func (step IfCondition) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type InlineError added in v0.6.0

type InlineError struct {
	Message *template.Template
}

InlineError is a Step that displays an "inline failure" message on a form

func NewInlineError added in v0.6.0

func NewInlineError(stepInfo mapof.Any) (InlineError, error)

func (InlineError) AmStep added in v0.6.0

func (step InlineError) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type InlineSaveButton added in v0.7.0

type InlineSaveButton struct {
	ID    *template.Template
	Class string
	Label *template.Template
}

InlineSaveButton is a Step that displays an "inline success" message on a form

func NewInlineSaveButton added in v0.7.0

func NewInlineSaveButton(stepInfo mapof.Any) (InlineSaveButton, error)

func (InlineSaveButton) AmStep added in v0.7.0

func (step InlineSaveButton) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type InlineSuccess added in v0.6.0

type InlineSuccess struct {
	Message *template.Template
}

InlineSuccess is a Step that displays an "inline success" message on a form

func NewInlineSuccess added in v0.6.0

func NewInlineSuccess(stepInfo mapof.Any) (InlineSuccess, error)

func (InlineSuccess) AmStep added in v0.6.0

func (step InlineSuccess) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type MakeArchive added in v0.7.0

type MakeArchive struct {
	Token       string
	Depth       int
	JSON        bool
	Attachments bool
	Metadata    [][]map[string]any
}

MakeArchive is a Step that removes a named archive from a Stream

func NewMakeArchive added in v0.7.0

func NewMakeArchive(stepInfo mapof.Any) (MakeArchive, error)

NewMakeArchive returns a fully initialized MakeArchive object

func (MakeArchive) AmStep added in v0.7.0

func (step MakeArchive) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type ModelRequirer added in v0.7.0

type ModelRequirer interface {
	RequireModel() string
}

ModelRequirer interface wraps the "RequireModel" method, which specifies that a step can ONLY be used with a specific type of model object. (like: "stream", "follower", "following", etc.)

type ProcessContent added in v0.6.0

type ProcessContent struct {
	RemoveHTML bool
	AddTags    bool
	AddLinks   bool
}

ProcessContent is an action that can add new sub-streams to the domain.

func NewProcessContent added in v0.6.0

func NewProcessContent(stepInfo mapof.Any) (ProcessContent, error)

NewProcessContent returns a fully initialized ProcessContent record

func (ProcessContent) AmStep added in v0.6.0

func (step ProcessContent) AmStep()

AmStep is here to verify that this struct is a build pipeline step

type ProcessTags added in v0.7.0

type ProcessTags struct {
	Paths []string
}

ProcessTags is an action that can add new sub-streams to the domain.

func NewProcessTags added in v0.7.0

func NewProcessTags(stepInfo mapof.Any) (ProcessTags, error)

NewProcessTags returns a fully initialized ProcessTags record

func (ProcessTags) AmStep added in v0.7.0

func (step ProcessTags) AmStep()

AmStep is here to verify that this struct is a build pipeline step

type RedirectTo

type RedirectTo struct {
	URL *template.Template
}

RedirectTo is a Step that forwards the user to a new page.

func NewRedirectTo

func NewRedirectTo(stepInfo mapof.Any) (RedirectTo, error)

NewRedirectTo returns a fully initialized RedirectTo object

func (RedirectTo) AmStep

func (step RedirectTo) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type RefreshPage

type RefreshPage struct{}

RefreshPage represents an pipeline-step that forwards the user to a new page.

func NewRefreshPage

func NewRefreshPage(stepInfo mapof.Any) (RefreshPage, error)

NewRefreshPage returns a fully initialized RefreshPage object

func (RefreshPage) AmStep

func (step RefreshPage) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type ReloadPage

type ReloadPage struct{}

ReloadPage represents an pipeline-step that forwards the user to a new page.

func NewReloadPage

func NewReloadPage(stepInfo mapof.Any) (ReloadPage, error)

NewReloadPage returns a fully initialized ReloadPage object

func (ReloadPage) AmStep

func (step ReloadPage) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type RemoveEvent added in v0.6.0

type RemoveEvent struct {
	Event string
}

RemoveEvent is a Step that removes an HX-Trigger event from the HTTP result

func NewRemoveEvent added in v0.6.0

func NewRemoveEvent(stepInfo mapof.Any) (RemoveEvent, error)

NewRemoveEvent returns a fully initialized RemoveEvent object

func (RemoveEvent) AmStep added in v0.6.0

func (step RemoveEvent) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type Save

type Save struct {
	Comment *template.Template
	Method  string
}

Save is a Step that can save changes to any object

func NewSave

func NewSave(stepInfo mapof.Any) (Save, error)

NewSave returns a fully initialized Save object

func (Save) AmStep

func (step Save) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type SaveAndPublish added in v0.7.0

type SaveAndPublish struct {
	Outbox bool // If TRUE, also send updates to this User's outbox.
}

SaveAndPublish is a Step that can update a stream's SaveAndPublishDate with the current time.

func NewSaveAndPublish added in v0.7.0

func NewSaveAndPublish(stepInfo mapof.Any) (SaveAndPublish, error)

NewSaveAndPublish returns a fully initialized SaveAndPublish object

func (SaveAndPublish) AmStep added in v0.7.0

func (step SaveAndPublish) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type SearchIndex added in v0.7.0

type SearchIndex struct {
	Action string
	If     *template.Template
}

SearchIndex contains the configuration data for a modal that lets administrators manage connections to external servers.

func NewSearchIndex added in v0.7.0

func NewSearchIndex(stepInfo mapof.Any) (SearchIndex, error)

func (SearchIndex) AmStep added in v0.7.0

func (step SearchIndex) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type SendEmail added in v0.6.0

type SendEmail struct {
	Email string
}

SendEmail is a Step that can send a named email to a user

func NewSendEmail added in v0.6.0

func NewSendEmail(stepInfo mapof.Any) (SendEmail, error)

NewSendEmail returns a fully initialized SendEmail object

func (SendEmail) AmStep added in v0.6.0

func (step SendEmail) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type SetData

type SetData struct {
	FromURL  []string                      // List of paths to pull from URL data
	FromForm []string                      // List of paths to pull from Form data
	Values   map[string]*template.Template // values to set directly into the object
	Defaults mapof.Any                     // values to set into the object IFF they are currently empty.
}

SetData is a Step that can update the custom data stored in a Stream

func NewSetData

func NewSetData(stepInfo mapof.Any) (SetData, error)

NewSetData returns a fully initialized SetData object

func (SetData) AmStep

func (step SetData) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type SetHeader

type SetHeader struct {
	Method string
	Name   string
	Value  *template.Template
}

SetHeader is a Step that can update the custom data stored in a Stream

func NewSetHeader

func NewSetHeader(stepInfo mapof.Any) (SetHeader, error)

NewSetHeader returns a fully initialized SetHeader object

func (SetHeader) AmStep

func (step SetHeader) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type SetPassword added in v0.7.0

type SetPassword struct{}

SetPassword is a Step that can update the custom data stored in a Stream

func NewSetPassword added in v0.7.0

func NewSetPassword(stepInfo mapof.Any) (SetPassword, error)

NewSetPassword returns a fully initialized SetPassword object

func (SetPassword) AmStep added in v0.7.0

func (step SetPassword) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type SetQueryParam

type SetQueryParam struct {
	Values map[string]*template.Template
}

SetQueryParam is a Step that forwards the user to a new page.

func NewSetQueryParam

func NewSetQueryParam(stepInfo mapof.Any) (SetQueryParam, error)

NewSetQueryParam returns a fully initialized SetQueryParam object

func (SetQueryParam) AmStep

func (step SetQueryParam) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type SetRenderData added in v0.6.0

type SetRenderData struct {
	Values map[string]*template.Template // values to set directly into the object
}

SetRenderData is a Step that can update the custom data stored in a builder

func NewSetRenderData added in v0.6.0

func NewSetRenderData(stepInfo mapof.Any) (SetRenderData, error)

NewSetRenderData returns a fully initialized SetRenderData object

func (SetRenderData) AmStep added in v0.6.0

func (step SetRenderData) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type SetResponse added in v0.6.0

type SetResponse struct{}

SetResponse is a Step that can create/update a response to the current model object

func NewSetResponse added in v0.6.0

func NewSetResponse(stepInfo mapof.Any) (SetResponse, error)

NewSetResponse returns a fully initialized SetResponse object

func (SetResponse) AmStep added in v0.6.0

func (step SetResponse) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type SetSimpleSharing

type SetSimpleSharing struct {
	Title   string
	Message string
	Roles   []string
}

SetSimpleSharing represents an action that can edit a top-level folder in the Domain

func NewSetSimpleSharing

func NewSetSimpleSharing(stepInfo mapof.Any) (SetSimpleSharing, error)

NewSetSimpleSharing returns a fully parsed SetSimpleSharing object

func (SetSimpleSharing) AmStep

func (step SetSimpleSharing) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type SetState

type SetState struct {
	State string
}

SetState is a Step that can change a Stream's state

func NewSetState

func NewSetState(stepInfo mapof.Any) (SetState, error)

func (SetState) AmStep

func (step SetState) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type SetThumbnail

type SetThumbnail struct {
	Path string
}

SetThumbnail is a Step that can update the data.DataMap custom data stored in a Stream

func NewSetThumbnail

func NewSetThumbnail(stepInfo mapof.Any) (SetThumbnail, error)

func (SetThumbnail) AmStep

func (step SetThumbnail) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type Sleep added in v0.7.0

type Sleep struct {
	Duration int
}

Sleep is a Step that sleeps for a determined amount of time. It should really only be used for debugging.

func NewSleep added in v0.7.0

func NewSleep(stepInfo mapof.Any) (Sleep, error)

NewSleep returns a fully initialized Sleep object

func (Sleep) AmStep added in v0.7.0

func (step Sleep) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type Sort

type Sort struct {
	Model   string
	Keys    string
	Values  string
	Message string
}

Sort is a Step that can update multiple records at once

func NewSort

func NewSort(stepInfo mapof.Any) (Sort, error)

func (Sort) AmStep

func (step Sort) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type SortAttachments

type SortAttachments struct {
	Keys    string
	Values  string
	Message string
}

SortAttachments is a Step that can update multiple records at once

func NewSortAttachments

func NewSortAttachments(stepInfo mapof.Any) (SortAttachments, error)

func (SortAttachments) AmStep

func (step SortAttachments) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type SortWidgets

type SortWidgets struct{}

SortWidgets is a Step that can update multiple records at once

func NewSortWidgets

func NewSortWidgets(stepInfo mapof.Any) (SortWidgets, error)

func (SortWidgets) AmStep

func (step SortWidgets) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type Step

type Step interface {
	// AmStep is a NO-OP.  It is only used to validate that a struct contains "step-like" data.
	AmStep()
}

Step interface is used here to bind together the structs in this package

func New

func New(stepInfo mapof.Any) (Step, error)

New uses an Step object to create a new action

func NewPipeline

func NewPipeline[T ~map[string]any](stepInfo []T) ([]Step, error)

NewPipeline parses a series of build steps into a new array

type StreamPromoteDraft

type StreamPromoteDraft struct {
	StateID string
}

StreamPromoteDraft represents a pipeline-step that can copy the Container from a StreamDraft into its corresponding Stream

func NewStreamPromoteDraft

func NewStreamPromoteDraft(stepInfo mapof.Any) (StreamPromoteDraft, error)

func (StreamPromoteDraft) AmStep

func (step StreamPromoteDraft) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type TableEditor

type TableEditor struct {
	Path string
	Form form.Element
}

TableEditor is an action that can add new sub-streams to the domain.

func NewTableEditor

func NewTableEditor(stepInfo mapof.Any) (TableEditor, error)

NewTableEditor returns a fully initialized TableEditor record

func (TableEditor) AmStep

func (step TableEditor) AmStep()

AmStep is here to verify that this struct is a build pipeline step

type TriggerEvent

type TriggerEvent struct {
	Event string
	Value *template.Template
}

TriggerEvent is a Step that forwards the user to a new page.

func NewTriggerEvent

func NewTriggerEvent(stepInfo mapof.Any) (TriggerEvent, error)

NewTriggerEvent returns a fully initialized TriggerEvent object

func (TriggerEvent) AmStep

func (step TriggerEvent) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type TypeRequirer added in v0.7.0

type TypeRequirer interface {
	RequireType() string
}

TypeRequirer interface wraps the "RequireType" method, which specifies that a step can ONLY be used with a specific type of builder (like: "template", "registration", "widget", "email", etc.)

type UnPublish

type UnPublish struct {
	Outbox bool
}

UnPublish is a Step that can update a stream's UnPublishDate with the current time.

func NewUnPublish

func NewUnPublish(stepInfo mapof.Any) (UnPublish, error)

NewUnPublish returns a fully initialized UnPublish object

func (UnPublish) AmStep

func (step UnPublish) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type UploadAttachments added in v0.7.0

type UploadAttachments struct {
	Action         string // Action to perform when uploading the attachment ("append" or "replace")
	Fieldname      string // Name of the form field that contains the file data (Default: "file")
	AttachmentPath string // Path name to store the AttachmentID
	DownloadPath   string // Path name to store the download URL
	FilenamePath   string // Path name to store the original filename
	AcceptType     string // Mime Type(s) to accept (e.g. "image/*")
	Category       string // Category to apply to the Attachment
	Maximum        int    // Maximum number of uploads to allow (Default: 1)
	JSONResult     bool   // If TRUE, return a JSON structure with result data. This forces Maximum=1

	Label                string // Value to set as the attachment.label
	LabelFieldname       string // Form field that defines the attachment label
	Description          string // Value to set as the attachment.description
	DescriptionFieldname string // Form field that defines the attachment description

	RuleHeight int      // Fixed height for all downloads
	RuleWidth  int      // Fixed width for all downloads
	RuleTypes  []string // Allowed extensions.  The first value is used as the default.
}

UploadAttachments represents an action that can upload attachments. It can only be used on a StreamBuilder

func NewUploadAttachments added in v0.7.0

func NewUploadAttachments(stepInfo mapof.Any) (UploadAttachments, error)

NewUploadAttachments returns a fully parsed UploadAttachments object

func (UploadAttachments) AmStep added in v0.7.0

func (step UploadAttachments) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type ViewCSS added in v0.7.0

type ViewCSS struct {
	File string
}

ViewCSS is a Step that can build a Stream into HTML

func NewViewCSS added in v0.7.0

func NewViewCSS(stepInfo mapof.Any) (ViewCSS, error)

NewViewCSS generates a fully initialized ViewCSS step.

func (ViewCSS) AmStep added in v0.7.0

func (step ViewCSS) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type ViewFeed

type ViewFeed struct {
}

ViewFeed is a Step that can build a Stream into HTML

func NewViewFeed

func NewViewFeed(stepInfo mapof.Any) (ViewFeed, error)

NewViewFeed generates a fully initialized ViewFeed step.

func (ViewFeed) AmStep

func (step ViewFeed) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type ViewHTML

type ViewHTML struct {
	File       string
	Method     string
	AsFullPage bool
}

ViewHTML is a Step that can build a Stream into HTML

func NewViewHTML

func NewViewHTML(stepInfo mapof.Any) (ViewHTML, error)

NewViewHTML generates a fully initialized ViewHTML step.

func (ViewHTML) AmStep

func (step ViewHTML) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type ViewJSONLD added in v0.6.0

type ViewJSONLD struct {
	Method string
}

ViewJSONLD is a Step that can build a Stream into HTML

func NewViewJSONLD added in v0.6.0

func NewViewJSONLD(stepInfo mapof.Any) (ViewJSONLD, error)

NewViewJSONLD generates a fully initialized ViewJSONLD step.

func (ViewJSONLD) AmStep added in v0.6.0

func (step ViewJSONLD) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type WebSub

type WebSub struct {
}

WebSub is a Step that can build a Stream into HTML

func NewWebSub

func NewWebSub(stepInfo mapof.Any) (WebSub, error)

NewWebSub generates a fully initialized WebSub step.

func (WebSub) AmStep

func (step WebSub) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type WithAttachment added in v0.7.0

type WithAttachment struct {
	SubSteps []Step
}

WithAttachment is a Step that returns a new Attachment Builder

func NewWithAttachment added in v0.7.0

func NewWithAttachment(stepInfo mapof.Any) (WithAttachment, error)

NewWithAttachment returns a fully initialized WithAttachment object

func (WithAttachment) AmStep added in v0.7.0

func (step WithAttachment) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type WithChildren

type WithChildren struct {
	SubSteps []Step
}

WithChildren is a Step executes a list of sub-steps on every child of the current Stream

func NewWithChildren

func NewWithChildren(stepInfo mapof.Any) (WithChildren, error)

NewWithChildren returns a fully initialized WithChildren object

func (WithChildren) AmStep

func (step WithChildren) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type WithDraft

type WithDraft struct {
	SubSteps []Step
}

WithDraft is a Step that returns a new StreamDraft Builder

func NewWithDraft

func NewWithDraft(stepInfo mapof.Any) (WithDraft, error)

NewWithDraft returns a fully initialized WithDraft object

func (WithDraft) AmStep

func (step WithDraft) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type WithFolder

type WithFolder struct {
	SubSteps []Step
}

WithFolder is a Step that returns a new Folder Builder

func NewWithFolder

func NewWithFolder(stepInfo mapof.Any) (WithFolder, error)

NewWithFolder returns a fully initialized WithFolder object

func (WithFolder) AmStep

func (step WithFolder) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type WithFollower

type WithFollower struct {
	SubSteps []Step
}

WithFollower is a Step that returns a new Follower Builder

func NewWithFollower

func NewWithFollower(stepInfo mapof.Any) (WithFollower, error)

NewWithFollower returns a fully initialized WithFollower object

func (WithFollower) AmStep

func (step WithFollower) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type WithFollowing

type WithFollowing struct {
	SubSteps []Step
}

WithFollowing is a Step that returns a new Following builder

func NewWithFollowing

func NewWithFollowing(stepInfo mapof.Any) (WithFollowing, error)

NewWithFollowing returns a fully initialized WithFollowing object

func (WithFollowing) AmStep

func (step WithFollowing) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type WithMessage

type WithMessage struct {
	SubSteps []Step
}

WithMessage is a Step that returns a new Message Builder

func NewWithMessage

func NewWithMessage(stepInfo mapof.Any) (WithMessage, error)

NewWithMessage returns a fully initialized WithMessage object

func (WithMessage) AmStep

func (step WithMessage) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type WithNextSibling

type WithNextSibling struct {
	SubSteps []Step
}

WithNextSibling is a Step that returns a new Stream Builder keyed to the next sibling of the current Stream

func NewWithNextSibling

func NewWithNextSibling(stepInfo mapof.Any) (WithNextSibling, error)

NewWithNextSibling returns a fully initialized WithNextSibling object

func (WithNextSibling) AmStep

func (step WithNextSibling) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type WithParent

type WithParent struct {
	SubSteps []Step
}

WithParent is a Step that returns a new Stream Builder keyed to the parent of the current Stream

func NewWithParent

func NewWithParent(stepInfo mapof.Any) (WithParent, error)

NewWithParent returns a fully initialized WithParent object

func (WithParent) AmStep

func (step WithParent) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type WithPrevSibling

type WithPrevSibling struct {
	SubSteps []Step
}

WithPrevSibling is a Step that returns a new Stream builder keyed to the previous sibling of the current stream

func NewWithPrevSibling

func NewWithPrevSibling(stepInfo mapof.Any) (WithPrevSibling, error)

NewWithPrevSibling returns a fully initialized WithPrevSibling object

func (WithPrevSibling) AmStep

func (step WithPrevSibling) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type WithResponse added in v0.6.0

type WithResponse struct {
	SubSteps []Step
}

WithResponse is a Step that returns a new Response Builder

func NewWithResponse added in v0.6.0

func NewWithResponse(stepInfo mapof.Any) (WithResponse, error)

NewWithResponse returns a fully initialized WithResponse object

func (WithResponse) AmStep added in v0.6.0

func (step WithResponse) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

type WithRule added in v0.6.0

type WithRule struct {
	SubSteps []Step
}

WithRule is a Step that returns a new Rule Builder

func NewWithRule added in v0.6.0

func NewWithRule(stepInfo mapof.Any) (WithRule, error)

NewWithRule returns a fully initialized WithRule object

func (WithRule) AmStep added in v0.6.0

func (step WithRule) AmStep()

AmStep is here only to verify that this struct is a build pipeline step

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳