Documentation
¶
Index ¶
- Variables
- type Action
- func (*Action) Descriptor() ([]byte, []int)deprecated
- func (x *Action) GetAsk() *Action_PromptUser
- func (x *Action) GetBranch() *Action_Branch
- func (x *Action) GetForEachElement() *Action_ForEachElement
- func (x *Action) GetInput() *Action_Input
- func (x *Action) GetMouseClick() *Action_MouseClick
- func (x *Action) GetNav() *Action_Nav
- func (x *Action) GetStore() *Action_Store
- func (*Action) ProtoMessage()
- func (x *Action) ProtoReflect() protoreflect.Message
- func (x *Action) Reset()
- func (x *Action) String() string
- type Action_Branch
- func (*Action_Branch) Descriptor() ([]byte, []int)deprecated
- func (x *Action_Branch) GetIf() string
- func (x *Action_Branch) GetSteps() []*Step
- func (*Action_Branch) ProtoMessage()
- func (x *Action_Branch) ProtoReflect() protoreflect.Message
- func (x *Action_Branch) Reset()
- func (x *Action_Branch) String() string
- type Action_ForEachElement
- func (*Action_ForEachElement) Descriptor() ([]byte, []int)deprecated
- func (x *Action_ForEachElement) GetActions() []*Action
- func (x *Action_ForEachElement) GetSelector() string
- func (*Action_ForEachElement) ProtoMessage()
- func (x *Action_ForEachElement) ProtoReflect() protoreflect.Message
- func (x *Action_ForEachElement) Reset()
- func (x *Action_ForEachElement) String() string
- type Action_Input
- func (*Action_Input) Descriptor() ([]byte, []int)deprecated
- func (x *Action_Input) GetSelector() string
- func (x *Action_Input) GetValue() string
- func (*Action_Input) ProtoMessage()
- func (x *Action_Input) ProtoReflect() protoreflect.Message
- func (x *Action_Input) Reset()
- func (x *Action_Input) String() string
- type Action_MouseClick
- func (*Action_MouseClick) Descriptor() ([]byte, []int)deprecated
- func (x *Action_MouseClick) GetDouble() bool
- func (x *Action_MouseClick) GetSelector() string
- func (*Action_MouseClick) ProtoMessage()
- func (x *Action_MouseClick) ProtoReflect() protoreflect.Message
- func (x *Action_MouseClick) Reset()
- func (x *Action_MouseClick) String() string
- type Action_Nav
- type Action_PromptUser
- type Action_Store
- type Action_Value
- type BrowserTemplateData
- func (*BrowserTemplateData) Descriptor() ([]byte, []int)deprecated
- func (x *BrowserTemplateData) GetContent() string
- func (x *BrowserTemplateData) GetUrl() string
- func (*BrowserTemplateData) ProtoMessage()
- func (x *BrowserTemplateData) ProtoReflect() protoreflect.Message
- func (x *BrowserTemplateData) Reset()
- func (x *BrowserTemplateData) String() string
- type Component
- func (*Component) Descriptor() ([]byte, []int)deprecated
- func (x *Component) GetDropdown() *Component_Dropdown
- func (x *Component) GetInput() *Component_Input
- func (*Component) ProtoMessage()
- func (x *Component) ProtoReflect() protoreflect.Message
- func (x *Component) Reset()
- func (x *Component) String() string
- type Component_Dropdown
- func (*Component_Dropdown) Descriptor() ([]byte, []int)deprecated
- func (x *Component_Dropdown) GetFrom() *Component_Dropdown_FromSpec
- func (x *Component_Dropdown) GetMerge() []*Component_Dropdown_OptionMerge
- func (x *Component_Dropdown) GetOptions() []*Component_Dropdown_Option
- func (*Component_Dropdown) ProtoMessage()
- func (x *Component_Dropdown) ProtoReflect() protoreflect.Message
- func (x *Component_Dropdown) Reset()
- func (x *Component_Dropdown) String() string
- type Component_Dropdown_FromSpec
- func (*Component_Dropdown_FromSpec) Descriptor() ([]byte, []int)deprecated
- func (x *Component_Dropdown_FromSpec) GetMapper() *Component_Dropdown_Option
- func (x *Component_Dropdown_FromSpec) GetSelector() *EachSelector
- func (*Component_Dropdown_FromSpec) ProtoMessage()
- func (x *Component_Dropdown_FromSpec) ProtoReflect() protoreflect.Message
- func (x *Component_Dropdown_FromSpec) Reset()
- func (x *Component_Dropdown_FromSpec) String() string
- type Component_Dropdown_Option
- func (*Component_Dropdown_Option) Descriptor() ([]byte, []int)deprecated
- func (x *Component_Dropdown_Option) GetDisabled() bool
- func (x *Component_Dropdown_Option) GetHidden() bool
- func (x *Component_Dropdown_Option) GetText() string
- func (x *Component_Dropdown_Option) GetValue() string
- func (*Component_Dropdown_Option) ProtoMessage()
- func (x *Component_Dropdown_Option) ProtoReflect() protoreflect.Message
- func (x *Component_Dropdown_Option) Reset()
- func (x *Component_Dropdown_Option) String() string
- type Component_Dropdown_OptionMerge
- func (*Component_Dropdown_OptionMerge) Descriptor() ([]byte, []int)deprecated
- func (x *Component_Dropdown_OptionMerge) GetIf() string
- func (x *Component_Dropdown_OptionMerge) GetOption() *Component_Dropdown_Option
- func (*Component_Dropdown_OptionMerge) ProtoMessage()
- func (x *Component_Dropdown_OptionMerge) ProtoReflect() protoreflect.Message
- func (x *Component_Dropdown_OptionMerge) Reset()
- func (x *Component_Dropdown_OptionMerge) String() string
- type Component_Input
- type Component_Input_Type
- func (Component_Input_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Component_Input_Type) Enum() *Component_Input_Type
- func (Component_Input_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Component_Input_Type) Number() protoreflect.EnumNumber
- func (x Component_Input_Type) String() string
- func (Component_Input_Type) Type() protoreflect.EnumType
- type ConditionalSignal
- func (*ConditionalSignal) Descriptor() ([]byte, []int)deprecated
- func (x *ConditionalSignal) GetIf() string
- func (x *ConditionalSignal) GetMessage() string
- func (x *ConditionalSignal) GetSignal() ConditionalSignal_Signal
- func (*ConditionalSignal) ProtoMessage()
- func (x *ConditionalSignal) ProtoReflect() protoreflect.Message
- func (x *ConditionalSignal) Reset()
- func (x *ConditionalSignal) String() string
- type ConditionalSignal_Signal
- func (ConditionalSignal_Signal) Descriptor() protoreflect.EnumDescriptor
- func (x ConditionalSignal_Signal) Enum() *ConditionalSignal_Signal
- func (ConditionalSignal_Signal) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConditionalSignal_Signal) Number() protoreflect.EnumNumber
- func (x ConditionalSignal_Signal) String() string
- func (ConditionalSignal_Signal) Type() protoreflect.EnumType
- type EachSelector
- func (*EachSelector) Descriptor() ([]byte, []int)deprecated
- func (x *EachSelector) GetIterator() string
- func (x *EachSelector) GetListSelector() string
- func (*EachSelector) ProtoMessage()
- func (x *EachSelector) ProtoReflect() protoreflect.Message
- func (x *EachSelector) Reset()
- func (x *EachSelector) String() string
- type HTMLNodeTemplateData
- func (*HTMLNodeTemplateData) Descriptor() ([]byte, []int)deprecated
- func (x *HTMLNodeTemplateData) GetAttrs() map[string]*HTMLNodeTemplateData_Attribute
- func (x *HTMLNodeTemplateData) GetData() string
- func (x *HTMLNodeTemplateData) GetElement() string
- func (*HTMLNodeTemplateData) ProtoMessage()
- func (x *HTMLNodeTemplateData) ProtoReflect() protoreflect.Message
- func (x *HTMLNodeTemplateData) Reset()
- func (x *HTMLNodeTemplateData) String() string
- type HTMLNodeTemplateData_Attribute
- func (*HTMLNodeTemplateData_Attribute) Descriptor() ([]byte, []int)deprecated
- func (x *HTMLNodeTemplateData_Attribute) GetNamespace() string
- func (x *HTMLNodeTemplateData_Attribute) GetVal() string
- func (*HTMLNodeTemplateData_Attribute) ProtoMessage()
- func (x *HTMLNodeTemplateData_Attribute) ProtoReflect() protoreflect.Message
- func (x *HTMLNodeTemplateData_Attribute) Reset()
- func (x *HTMLNodeTemplateData_Attribute) String() string
- type KeyVal
- type Prompt
- func (*Prompt) Descriptor() ([]byte, []int)deprecated
- func (x *Prompt) GetComponent() *Component
- func (x *Prompt) GetDescription() string
- func (x *Prompt) GetTitle() string
- func (*Prompt) ProtoMessage()
- func (x *Prompt) ProtoReflect() protoreflect.Message
- func (x *Prompt) Reset()
- func (x *Prompt) String() string
- type Script
- type ScriptTemplateData
- func (*ScriptTemplateData) Descriptor() ([]byte, []int)deprecated
- func (x *ScriptTemplateData) GetBrowser() *BrowserTemplateData
- func (x *ScriptTemplateData) GetEach() map[string]string
- func (x *ScriptTemplateData) GetElement() *HTMLNodeTemplateData
- func (x *ScriptTemplateData) GetOption() *Component_Dropdown_Option
- func (x *ScriptTemplateData) GetStep() map[string]string
- func (*ScriptTemplateData) ProtoMessage()
- func (x *ScriptTemplateData) ProtoReflect() protoreflect.Message
- func (x *ScriptTemplateData) Reset()
- func (x *ScriptTemplateData) String() string
- type Step
- type Value
Constants ¶
This section is empty.
Variables ¶
var ( Component_Input_Type_name = map[int32]string{ 0: "TEXT", 1: "PASSWORD", } Component_Input_Type_value = map[string]int32{ "TEXT": 0, "PASSWORD": 1, } )
Enum value maps for Component_Input_Type.
var ( ConditionalSignal_Signal_name = map[int32]string{ 0: "unknown", 1: "success", 2: "error", } ConditionalSignal_Signal_value = map[string]int32{ "unknown": 0, "success": 1, "error": 2, } )
Enum value maps for ConditionalSignal_Signal.
var File_api_script_v1beta1_script_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { // Click on an element. MouseClick *Action_MouseClick `protobuf:"bytes,1,opt,name=mouse_click,proto3,oneof" json:"mouse_click,omitempty"` // Input some text into an element. Input *Action_Input `protobuf:"bytes,2,opt,name=input,proto3,oneof" json:"input,omitempty"` // Ask the user for some information. Ask *Action_PromptUser `protobuf:"bytes,3,opt,name=ask,proto3,oneof" json:"ask,omitempty"` Branch *Action_Branch `protobuf:"bytes,5,opt,name=branch,proto3,oneof" json:"branch,omitempty"` Store *Action_Store `protobuf:"bytes,6,opt,name=store,proto3,oneof" json:"store,omitempty"` ForEachElement *Action_ForEachElement `protobuf:"bytes,7,opt,name=for_each_element,proto3,oneof" json:"for_each_element,omitempty"` // contains filtered or unexported fields }
func (*Action) Descriptor
deprecated
func (*Action) GetAsk ¶
func (x *Action) GetAsk() *Action_PromptUser
func (*Action) GetBranch ¶
func (x *Action) GetBranch() *Action_Branch
func (*Action) GetForEachElement ¶
func (x *Action) GetForEachElement() *Action_ForEachElement
func (*Action) GetInput ¶
func (x *Action) GetInput() *Action_Input
func (*Action) GetMouseClick ¶
func (x *Action) GetMouseClick() *Action_MouseClick
func (*Action) GetNav ¶
func (x *Action) GetNav() *Action_Nav
func (*Action) GetStore ¶
func (x *Action) GetStore() *Action_Store
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
func (*Action) ProtoReflect ¶
func (x *Action) ProtoReflect() protoreflect.Message
type Action_Branch ¶
type Action_Branch struct { // If the field is truthy, this Branch will be taken. If string `protobuf:"bytes,1,opt,name=if,proto3" json:"if,omitempty"` // The steps that are executed as part of this Branch Steps []*Step `protobuf:"bytes,2,rep,name=steps,proto3" json:"steps,omitempty"` // contains filtered or unexported fields }
A group of actions to execute.
func (*Action_Branch) Descriptor
deprecated
func (*Action_Branch) Descriptor() ([]byte, []int)
Deprecated: Use Action_Branch.ProtoReflect.Descriptor instead.
func (*Action_Branch) GetIf ¶
func (x *Action_Branch) GetIf() string
func (*Action_Branch) GetSteps ¶
func (x *Action_Branch) GetSteps() []*Step
func (*Action_Branch) ProtoMessage ¶
func (*Action_Branch) ProtoMessage()
func (*Action_Branch) ProtoReflect ¶
func (x *Action_Branch) ProtoReflect() protoreflect.Message
func (*Action_Branch) Reset ¶
func (x *Action_Branch) Reset()
func (*Action_Branch) String ¶
func (x *Action_Branch) String() string
type Action_ForEachElement ¶
type Action_ForEachElement struct { Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"` Actions []*Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` // contains filtered or unexported fields }
Executes actions for each element that is returned by the selector. The Element will be accessible as a template expression by the child action.
func (*Action_ForEachElement) Descriptor
deprecated
func (*Action_ForEachElement) Descriptor() ([]byte, []int)
Deprecated: Use Action_ForEachElement.ProtoReflect.Descriptor instead.
func (*Action_ForEachElement) GetActions ¶
func (x *Action_ForEachElement) GetActions() []*Action
func (*Action_ForEachElement) GetSelector ¶
func (x *Action_ForEachElement) GetSelector() string
func (*Action_ForEachElement) ProtoMessage ¶
func (*Action_ForEachElement) ProtoMessage()
func (*Action_ForEachElement) ProtoReflect ¶
func (x *Action_ForEachElement) ProtoReflect() protoreflect.Message
func (*Action_ForEachElement) Reset ¶
func (x *Action_ForEachElement) Reset()
func (*Action_ForEachElement) String ¶
func (x *Action_ForEachElement) String() string
type Action_Input ¶
type Action_Input struct { Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"` // Provide a value for the input action. This could be hardcoded or a variable reference. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Input text into a field.
func (*Action_Input) Descriptor
deprecated
func (*Action_Input) Descriptor() ([]byte, []int)
Deprecated: Use Action_Input.ProtoReflect.Descriptor instead.
func (*Action_Input) GetSelector ¶
func (x *Action_Input) GetSelector() string
func (*Action_Input) GetValue ¶
func (x *Action_Input) GetValue() string
func (*Action_Input) ProtoMessage ¶
func (*Action_Input) ProtoMessage()
func (*Action_Input) ProtoReflect ¶
func (x *Action_Input) ProtoReflect() protoreflect.Message
func (*Action_Input) Reset ¶
func (x *Action_Input) Reset()
func (*Action_Input) String ¶
func (x *Action_Input) String() string
type Action_MouseClick ¶
type Action_MouseClick struct { Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"` // If true, the mouse will double click. Double *bool `protobuf:"varint,2,opt,name=double,proto3,oneof" json:"double,omitempty"` // contains filtered or unexported fields }
Click on an element.
func (*Action_MouseClick) Descriptor
deprecated
func (*Action_MouseClick) Descriptor() ([]byte, []int)
Deprecated: Use Action_MouseClick.ProtoReflect.Descriptor instead.
func (*Action_MouseClick) GetDouble ¶
func (x *Action_MouseClick) GetDouble() bool
func (*Action_MouseClick) GetSelector ¶
func (x *Action_MouseClick) GetSelector() string
func (*Action_MouseClick) ProtoMessage ¶
func (*Action_MouseClick) ProtoMessage()
func (*Action_MouseClick) ProtoReflect ¶
func (x *Action_MouseClick) ProtoReflect() protoreflect.Message
func (*Action_MouseClick) Reset ¶
func (x *Action_MouseClick) Reset()
func (*Action_MouseClick) String ¶
func (x *Action_MouseClick) String() string
type Action_Nav ¶
type Action_Nav struct { string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` // contains filtered or unexported fields }Addr
func (*Action_Nav) Descriptor
deprecated
func (*Action_Nav) Descriptor() ([]byte, []int)
Deprecated: Use Action_Nav.ProtoReflect.Descriptor instead.
func (*Action_Nav) GetAddr ¶
func (x *Action_Nav) GetAddr() string
func (*Action_Nav) ProtoMessage ¶
func (*Action_Nav) ProtoMessage()
func (*Action_Nav) ProtoReflect ¶
func (x *Action_Nav) ProtoReflect() protoreflect.Message
func (*Action_Nav) Reset ¶
func (x *Action_Nav) Reset()
func (*Action_Nav) String ¶
func (x *Action_Nav) String() string
type Action_PromptUser ¶
type Action_PromptUser struct { Prompt *Prompt `protobuf:"bytes,1,opt,name=prompt,proto3" json:"prompt,omitempty"` // contains filtered or unexported fields }
Prompt the user for some data.
func (*Action_PromptUser) Descriptor
deprecated
func (*Action_PromptUser) Descriptor() ([]byte, []int)
Deprecated: Use Action_PromptUser.ProtoReflect.Descriptor instead.
func (*Action_PromptUser) GetPrompt ¶
func (x *Action_PromptUser) GetPrompt() *Prompt
func (*Action_PromptUser) ProtoMessage ¶
func (*Action_PromptUser) ProtoMessage()
func (*Action_PromptUser) ProtoReflect ¶
func (x *Action_PromptUser) ProtoReflect() protoreflect.Message
func (*Action_PromptUser) Reset ¶
func (x *Action_PromptUser) Reset()
func (*Action_PromptUser) String ¶
func (x *Action_PromptUser) String() string
type Action_Store ¶
type Action_Store struct { KeyVals []*KeyVal `protobuf:"bytes,1,rep,name=key_vals,proto3" json:"key_vals,omitempty"` // contains filtered or unexported fields }
Store arbitrary values into the `step.[id]` field.
func (*Action_Store) Descriptor
deprecated
func (*Action_Store) Descriptor() ([]byte, []int)
Deprecated: Use Action_Store.ProtoReflect.Descriptor instead.
func (*Action_Store) GetKeyVals ¶
func (x *Action_Store) GetKeyVals() []*KeyVal
func (*Action_Store) ProtoMessage ¶
func (*Action_Store) ProtoMessage()
func (*Action_Store) ProtoReflect ¶
func (x *Action_Store) ProtoReflect() protoreflect.Message
func (*Action_Store) Reset ¶
func (x *Action_Store) Reset()
func (*Action_Store) String ¶
func (x *Action_Store) String() string
type Action_Value ¶
type Action_Value struct { // Hardcode the value for the action. Raw string `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"` // contains filtered or unexported fields }
A field representing the value of an Action.
func (*Action_Value) Descriptor
deprecated
func (*Action_Value) Descriptor() ([]byte, []int)
Deprecated: Use Action_Value.ProtoReflect.Descriptor instead.
func (*Action_Value) GetRaw ¶
func (x *Action_Value) GetRaw() string
func (*Action_Value) ProtoMessage ¶
func (*Action_Value) ProtoMessage()
func (*Action_Value) ProtoReflect ¶
func (x *Action_Value) ProtoReflect() protoreflect.Message
func (*Action_Value) Reset ¶
func (x *Action_Value) Reset()
func (*Action_Value) String ¶
func (x *Action_Value) String() string
type BrowserTemplateData ¶
type BrowserTemplateData struct { // The current URL for the browser. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // The raw HTML of the page. Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*BrowserTemplateData) Descriptor
deprecated
func (*BrowserTemplateData) Descriptor() ([]byte, []int)
Deprecated: Use BrowserTemplateData.ProtoReflect.Descriptor instead.
func (*BrowserTemplateData) GetContent ¶
func (x *BrowserTemplateData) GetContent() string
func (*BrowserTemplateData) GetUrl ¶
func (x *BrowserTemplateData) GetUrl() string
func (*BrowserTemplateData) ProtoMessage ¶
func (*BrowserTemplateData) ProtoMessage()
func (*BrowserTemplateData) ProtoReflect ¶
func (x *BrowserTemplateData) ProtoReflect() protoreflect.Message
func (*BrowserTemplateData) Reset ¶
func (x *BrowserTemplateData) Reset()
func (*BrowserTemplateData) String ¶
func (x *BrowserTemplateData) String() string
type Component ¶
type Component struct { Dropdown *Component_Dropdown `protobuf:"bytes,1,opt,name=dropdown,proto3,oneof" json:"dropdown,omitempty"` Input *Component_Input `protobuf:"bytes,2,opt,name=input,proto3,oneof" json:"input,omitempty"` // contains filtered or unexported fields }
Mutually exclusive set of components that can be displayed to the user. Only a single field can be set.
func (*Component) Descriptor
deprecated
func (*Component) GetDropdown ¶
func (x *Component) GetDropdown() *Component_Dropdown
func (*Component) GetInput ¶
func (x *Component) GetInput() *Component_Input
func (*Component) ProtoMessage ¶
func (*Component) ProtoMessage()
func (*Component) ProtoReflect ¶
func (x *Component) ProtoReflect() protoreflect.Message
type Component_Dropdown ¶
type Component_Dropdown struct { Options []*Component_Dropdown_Option `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"` // A variable reference that populates the options. If the options field is also set, this // is appended to it. Useful if you want to dynamically create a dropdown from an arbitrary // list of options on the page. From *Component_Dropdown_FromSpec `protobuf:"bytes,2,opt,name=from,proto3,oneof" json:"from,omitempty"` // If specified, merge the specified fields into every option for the Dropdown. Merge []*Component_Dropdown_OptionMerge `protobuf:"bytes,3,rep,name=merge,proto3" json:"merge,omitempty"` // contains filtered or unexported fields }
Choose from a set of predefined options.
func (*Component_Dropdown) Descriptor
deprecated
func (*Component_Dropdown) Descriptor() ([]byte, []int)
Deprecated: Use Component_Dropdown.ProtoReflect.Descriptor instead.
func (*Component_Dropdown) GetFrom ¶
func (x *Component_Dropdown) GetFrom() *Component_Dropdown_FromSpec
func (*Component_Dropdown) GetMerge ¶
func (x *Component_Dropdown) GetMerge() []*Component_Dropdown_OptionMerge
func (*Component_Dropdown) GetOptions ¶
func (x *Component_Dropdown) GetOptions() []*Component_Dropdown_Option
func (*Component_Dropdown) ProtoMessage ¶
func (*Component_Dropdown) ProtoMessage()
func (*Component_Dropdown) ProtoReflect ¶
func (x *Component_Dropdown) ProtoReflect() protoreflect.Message
func (*Component_Dropdown) Reset ¶
func (x *Component_Dropdown) Reset()
func (*Component_Dropdown) String ¶
func (x *Component_Dropdown) String() string
type Component_Dropdown_FromSpec ¶
type Component_Dropdown_FromSpec struct { Selector *EachSelector `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"` // Iterates through every element of the EachSelector and maps each // element via template expressions. Mapper *Component_Dropdown_Option `protobuf:"bytes,2,opt,name=mapper,proto3" json:"mapper,omitempty"` // contains filtered or unexported fields }
func (*Component_Dropdown_FromSpec) Descriptor
deprecated
func (*Component_Dropdown_FromSpec) Descriptor() ([]byte, []int)
Deprecated: Use Component_Dropdown_FromSpec.ProtoReflect.Descriptor instead.
func (*Component_Dropdown_FromSpec) GetMapper ¶
func (x *Component_Dropdown_FromSpec) GetMapper() *Component_Dropdown_Option
func (*Component_Dropdown_FromSpec) GetSelector ¶
func (x *Component_Dropdown_FromSpec) GetSelector() *EachSelector
func (*Component_Dropdown_FromSpec) ProtoMessage ¶
func (*Component_Dropdown_FromSpec) ProtoMessage()
func (*Component_Dropdown_FromSpec) ProtoReflect ¶
func (x *Component_Dropdown_FromSpec) ProtoReflect() protoreflect.Message
func (*Component_Dropdown_FromSpec) Reset ¶
func (x *Component_Dropdown_FromSpec) Reset()
func (*Component_Dropdown_FromSpec) String ¶
func (x *Component_Dropdown_FromSpec) String() string
type Component_Dropdown_Option ¶
type Component_Dropdown_Option struct { // A hardcoded value for the option. Accepts a variable reference. Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // If true, the option is not shown. Hidden *bool `protobuf:"varint,2,opt,name=hidden,proto3,oneof" json:"hidden,omitempty"` // If true, the option is not selectable. Disabled *bool `protobuf:"varint,3,opt,name=disabled,proto3,oneof" json:"disabled,omitempty"` // If provided, the option shows the given text. If not, the value // field is shown. Text *string `protobuf:"bytes,4,opt,name=text,proto3,oneof" json:"text,omitempty"` // contains filtered or unexported fields }
func (*Component_Dropdown_Option) Descriptor
deprecated
func (*Component_Dropdown_Option) Descriptor() ([]byte, []int)
Deprecated: Use Component_Dropdown_Option.ProtoReflect.Descriptor instead.
func (*Component_Dropdown_Option) GetDisabled ¶
func (x *Component_Dropdown_Option) GetDisabled() bool
func (*Component_Dropdown_Option) GetHidden ¶
func (x *Component_Dropdown_Option) GetHidden() bool
func (*Component_Dropdown_Option) GetText ¶
func (x *Component_Dropdown_Option) GetText() string
func (*Component_Dropdown_Option) GetValue ¶
func (x *Component_Dropdown_Option) GetValue() string
func (*Component_Dropdown_Option) ProtoMessage ¶
func (*Component_Dropdown_Option) ProtoMessage()
func (*Component_Dropdown_Option) ProtoReflect ¶
func (x *Component_Dropdown_Option) ProtoReflect() protoreflect.Message
func (*Component_Dropdown_Option) Reset ¶
func (x *Component_Dropdown_Option) Reset()
func (*Component_Dropdown_Option) String ¶
func (x *Component_Dropdown_Option) String() string
type Component_Dropdown_OptionMerge ¶
type Component_Dropdown_OptionMerge struct { // If truthy, the Option field is applied to every Dropdown option. If *string `protobuf:"bytes,1,opt,name=if,proto3,oneof" json:"if,omitempty"` // The fields to merge into the Dropdown options. Option *Component_Dropdown_Option `protobuf:"bytes,2,opt,name=option,proto3" json:"option,omitempty"` // contains filtered or unexported fields }
func (*Component_Dropdown_OptionMerge) Descriptor
deprecated
func (*Component_Dropdown_OptionMerge) Descriptor() ([]byte, []int)
Deprecated: Use Component_Dropdown_OptionMerge.ProtoReflect.Descriptor instead.
func (*Component_Dropdown_OptionMerge) GetIf ¶
func (x *Component_Dropdown_OptionMerge) GetIf() string
func (*Component_Dropdown_OptionMerge) GetOption ¶
func (x *Component_Dropdown_OptionMerge) GetOption() *Component_Dropdown_Option
func (*Component_Dropdown_OptionMerge) ProtoMessage ¶
func (*Component_Dropdown_OptionMerge) ProtoMessage()
func (*Component_Dropdown_OptionMerge) ProtoReflect ¶
func (x *Component_Dropdown_OptionMerge) ProtoReflect() protoreflect.Message
func (*Component_Dropdown_OptionMerge) Reset ¶
func (x *Component_Dropdown_OptionMerge) Reset()
func (*Component_Dropdown_OptionMerge) String ¶
func (x *Component_Dropdown_OptionMerge) String() string
type Component_Input ¶
type Component_Input struct { // Defaults to TEXT. Type Component_Input_Type `protobuf:"varint,1,opt,name=type,proto3,enum=tak.sh.api.script.v1beta1.Component_Input_Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Component_Input) Descriptor
deprecated
func (*Component_Input) Descriptor() ([]byte, []int)
Deprecated: Use Component_Input.ProtoReflect.Descriptor instead.
func (*Component_Input) GetType ¶
func (x *Component_Input) GetType() Component_Input_Type
func (*Component_Input) ProtoMessage ¶
func (*Component_Input) ProtoMessage()
func (*Component_Input) ProtoReflect ¶
func (x *Component_Input) ProtoReflect() protoreflect.Message
func (*Component_Input) Reset ¶
func (x *Component_Input) Reset()
func (*Component_Input) String ¶
func (x *Component_Input) String() string
type Component_Input_Type ¶
type Component_Input_Type int32
const ( Component_Input_TEXT Component_Input_Type = 0 Component_Input_PASSWORD Component_Input_Type = 1 )
func (Component_Input_Type) Descriptor ¶
func (Component_Input_Type) Descriptor() protoreflect.EnumDescriptor
func (Component_Input_Type) Enum ¶
func (x Component_Input_Type) Enum() *Component_Input_Type
func (Component_Input_Type) EnumDescriptor
deprecated
func (Component_Input_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Component_Input_Type.Descriptor instead.
func (Component_Input_Type) Number ¶
func (x Component_Input_Type) Number() protoreflect.EnumNumber
func (Component_Input_Type) String ¶
func (x Component_Input_Type) String() string
func (Component_Input_Type) Type ¶
func (Component_Input_Type) Type() protoreflect.EnumType
type ConditionalSignal ¶
type ConditionalSignal struct { // If a truthy value is set, the Signal is sent. If string `protobuf:"bytes,1,opt,name=if,proto3" json:"if,omitempty"` // The signal that will be sent if the condition is met. Signal ConditionalSignal_Signal `protobuf:"varint,2,opt,name=signal,proto3,enum=tak.sh.api.script.v1beta1.ConditionalSignal_Signal" json:"signal,omitempty"` // An optional message providing more context as to why the signal occurred. Message *string `protobuf:"bytes,3,opt,name=message,proto3,oneof" json:"message,omitempty"` // contains filtered or unexported fields }
Signals that something has happened based on if a condition returns a truthy value.
func (*ConditionalSignal) Descriptor
deprecated
func (*ConditionalSignal) Descriptor() ([]byte, []int)
Deprecated: Use ConditionalSignal.ProtoReflect.Descriptor instead.
func (*ConditionalSignal) GetIf ¶
func (x *ConditionalSignal) GetIf() string
func (*ConditionalSignal) GetMessage ¶
func (x *ConditionalSignal) GetMessage() string
func (*ConditionalSignal) GetSignal ¶
func (x *ConditionalSignal) GetSignal() ConditionalSignal_Signal
func (*ConditionalSignal) ProtoMessage ¶
func (*ConditionalSignal) ProtoMessage()
func (*ConditionalSignal) ProtoReflect ¶
func (x *ConditionalSignal) ProtoReflect() protoreflect.Message
func (*ConditionalSignal) Reset ¶
func (x *ConditionalSignal) Reset()
func (*ConditionalSignal) String ¶
func (x *ConditionalSignal) String() string
type ConditionalSignal_Signal ¶
type ConditionalSignal_Signal int32
const ( ConditionalSignal_unknown ConditionalSignal_Signal = 0 // A terminating signal that the operation is complete. If this signal is sent for // a step, the Step will not run and effectively skips it. If it's sent for the // Script, then the Script exits and is considered complete. ConditionalSignal_success ConditionalSignal_Signal = 1 // A terminating signal that an error has occurred. ConditionalSignal_error ConditionalSignal_Signal = 2 )
func (ConditionalSignal_Signal) Descriptor ¶
func (ConditionalSignal_Signal) Descriptor() protoreflect.EnumDescriptor
func (ConditionalSignal_Signal) Enum ¶
func (x ConditionalSignal_Signal) Enum() *ConditionalSignal_Signal
func (ConditionalSignal_Signal) EnumDescriptor
deprecated
func (ConditionalSignal_Signal) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConditionalSignal_Signal.Descriptor instead.
func (ConditionalSignal_Signal) Number ¶
func (x ConditionalSignal_Signal) Number() protoreflect.EnumNumber
func (ConditionalSignal_Signal) String ¶
func (x ConditionalSignal_Signal) String() string
func (ConditionalSignal_Signal) Type ¶
func (ConditionalSignal_Signal) Type() protoreflect.EnumType
type EachSelector ¶
type EachSelector struct { // A selector string that matches the list of elements. ListSelector string `protobuf:"bytes,1,opt,name=list_selector,proto3" json:"list_selector,omitempty"` // A selector string that is called on every element returned from Selector that aims to // extract the desired value from the element. Iterator string `protobuf:"bytes,2,opt,name=iterator,proto3" json:"iterator,omitempty"` // contains filtered or unexported fields }
Selects specific fields for each element of a matching query. This functions like the each function in jQuery: https://api.jquery.com/jquery.each/.
func (*EachSelector) Descriptor
deprecated
func (*EachSelector) Descriptor() ([]byte, []int)
Deprecated: Use EachSelector.ProtoReflect.Descriptor instead.
func (*EachSelector) GetIterator ¶
func (x *EachSelector) GetIterator() string
func (*EachSelector) GetListSelector ¶
func (x *EachSelector) GetListSelector() string
func (*EachSelector) ProtoMessage ¶
func (*EachSelector) ProtoMessage()
func (*EachSelector) ProtoReflect ¶
func (x *EachSelector) ProtoReflect() protoreflect.Message
func (*EachSelector) Reset ¶
func (x *EachSelector) Reset()
func (*EachSelector) String ¶
func (x *EachSelector) String() string
type HTMLNodeTemplateData ¶
type HTMLNodeTemplateData struct { // The stringified child of the element. Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // The attributes on the HTML node. Attrs map[string]*HTMLNodeTemplateData_Attribute `` /* 151-byte string literal not displayed */ // The element type e.g. span Element string `protobuf:"bytes,3,opt,name=element,proto3" json:"element,omitempty"` // contains filtered or unexported fields }
func (*HTMLNodeTemplateData) Descriptor
deprecated
func (*HTMLNodeTemplateData) Descriptor() ([]byte, []int)
Deprecated: Use HTMLNodeTemplateData.ProtoReflect.Descriptor instead.
func (*HTMLNodeTemplateData) GetAttrs ¶
func (x *HTMLNodeTemplateData) GetAttrs() map[string]*HTMLNodeTemplateData_Attribute
func (*HTMLNodeTemplateData) GetData ¶
func (x *HTMLNodeTemplateData) GetData() string
func (*HTMLNodeTemplateData) GetElement ¶
func (x *HTMLNodeTemplateData) GetElement() string
func (*HTMLNodeTemplateData) ProtoMessage ¶
func (*HTMLNodeTemplateData) ProtoMessage()
func (*HTMLNodeTemplateData) ProtoReflect ¶
func (x *HTMLNodeTemplateData) ProtoReflect() protoreflect.Message
func (*HTMLNodeTemplateData) Reset ¶
func (x *HTMLNodeTemplateData) Reset()
func (*HTMLNodeTemplateData) String ¶
func (x *HTMLNodeTemplateData) String() string
type HTMLNodeTemplateData_Attribute ¶
type HTMLNodeTemplateData_Attribute struct { Val string `protobuf:"bytes,1,opt,name=val,proto3" json:"val,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*HTMLNodeTemplateData_Attribute) Descriptor
deprecated
func (*HTMLNodeTemplateData_Attribute) Descriptor() ([]byte, []int)
Deprecated: Use HTMLNodeTemplateData_Attribute.ProtoReflect.Descriptor instead.
func (*HTMLNodeTemplateData_Attribute) GetNamespace ¶
func (x *HTMLNodeTemplateData_Attribute) GetNamespace() string
func (*HTMLNodeTemplateData_Attribute) GetVal ¶
func (x *HTMLNodeTemplateData_Attribute) GetVal() string
func (*HTMLNodeTemplateData_Attribute) ProtoMessage ¶
func (*HTMLNodeTemplateData_Attribute) ProtoMessage()
func (*HTMLNodeTemplateData_Attribute) ProtoReflect ¶
func (x *HTMLNodeTemplateData_Attribute) ProtoReflect() protoreflect.Message
func (*HTMLNodeTemplateData_Attribute) Reset ¶
func (x *HTMLNodeTemplateData_Attribute) Reset()
func (*HTMLNodeTemplateData_Attribute) String ¶
func (x *HTMLNodeTemplateData_Attribute) String() string
type KeyVal ¶
type KeyVal struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*KeyVal) Descriptor
deprecated
func (*KeyVal) ProtoMessage ¶
func (*KeyVal) ProtoMessage()
func (*KeyVal) ProtoReflect ¶
func (x *KeyVal) ProtoReflect() protoreflect.Message
type Prompt ¶
type Prompt struct { // A user-friendly description for what you're asking. This is displayed above the component. Description *string `protobuf:"bytes,1,opt,name=description,proto3,oneof" json:"description,omitempty"` // A user-friendly and short title for the prompt. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // The component to display to the user. Component *Component `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` // contains filtered or unexported fields }
func (*Prompt) Descriptor
deprecated
func (*Prompt) GetComponent ¶
func (*Prompt) GetDescription ¶
func (*Prompt) ProtoMessage ¶
func (*Prompt) ProtoMessage()
func (*Prompt) ProtoReflect ¶
func (x *Prompt) ProtoReflect() protoreflect.Message
type Script ¶
type Script struct { Steps []*Step `protobuf:"bytes,1,rep,name=steps,proto3" json:"steps,omitempty"` // The signal to mark that the Script has completed. At least one success signal // is required. Signals []*ConditionalSignal `protobuf:"bytes,2,rep,name=signals,proto3" json:"signals,omitempty"` // contains filtered or unexported fields }
A way to programmatically control what the headless browser should do.
func (*Script) Descriptor
deprecated
func (*Script) GetSignals ¶
func (x *Script) GetSignals() []*ConditionalSignal
func (*Script) ProtoMessage ¶
func (*Script) ProtoMessage()
func (*Script) ProtoReflect ¶
func (x *Script) ProtoReflect() protoreflect.Message
type ScriptTemplateData ¶
type ScriptTemplateData struct { // A step ID mapped to the resulting value. Step map[string]string `` /* 149-byte string literal not displayed */ Browser *BrowserTemplateData `protobuf:"bytes,2,opt,name=browser,proto3" json:"browser,omitempty"` // If a particular element from the page is being targeted, this will be available // as a template variable. Element *HTMLNodeTemplateData `protobuf:"bytes,3,opt,name=element,proto3" json:"element,omitempty"` // If within the context of a Dropdown component, e.g. when evaluating the if condition, // this field will be made available. Option *Component_Dropdown_Option `protobuf:"bytes,4,opt,name=option,proto3" json:"option,omitempty"` // If within the context of a for_each statement, this field will be populated with // the current element within the collection that is being iterated upon. Each map[string]string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ScriptTemplateData) Descriptor
deprecated
func (*ScriptTemplateData) Descriptor() ([]byte, []int)
Deprecated: Use ScriptTemplateData.ProtoReflect.Descriptor instead.
func (*ScriptTemplateData) GetBrowser ¶
func (x *ScriptTemplateData) GetBrowser() *BrowserTemplateData
func (*ScriptTemplateData) GetEach ¶
func (x *ScriptTemplateData) GetEach() map[string]string
func (*ScriptTemplateData) GetElement ¶
func (x *ScriptTemplateData) GetElement() *HTMLNodeTemplateData
func (*ScriptTemplateData) GetOption ¶
func (x *ScriptTemplateData) GetOption() *Component_Dropdown_Option
func (*ScriptTemplateData) GetStep ¶
func (x *ScriptTemplateData) GetStep() map[string]string
func (*ScriptTemplateData) ProtoMessage ¶
func (*ScriptTemplateData) ProtoMessage()
func (*ScriptTemplateData) ProtoReflect ¶
func (x *ScriptTemplateData) ProtoReflect() protoreflect.Message
func (*ScriptTemplateData) Reset ¶
func (x *ScriptTemplateData) Reset()
func (*ScriptTemplateData) String ¶
func (x *ScriptTemplateData) String() string
type Step ¶
type Step struct { // A top-level referential key for the Step. If not provided, the result is not // stored nor is it accessible by following Steps. If it is provided, any following // Step can refer to the value returned by the Action. Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` // Provide the action that should be taken for this Step. Action *Action `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` // Optional list of signals that can be triggered based on what is being shown // on the page or the overall state of the step. Signals []*ConditionalSignal `protobuf:"bytes,3,rep,name=signals,proto3" json:"signals,omitempty"` // contains filtered or unexported fields }
A single line within a Script.
func (*Step) Descriptor
deprecated
func (*Step) GetSignals ¶
func (x *Step) GetSignals() []*ConditionalSignal
func (*Step) ProtoMessage ¶
func (*Step) ProtoMessage()
func (*Step) ProtoReflect ¶
func (x *Step) ProtoReflect() protoreflect.Message
type Value ¶
type Value struct { Str *string `protobuf:"bytes,1,opt,name=str,proto3,oneof" json:"str,omitempty"` StrList []string `protobuf:"bytes,2,rep,name=str_list,proto3" json:"str_list,omitempty"` // contains filtered or unexported fields }
A dynamic primitive value. All fields are mutually exclusive.
func (*Value) Descriptor
deprecated
func (*Value) GetStrList ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) ProtoReflect ¶
func (x *Value) ProtoReflect() protoreflect.Message