core

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoValidEnum = errors.New("not a valid enum")

Functions

This section is empty.

Types

type AuthContext

type AuthContext struct {
	AccessToken string              `json:"accessToken,omitempty"`
	Token       *oauth2.Token       `json:"token,omitempty"`
	TokenSource *oauth2.TokenSource `json:"tokenSource,omitempty"`
	TokenType   string              `json:"tokenType,omitempty"`
	Username    string              `json:"username,omitempty"`
	Password    string              `json:"password,omitempty"`
	Secret      string              `json:"secret,omitempty"`
	Key         string              `json:"key,omitempty"`
	Extra       map[string]string   `json:"extra,omitempty"`
}

type AuthEndpoint

type AuthEndpoint struct {
	AuthURL          string `json:"auth_url,omitempty"`
	TokenURL         string `json:"token_url,omitempty"`
	RevocationURL    string `json:"revocation_url,omitempty"`
	IntrospectionURL string `json:"introspection_url,omitempty"`
	JWKSetURL        string `json:"jwk_set_url,omitempty"`
}

type AuthOperation

type AuthOperation struct {
	Type   authenums.AuthType     `json:"type"`
	Config map[string]interface{} `json:"config"`
}

AuthOperation is an auth operation struct.

type AuthState

type AuthState struct {
	ClientID     *string           `json:"clientId,omitempty"`
	Code         *string           `json:"code,omitempty"`
	ClientSecret *string           `json:"clientSecret,omitempty"`
	AuthURL      *string           `json:"authUrl,omitempty"`
	TokenURL     *string           `json:"tokenUrl,omitempty"`
	Username     *string           `json:"username,omitempty"`
	Password     *string           `json:"password,omitempty"`
	Secret       *string           `json:"secret,omitempty"`
	Key          *string           `json:"key,omitempty"`
	RedirectURL  *string           `json:"redirectURL,omitempty"`
	GrantType    *string           `json:"grantType,omitempty"`
	AccessToken  *string           `json:"accessToken,omitempty"`
	RefreshToken *string           `json:"refreshToken,omitempty"`
	Scopes       []string          `json:"scopes,omitempty"`
	TokenType    *string           `json:"tokenType,omitempty"`
	Endpoint     *oauth2.Endpoint  `json:"endpoint,omitempty"`
	Expiry       *time.Time        `json:"expiry,omitempty"`
	Extra        map[string]string `json:"extra,omitempty"`
}

type AuthStatus

type AuthStatus string
const (
	Disabled AuthStatus = "disabled"
	Active   AuthStatus = "active"
	Failed   AuthStatus = "failed"
)

func AuthStatusFromString

func AuthStatusFromString(raw string) (AuthStatus, bool)

AuthStatusFromString determines the enum value with an exact case match.

func AuthStatusFromStringIgnoreCase

func AuthStatusFromStringIgnoreCase(raw string) (AuthStatus, bool)

AuthStatusFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (AuthStatus) IsValid

func (_j AuthStatus) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (AuthStatus) MarshalBinary

func (_j AuthStatus) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for AuthStatus.

func (AuthStatus) MarshalGQL

func (_j AuthStatus) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for AuthStatus.

func (AuthStatus) MarshalJSON

func (_j AuthStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for AuthStatus.

func (AuthStatus) MarshalText

func (_j AuthStatus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for AuthStatus.

func (AuthStatus) MarshalYAML

func (_j AuthStatus) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for AuthStatus.

func (AuthStatus) SQLTypeName

func (AuthStatus) SQLTypeName() string

func (*AuthStatus) Scan

func (_j *AuthStatus) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for AuthStatus.

func (AuthStatus) String

func (_j AuthStatus) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern AuthStatus(%d) instead.

func (*AuthStatus) UnmarshalBinary

func (_j *AuthStatus) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for AuthStatus.

func (*AuthStatus) UnmarshalGQL

func (_j *AuthStatus) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for AuthStatus.

func (*AuthStatus) UnmarshalJSON

func (_j *AuthStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for AuthStatus.

func (*AuthStatus) UnmarshalText

func (_j *AuthStatus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for AuthStatus.

func (*AuthStatus) UnmarshalYAML

func (_j *AuthStatus) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for AuthStatus.

func (AuthStatus) Validate

func (_j AuthStatus) Validate() error

Validate whether the value is within the range of enum values.

func (AuthStatus) Values

func (AuthStatus) Values() []string

Values returns a slice of all String values of the enum.

type AuthStrategy

type AuthStrategy struct {
	google.Credentials
	authutil.AuthorizationType
}

type AuthType

type AuthType string
const (
	None   AuthType = "none"
	Basic  AuthType = "basic"
	Secret AuthType = "secret"
	APIKey AuthType = "api_key"
	OAuth2 AuthType = "oauth2"
	Custom AuthType = "custom"
)

func AuthTypeFromString

func AuthTypeFromString(raw string) (AuthType, bool)

AuthTypeFromString determines the enum value with an exact case match.

func AuthTypeFromStringIgnoreCase

func AuthTypeFromStringIgnoreCase(raw string) (AuthType, bool)

AuthTypeFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (AuthType) IsValid

func (_j AuthType) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (AuthType) MarshalBinary

func (_j AuthType) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for AuthType.

func (AuthType) MarshalGQL

func (_j AuthType) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for AuthType.

func (AuthType) MarshalJSON

func (_j AuthType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for AuthType.

func (AuthType) MarshalText

func (_j AuthType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for AuthType.

func (AuthType) MarshalYAML

func (_j AuthType) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for AuthType.

func (AuthType) SQLTypeName

func (AuthType) SQLTypeName() string

func (*AuthType) Scan

func (_j *AuthType) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for AuthType.

func (AuthType) String

func (_j AuthType) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern AuthType(%d) instead.

func (*AuthType) UnmarshalBinary

func (_j *AuthType) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for AuthType.

func (*AuthType) UnmarshalGQL

func (_j *AuthType) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for AuthType.

func (*AuthType) UnmarshalJSON

func (_j *AuthType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for AuthType.

func (*AuthType) UnmarshalText

func (_j *AuthType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for AuthType.

func (*AuthType) UnmarshalYAML

func (_j *AuthType) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for AuthType.

func (AuthType) Validate

func (_j AuthType) Validate() error

Validate whether the value is within the range of enum values.

func (AuthType) Values

func (AuthType) Values() []string

Values returns a slice of all String values of the enum.

type AutoFormFieldLogic

type AutoFormFieldLogic struct {
	Validations map[string]AutoFormFieldLogicValidationDefinition `json:"validations,omitempty"`
}

type AutoFormFieldLogicRuleData

type AutoFormFieldLogicRuleData struct {
	Var         *string `json:"var,omitempty"`
	MissingSome *string `json:"missing_some,omitempty"`
	Missing     *string `json:"missing,omitempty"`
}

type AutoFormFieldLogicValidationDefinition

type AutoFormFieldLogicValidationDefinition struct {
	ErrorMessage string                                              `json:"errorMessage,omitempty"`
	Rule         map[FieldLogicOperators]*AutoFormFieldLogicRuleData `json:"rule,omitempty"`
}

type AutoFormFieldPresentation

type AutoFormFieldPresentation struct {
	InputType   AutoFormFieldType             `json:"inputType,omitempty"`
	Required    bool                          `json:"required"`
	Disabled    bool                          `json:"disabled"`
	Options     []*AutoFormFieldSelectOptions `json:"options,omitempty"`
	MaskSecret  *int                          `json:"maskSecret,omitempty"`
	Statement   *AutoFormFieldPresentation    `json:"statement,omitempty"`
	Severity    *string                       `json:"severity,omitempty"`
	Placeholder *string                       `json:"placeholder,omitempty"`
	ReadOnly    bool                          `json:"readOnly"`
	MinDate     *time.Time                    `json:"minDate,omitempty"`
	MaxDate     *time.Time                    `json:"maxDate,omitempty"`

	Extras map[string]interface{} `json:"extras,omitempty"`
}

type AutoFormFieldPresentationError

type AutoFormFieldPresentationError struct {
	Required *string `json:"required,omitempty"`
	Minimum  *string `json:"minimum,omitempty"`
	Maximum  *string `json:"maximum,omitempty"`
}

type AutoFormFieldSelectOptions

type AutoFormFieldSelectOptions struct {
	Value    string `json:"value"`
	Label    string `json:"label"`
	Metadata any    `json:"metadata,omitempty"`
}

AutoFormFieldSelectOptions represents an enumerated type with a value and label.

type AutoFormFieldType

type AutoFormFieldType string
const (
	ShortTextType      AutoFormFieldType = "short_text"
	LongTextType       AutoFormFieldType = "long_text"
	MarkdownType       AutoFormFieldType = "markdown"
	DropdownType       AutoFormFieldType = "dropdown"
	MultiSelectType    AutoFormFieldType = "multi_select"
	StaticDropdownType AutoFormFieldType = "static_dropdown"
	NumberType         AutoFormFieldType = "number"
	CheckboxType       AutoFormFieldType = "checkbox"
	Oauth2Type         AutoFormFieldType = "oauth"
	SecretAuthType     AutoFormFieldType = "secret"
	CustomAuthType     AutoFormFieldType = "custom_auth"
	ArrayType          AutoFormFieldType = "array"
	GroupArrayType     AutoFormFieldType = "group-array"
	ObjectType         AutoFormFieldType = "fieldset"
	BasicAuthType      AutoFormFieldType = "basic_auth"
	JSONType           AutoFormFieldType = "json"
	DateTimeType       AutoFormFieldType = "datetime"
	FileType           AutoFormFieldType = "file"
	FileStringType     AutoFormFieldType = "file_string"
	BooleanType        AutoFormFieldType = "boolean"
	DynamicType        AutoFormFieldType = "dynamic"
	CodeEditorType     AutoFormFieldType = "code"
	RichTextType       AutoFormFieldType = "richtext"
	BranchType         AutoFormFieldType = "branch"
	WrapperType        AutoFormFieldType = "wrapper"
)

func FieldTypeFromString

func FieldTypeFromString(raw string) (AutoFormFieldType, bool)

FieldTypeFromString determines the enum value with an exact case match.

func FieldTypeFromStringIgnoreCase

func FieldTypeFromStringIgnoreCase(raw string) (AutoFormFieldType, bool)

FieldTypeFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (AutoFormFieldType) IsValid

func (_j AutoFormFieldType) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (AutoFormFieldType) MarshalBinary

func (_j AutoFormFieldType) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for AutoFormFieldType.

func (AutoFormFieldType) MarshalGQL

func (_j AutoFormFieldType) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for AutoFormFieldType.

func (AutoFormFieldType) MarshalJSON

func (_j AutoFormFieldType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for AutoFormFieldType.

func (AutoFormFieldType) MarshalText

func (_j AutoFormFieldType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for AutoFormFieldType.

func (AutoFormFieldType) MarshalYAML

func (_j AutoFormFieldType) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for AutoFormFieldType.

func (AutoFormFieldType) SQLTypeName

func (AutoFormFieldType) SQLTypeName() string

func (*AutoFormFieldType) Scan

func (_j *AutoFormFieldType) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for AutoFormFieldType.

func (AutoFormFieldType) String

func (_j AutoFormFieldType) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern AutoFormFieldType(%d) instead.

func (*AutoFormFieldType) UnmarshalBinary

func (_j *AutoFormFieldType) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for AutoFormFieldType.

func (*AutoFormFieldType) UnmarshalGQL

func (_j *AutoFormFieldType) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for AutoFormFieldType.

func (*AutoFormFieldType) UnmarshalJSON

func (_j *AutoFormFieldType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for AutoFormFieldType.

func (*AutoFormFieldType) UnmarshalText

func (_j *AutoFormFieldType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for AutoFormFieldType.

func (*AutoFormFieldType) UnmarshalYAML

func (_j *AutoFormFieldType) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for AutoFormFieldType.

func (AutoFormFieldType) Validate

func (_j AutoFormFieldType) Validate() error

Validate whether the value is within the range of enum values.

func (AutoFormFieldType) Values

func (AutoFormFieldType) Values() []string

Values returns a slice of all String values of the enum.

type AutoFormSchema

type AutoFormSchema struct {
	Schema               string                     `json:"$schema,omitempty"`
	ID                   string                     `json:"$id,omitempty"`
	Comment              *string                    `json:"$comment,omitempty"`
	Title                string                     `json:"title,omitempty"`
	Type                 AutoFormType               `json:"type,omitempty"`
	Properties           map[string]*AutoFormSchema `json:"properties,omitempty"`
	Items                *AutoFormSchema            `json:"items,omitempty"`
	AdditionalItems      *AutoFormSchema            `json:"additionalItems,omitempty"`
	Required             []string                   `json:"required,omitempty"`
	IsRequired           bool                       `json:"isRequired,omitempty"`
	Default              interface{}                `json:"default,omitempty"`
	Format               string                     `json:"format,omitempty"`
	Definitions          map[string]*AutoFormSchema `json:"definitions,omitempty"`
	Description          string                     `json:"description,omitempty"`
	AdditionalProperties interface{}                `json:"additionalProperties,omitempty"`
	MinProperties        *int                       `json:"minProperties,omitempty"`
	MaxProperties        *int                       `json:"maxProperties,omitempty"`
	PatternProperties    map[string]*AutoFormSchema `json:"patternProperties,omitempty"`
	Dependencies         map[string]interface{}     `json:"dependencies,omitempty"`
	Enum                 []interface{}              `json:"enum,omitempty"`
	AllOf                []*AutoFormSchema          `json:"allOf,omitempty"`
	AnyOf                []*AutoFormSchema          `json:"anyOf,omitempty"`
	OneOf                []*AutoFormSchema          `json:"oneOf,omitempty"`
	Not                  *AutoFormSchema            `json:"not,omitempty"`
	Minimum              interface{}                `json:"minimum,omitempty"`
	Maximum              interface{}                `json:"maximum,omitempty"`
	ExclusiveMinimum     interface{}                `json:"exclusiveMinimum,omitempty"`
	ExclusiveMaximum     interface{}                `json:"exclusiveMaximum,omitempty"`
	MinLength            *int                       `json:"minLength,omitempty"`
	MaxLength            *int                       `json:"maxLength,omitempty"`
	Pattern              string                     `json:"pattern,omitempty"`
	MinItems             *int                       `json:"minItems,omitempty"`
	MaxItems             *int                       `json:"maxItems,omitempty"`
	UniqueItems          bool                       `json:"uniqueItems,omitempty"`
	Contains             *AutoFormSchema            `json:"contains,omitempty"`
	MinContains          *int                       `json:"minContains,omitempty"`
	MaxContains          *int                       `json:"maxContains,omitempty"`
	Const                interface{}                `json:"const,omitempty"`
	Disabled             bool                       `json:"disabled"`

	Presentation *AutoFormFieldPresentation      `json:"x-jsf-presentation,omitempty"`
	Validations  []string                        `json:"x-jsf-logic-validations,omitempty"`
	Logic        *AutoFormFieldLogic             `json:"x-jsf-logic,omitempty"`
	ErrorMessage *AutoFormFieldPresentationError `json:"x-jsf-errorMessage,omitempty"`
	Order        []string                        `json:"x-jsf-order,omitempty"`

	If   *AutoFormSchema `json:"if,omitempty"`
	Else *AutoFormSchema `json:"else,omitempty"`
	Then *AutoFormSchema `json:"then,omitempty"`

	Scope    []string `json:"scope,omitempty"`
	TokenURL *string  `json:"tokenUrl,omitempty"`
	AuthURL  *string  `json:"authUrl,omitempty"`

	Username *string `json:"username,omitempty"`
	Password *string `json:"password,omitempty"`
	Secret   *string `json:"secret,omitempty"`

	DependsOn []string `json:"dependsOn,omitempty"`
	IsDynamic bool     `json:"isDynamic,omitempty"`
	// contains filtered or unexported fields
}

func (*AutoFormSchema) GetDynamicOptionsFn

func (af *AutoFormSchema) GetDynamicOptionsFn(ctx *DynamicOptionsContext) (interface{}, error)

func (*AutoFormSchema) SetDynamicOptionsFn

func (af *AutoFormSchema) SetDynamicOptionsFn(dynamicOptionsFn *DynamicOptionsFn)

type AutoFormType

type AutoFormType string
const (
	Undefined AutoFormType = "undefined"
	String    AutoFormType = "string"
	Number    AutoFormType = "number"
	Object    AutoFormType = "object"
	Array     AutoFormType = "array"
	Boolean   AutoFormType = "boolean"
	Nullable  AutoFormType = "null"
	Integer   AutoFormType = "integer"
)

func (AutoFormType) String

func (s AutoFormType) String() string

func (*AutoFormType) UnmarshalJSON

func (s *AutoFormType) UnmarshalJSON(data []byte) error

UnmarshalJSON function to convert json into enum value

type BasicAuthSrategy

type BasicAuthSrategy struct{}

type CodeEditorLanguage

type CodeEditorLanguage string
const (
	Javascript CodeEditorLanguage = "javascript"
	GoLang     CodeEditorLanguage = "go"
	Typescript CodeEditorLanguage = "typescript"
	Lua        CodeEditorLanguage = "lua"
)

func CodeEditorLanguageFromString

func CodeEditorLanguageFromString(raw string) (CodeEditorLanguage, bool)

CodeEditorLanguageFromString determines the enum value with an exact case match.

func CodeEditorLanguageFromStringIgnoreCase

func CodeEditorLanguageFromStringIgnoreCase(raw string) (CodeEditorLanguage, bool)

CodeEditorLanguageFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (CodeEditorLanguage) IsValid

func (_j CodeEditorLanguage) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (CodeEditorLanguage) MarshalBinary

func (_j CodeEditorLanguage) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for CodeEditorLanguage.

func (CodeEditorLanguage) MarshalGQL

func (_j CodeEditorLanguage) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for CodeEditorLanguage.

func (CodeEditorLanguage) MarshalJSON

func (_j CodeEditorLanguage) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for CodeEditorLanguage.

func (CodeEditorLanguage) MarshalText

func (_j CodeEditorLanguage) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for CodeEditorLanguage.

func (CodeEditorLanguage) MarshalYAML

func (_j CodeEditorLanguage) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for CodeEditorLanguage.

func (CodeEditorLanguage) SQLTypeName

func (CodeEditorLanguage) SQLTypeName() string

func (*CodeEditorLanguage) Scan

func (_j *CodeEditorLanguage) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for CodeEditorLanguage.

func (CodeEditorLanguage) String

func (_j CodeEditorLanguage) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern CodeEditorLanguage(%d) instead.

func (*CodeEditorLanguage) UnmarshalBinary

func (_j *CodeEditorLanguage) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for CodeEditorLanguage.

func (*CodeEditorLanguage) UnmarshalGQL

func (_j *CodeEditorLanguage) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for CodeEditorLanguage.

func (*CodeEditorLanguage) UnmarshalJSON

func (_j *CodeEditorLanguage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for CodeEditorLanguage.

func (*CodeEditorLanguage) UnmarshalText

func (_j *CodeEditorLanguage) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for CodeEditorLanguage.

func (*CodeEditorLanguage) UnmarshalYAML

func (_j *CodeEditorLanguage) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for CodeEditorLanguage.

func (CodeEditorLanguage) Validate

func (_j CodeEditorLanguage) Validate() error

Validate whether the value is within the range of enum values.

func (CodeEditorLanguage) Values

func (CodeEditorLanguage) Values() []string

Values returns a slice of all String values of the enum.

type ConnectorAuthMetadata

type ConnectorAuthMetadata struct {
	ClientID     *string           `json:"clientId,omitempty"`
	ClientSecret *string           `json:"clientSecret,omitempty"`
	AuthURL      *string           `json:"authUrl,omitempty"`
	TokenURL     *string           `json:"tokenUrl,omitempty"`
	Username     *string           `json:"username,omitempty"`
	Password     *string           `json:"password,omitempty"`
	Secret       *string           `json:"secret,omitempty"`
	RedirectURL  *string           `json:"redirectUrl,omitempty"`
	Key          *string           `json:"key,omitempty"`
	Extra        map[string]string `json:"extra,omitempty"`
}

type ConnectorAuthentication

type ConnectorAuthentication struct {
	AuthType string `json:"authType"`
}

ConnectorAuthentication is a Task operation type.

type ConnectorPlatform added in v0.2.2

type ConnectorPlatform string
const (
	ConnectorPlatformNative ConnectorPlatform = "native"
	ConnectorPlatformPlugin ConnectorPlatform = "plugin"
	ConnectorPlatformWasm   ConnectorPlatform = "wasm"
)

func ConnectorPlatformFromString added in v0.2.2

func ConnectorPlatformFromString(raw string) (ConnectorPlatform, bool)

ConnectorPlatformFromString determines the enum value with an exact case match.

func ConnectorPlatformFromStringIgnoreCase added in v0.2.2

func ConnectorPlatformFromStringIgnoreCase(raw string) (ConnectorPlatform, bool)

ConnectorPlatformFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (ConnectorPlatform) IsValid added in v0.2.2

func (_j ConnectorPlatform) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (ConnectorPlatform) MarshalBinary added in v0.2.2

func (_j ConnectorPlatform) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for ConnectorPlatform.

func (ConnectorPlatform) MarshalGQL added in v0.2.2

func (_j ConnectorPlatform) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for ConnectorPlatform.

func (ConnectorPlatform) MarshalJSON added in v0.2.2

func (_j ConnectorPlatform) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for ConnectorPlatform.

func (ConnectorPlatform) MarshalText added in v0.2.2

func (_j ConnectorPlatform) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ConnectorPlatform.

func (ConnectorPlatform) MarshalYAML added in v0.2.2

func (_j ConnectorPlatform) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for ConnectorPlatform.

func (ConnectorPlatform) SQLTypeName added in v0.2.2

func (ConnectorPlatform) SQLTypeName() string

func (*ConnectorPlatform) Scan added in v0.2.2

func (_j *ConnectorPlatform) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for ConnectorPlatform.

func (ConnectorPlatform) String added in v0.2.2

func (_j ConnectorPlatform) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern ConnectorPlatform(%d) instead.

func (*ConnectorPlatform) UnmarshalBinary added in v0.2.2

func (_j *ConnectorPlatform) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for ConnectorPlatform.

func (*ConnectorPlatform) UnmarshalGQL added in v0.2.2

func (_j *ConnectorPlatform) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for ConnectorPlatform.

func (*ConnectorPlatform) UnmarshalJSON added in v0.2.2

func (_j *ConnectorPlatform) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for ConnectorPlatform.

func (*ConnectorPlatform) UnmarshalText added in v0.2.2

func (_j *ConnectorPlatform) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ConnectorPlatform.

func (*ConnectorPlatform) UnmarshalYAML added in v0.2.2

func (_j *ConnectorPlatform) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for ConnectorPlatform.

func (ConnectorPlatform) Validate added in v0.2.2

func (_j ConnectorPlatform) Validate() error

Validate whether the value is within the range of enum values.

func (ConnectorPlatform) Values added in v0.2.2

func (ConnectorPlatform) Values() []string

Values returns a slice of all String values of the enum.

type ConnectorPlugin

type ConnectorPlugin struct {
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Description holds the value of the "deleted" field.
	Description string `json:"description"`
	// Version holds the value of the "version" field.
	Version string `json:"version"`
	// TeamType holds the value of the "language" field.
	Language PluginLanguage `json:"language,omitempty"`
}

ConnectorPlugin is a ConnectorPlugin model.

type ConnectorProperties

type ConnectorProperties struct {
	Input          JSONObject  `json:"input"`
	Output         interface{} `json:"output"`
	LastTestTime   *int        `json:"lastTestTime"`
	LastTestStatus *TestStatus `json:"lastTestStatus"`
}

ConnectorProperties is a Task operation type.

type ConnectorStep

type ConnectorStep struct {
	// Label of the step
	Label string `json:"label,omitempty"`

	// Icon of the step
	Icon string `json:"icon,omitempty"`

	// Name of the schema
	Name string `json:"name,omitempty"`

	// IsTrigger of the schema
	IsTrigger bool `json:"isTrigger"`

	// Path of the schema
	Path []string `json:"path,omitempty"`

	NodeIndex int `json:"nodeIndex"`

	// Icon of the step
	Type StepType `json:"type,omitempty"`

	// Data of the step
	Data ConnectorStepData `json:"data,omitempty"`

	// Data of the step
	Children *[]ConnectorStep `json:"children,omitempty"`

	Reference *EntityReference `json:"reference,omitempty"`

	Metadata ConnectorStepMetadata `json:"metadata,omitempty"`

	// ParentID of the step
	ParentID *string `json:"parentId,omitempty"`

	// ErrorSettings of the step
	ErrorSettings StepErrorSettings `json:"errorSettings,omitempty"`

	// ContinueOnError of the step
	Valid bool `json:"valid,omitempty"`
}

type ConnectorStepData

type ConnectorStepData struct {
	OperationID      *string             `json:"operationId"`
	AuthConnectionID *uuid.UUID          `json:"authConnectionId"`
	Properties       ConnectorProperties `json:"properties"`
}

type ConnectorStepMetadata

type ConnectorStepMetadata struct {
	ConnectorName    string `json:"connectorName,omitempty"`
	ConnectorVersion string `json:"connectorVersion,omitempty"`
}

type ConnectorStepPosition

type ConnectorStepPosition struct {
	// Field of the step
	X int32 `json:"x"`

	Y int32 `json:"y"`
}

type ConnectorType added in v0.2.2

type ConnectorType string
const (
	ConnectorTypeBranch  ConnectorType = "branch"
	ConnectorTypeBoolean ConnectorType = "boolean"
	ConnectorTypeNormal  ConnectorType = "normal"
	ConnectorTypeLoop    ConnectorType = "loop"
)

func ConnectorTypeFromString added in v0.2.2

func ConnectorTypeFromString(raw string) (ConnectorType, bool)

ConnectorTypeFromString determines the enum value with an exact case match.

func ConnectorTypeFromStringIgnoreCase added in v0.2.2

func ConnectorTypeFromStringIgnoreCase(raw string) (ConnectorType, bool)

ConnectorTypeFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (ConnectorType) IsValid added in v0.2.2

func (_j ConnectorType) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (ConnectorType) MarshalBinary added in v0.2.2

func (_j ConnectorType) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for ConnectorType.

func (ConnectorType) MarshalGQL added in v0.2.2

func (_j ConnectorType) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for ConnectorType.

func (ConnectorType) MarshalJSON added in v0.2.2

func (_j ConnectorType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for ConnectorType.

func (ConnectorType) MarshalText added in v0.2.2

func (_j ConnectorType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ConnectorType.

func (ConnectorType) MarshalYAML added in v0.2.2

func (_j ConnectorType) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for ConnectorType.

func (ConnectorType) SQLTypeName added in v0.2.2

func (ConnectorType) SQLTypeName() string

func (*ConnectorType) Scan added in v0.2.2

func (_j *ConnectorType) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for ConnectorType.

func (ConnectorType) String added in v0.2.2

func (_j ConnectorType) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern ConnectorType(%d) instead.

func (*ConnectorType) UnmarshalBinary added in v0.2.2

func (_j *ConnectorType) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for ConnectorType.

func (*ConnectorType) UnmarshalGQL added in v0.2.2

func (_j *ConnectorType) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for ConnectorType.

func (*ConnectorType) UnmarshalJSON added in v0.2.2

func (_j *ConnectorType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for ConnectorType.

func (*ConnectorType) UnmarshalText added in v0.2.2

func (_j *ConnectorType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ConnectorType.

func (*ConnectorType) UnmarshalYAML added in v0.2.2

func (_j *ConnectorType) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for ConnectorType.

func (ConnectorType) Validate added in v0.2.2

func (_j ConnectorType) Validate() error

Validate whether the value is within the range of enum values.

func (ConnectorType) Values added in v0.2.2

func (ConnectorType) Values() []string

Values returns a slice of all String values of the enum.

type ConnectorVersionMetadata

type ConnectorVersionMetadata struct {
	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// DeletedAt holds the value of the "delete_time" field.
	DeletedAt time.Time `json:"delete_time,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Auth holds the value of the "auth" field.
	Auth AuthOperation `json:"auth,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// DisplayName holds the value of the "display_name" field.
	DisplayName string `json:"display_name,omitempty"`
	// Description holds the value of the "description" field.
	Description string `json:"description,omitempty"`
	// Icon holds the value of the "icon" field.
	Icon string `json:"icon,omitempty"`
	// Version holds the value of the "version" field.
	Version string `json:"version,omitempty"`
	// Namespace holds the value of the "namespace" field.
	Namespace *string `json:"namespace,omitempty"`
	// Documentation holds the value of the "documentation" field.
	Documentation *string `json:"documentation,omitempty"`
	// ReleaseNotes holds the value of the "release_notes" field.
	ReleaseNotes *string `json:"release_notes,omitempty"`
	// ConnectorID holds the value of the "connector_id" field.
	ConnectorID uuid.UUID `json:"connector_id,omitempty"`
	// MajorVersion holds the value of the "major_version" field.
	MajorVersion int `json:"major_version,omitempty"`
	// MinorVersion holds the value of the "minor_version" field.
	MinorVersion int `json:"minor_version,omitempty"`
	// PatchVersion holds the value of the "patch_version" field.
	PatchVersion int `json:"patch_version,omitempty"`
	// BuildMetadata holds the value of the "build_metadata" field.
	BuildMetadata *string `json:"build_metadata,omitempty"`
	// FileURL holds the value of the "file_url" field.
	FileURL *string `json:"file_url,omitempty"`
	// FileHash holds the value of the "file_hash" field.
	FileHash *string `json:"file_hash,omitempty"`
	// Type holds the value of the "type" field.
	Type ConnectorType `json:"type,omitempty"`
	// Platform holds the value of the "platform" field.
	Platform ConnectorPlatform `json:"platform,omitempty"`
	// Metadata holds the value of the "metadata" field.
	Metadata PluginMetadata `json:"metadata,omitempty"`
	// MinimumSupportedVersion holds the value of the "minimum_supported_version" field.
	MinimumSupportedVersion string `json:"minimum_supported_version,omitempty"`
	// MaximumSupportedVersion holds the value of the "maximum_supported_version" field.
	MaximumSupportedVersion string `json:"maximum_supported_version,omitempty"`
	// Operations holds the value of the "operations" field.
	Operations map[string]*Operation `json:"operations,omitempty"`
	// Triggers holds the value of the "triggers" field.
	Triggers map[string]*Trigger `json:"triggers,omitempty"`
	// HasTrigger holds the value of the "has_trigger" field.
	HasTrigger bool `json:"has_trigger,omitempty"`
	// Published holds the value of the "published" field.
	Published bool `json:"published"`
	// Approved holds the value of the "approved" field.
	Approved bool `json:"approved"`
}

ConnectorVersionMetadata is the model entity for the ConnectorVersion schema.

type DynamicOptionsContext

type DynamicOptionsContext struct {
	Auth          *AuthContext   `json:"auth,omitempty"`
	Step          *ConnectorStep `json:"step,omitempty"`
	Input         JSONObject     `json:"input"`
	ResolvedInput any            `json:"resolvedInput"`
}

type DynamicOptionsFn

type DynamicOptionsFn = func(ctx *DynamicOptionsContext) (interface{}, error)

type EntityReference

type EntityReference struct {
	// Field such is the unique field name of the entity
	Field string `json:"field,omitempty"`

	// Value such is the unique field value of the entity
	Value string `json:"value,omitempty"`

	// Value such is the unique field value of the entity
	Version *string `json:"version,omitempty"`

	// Type of the entity
	Entity string `json:"entity,omitempty"`
}

type ExecutionType

type ExecutionType string
const (
	Begin  ExecutionType = "BEGIN"
	Resume ExecutionType = "RESUME"
)

func ExecutionTypeFromString

func ExecutionTypeFromString(raw string) (ExecutionType, bool)

ExecutionTypeFromString determines the enum value with an exact case match.

func ExecutionTypeFromStringIgnoreCase

func ExecutionTypeFromStringIgnoreCase(raw string) (ExecutionType, bool)

ExecutionTypeFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (ExecutionType) IsValid

func (_j ExecutionType) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (ExecutionType) MarshalBinary

func (_j ExecutionType) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for ExecutionType.

func (ExecutionType) MarshalGQL

func (_j ExecutionType) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for ExecutionType.

func (ExecutionType) MarshalJSON

func (_j ExecutionType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for ExecutionType.

func (ExecutionType) MarshalText

func (_j ExecutionType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for ExecutionType.

func (ExecutionType) MarshalYAML

func (_j ExecutionType) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for ExecutionType.

func (ExecutionType) SQLTypeName

func (ExecutionType) SQLTypeName() string

func (*ExecutionType) Scan

func (_j *ExecutionType) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for ExecutionType.

func (ExecutionType) String

func (_j ExecutionType) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern ExecutionType(%d) instead.

func (*ExecutionType) UnmarshalBinary

func (_j *ExecutionType) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for ExecutionType.

func (*ExecutionType) UnmarshalGQL

func (_j *ExecutionType) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for ExecutionType.

func (*ExecutionType) UnmarshalJSON

func (_j *ExecutionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for ExecutionType.

func (*ExecutionType) UnmarshalText

func (_j *ExecutionType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for ExecutionType.

func (*ExecutionType) UnmarshalYAML

func (_j *ExecutionType) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for ExecutionType.

func (ExecutionType) Validate

func (_j ExecutionType) Validate() error

Validate whether the value is within the range of enum values.

func (ExecutionType) Values

func (ExecutionType) Values() []string

Values returns a slice of all String values of the enum.

type FieldLogicOperators

type FieldLogicOperators string
const (
	Eq      FieldLogicOperators = "=="
	EEq     FieldLogicOperators = "==="
	NEq     FieldLogicOperators = "!="
	NNEq    FieldLogicOperators = "!=="
	Not     FieldLogicOperators = "!"
	NNot    FieldLogicOperators = "!!"
	Or      FieldLogicOperators = "or"
	And     FieldLogicOperators = "and"
	Lt      FieldLogicOperators = "<"
	Gt      FieldLogicOperators = ">"
	GEq     FieldLogicOperators = ">="
	LEq     FieldLogicOperators = "<="
	Between FieldLogicOperators = "between"
	Max     FieldLogicOperators = "max"
	Min     FieldLogicOperators = "min"
	Plus    FieldLogicOperators = "+"
	Minus   FieldLogicOperators = "-"
	Divide  FieldLogicOperators = "/"
	Modulo  FieldLogicOperators = "%"
	Map     FieldLogicOperators = "map"
	Reduce  FieldLogicOperators = "reduce"
	Filter  FieldLogicOperators = "filter"
	All     FieldLogicOperators = "all"
	Some    FieldLogicOperators = "some"
	Merge   FieldLogicOperators = "merge"
	In      FieldLogicOperators = "in"
	Cat     FieldLogicOperators = "cat"
	Substr  FieldLogicOperators = "substr"
)

func FieldLogicOperatorsFromString

func FieldLogicOperatorsFromString(raw string) (FieldLogicOperators, bool)

FieldLogicOperatorsFromString determines the enum value with an exact case match.

func FieldLogicOperatorsFromStringIgnoreCase

func FieldLogicOperatorsFromStringIgnoreCase(raw string) (FieldLogicOperators, bool)

FieldLogicOperatorsFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (FieldLogicOperators) IsValid

func (_j FieldLogicOperators) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (FieldLogicOperators) MarshalBinary

func (_j FieldLogicOperators) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for FieldLogicOperators.

func (FieldLogicOperators) MarshalGQL

func (_j FieldLogicOperators) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for FieldLogicOperators.

func (FieldLogicOperators) MarshalJSON

func (_j FieldLogicOperators) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for FieldLogicOperators.

func (FieldLogicOperators) MarshalText

func (_j FieldLogicOperators) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for FieldLogicOperators.

func (FieldLogicOperators) MarshalYAML

func (_j FieldLogicOperators) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for FieldLogicOperators.

func (FieldLogicOperators) SQLTypeName

func (FieldLogicOperators) SQLTypeName() string

func (*FieldLogicOperators) Scan

func (_j *FieldLogicOperators) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for FieldLogicOperators.

func (FieldLogicOperators) String

func (_j FieldLogicOperators) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern FieldLogicOperators(%d) instead.

func (*FieldLogicOperators) UnmarshalBinary

func (_j *FieldLogicOperators) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for FieldLogicOperators.

func (*FieldLogicOperators) UnmarshalGQL

func (_j *FieldLogicOperators) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for FieldLogicOperators.

func (*FieldLogicOperators) UnmarshalJSON

func (_j *FieldLogicOperators) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for FieldLogicOperators.

func (*FieldLogicOperators) UnmarshalText

func (_j *FieldLogicOperators) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for FieldLogicOperators.

func (*FieldLogicOperators) UnmarshalYAML

func (_j *FieldLogicOperators) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for FieldLogicOperators.

func (FieldLogicOperators) Validate

func (_j FieldLogicOperators) Validate() error

Validate whether the value is within the range of enum values.

func (FieldLogicOperators) Values

func (FieldLogicOperators) Values() []string

Values returns a slice of all String values of the enum.

type FileManager

type FileManager interface {
	Put(name string, data io.Reader) (*string, error)
	PutWorkflow(metadata *WorkflowRunMetadata, name string, data io.Reader) (*string, error)
	ReadWorkflow(metadata *WorkflowRunMetadata, name string) ([]byte, error)
	Read(name string) ([]byte, error)
}

type GetDynamicOptionsInput

type GetDynamicOptionsInput struct {
	ConnectorName     string                 `json:"connectorName"`
	ConnectorVersion  string                 `json:"connectorVersion"`
	FieldName         string                 `json:"fieldName"`
	OperationName     string                 `json:"operationName"`
	StepName          string                 `json:"stepName"`
	Filter            *string                `json:"filter,omitempty"`
	WorkflowID        string                 `json:"workflowId"`
	WorkflowVersionID *string                `json:"workflowVersionId,omitempty"`
	Input             map[string]interface{} `json:"input,omitempty"`
}

type JSONObject

type JSONObject = map[string]interface{}

JSONObject is a type alias for map[string]interface{}.

type JobStatus added in v0.2.2

type JobStatus string
const (
	JobStatusQueued     JobStatus = "queued"
	JobStatusRunning    JobStatus = "running"
	JobStatusCompleted  JobStatus = "completed"
	JobStatusCancelling JobStatus = "cancelling"
	JobStatusCanceled   JobStatus = "canceled"
	JobStatusFailed     JobStatus = "failed"
	JobStatusPaused     JobStatus = "paused"
)

func JobStatusFromString added in v0.2.2

func JobStatusFromString(raw string) (JobStatus, bool)

JobStatusFromString determines the enum value with an exact case match.

func JobStatusFromStringIgnoreCase added in v0.2.2

func JobStatusFromStringIgnoreCase(raw string) (JobStatus, bool)

JobStatusFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (JobStatus) IsValid added in v0.2.2

func (_j JobStatus) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (JobStatus) MarshalBinary added in v0.2.2

func (_j JobStatus) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for JobStatus.

func (JobStatus) MarshalGQL added in v0.2.2

func (_j JobStatus) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for JobStatus.

func (JobStatus) MarshalJSON added in v0.2.2

func (_j JobStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for JobStatus.

func (JobStatus) MarshalText added in v0.2.2

func (_j JobStatus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for JobStatus.

func (JobStatus) MarshalYAML added in v0.2.2

func (_j JobStatus) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for JobStatus.

func (JobStatus) SQLTypeName added in v0.2.2

func (JobStatus) SQLTypeName() string

func (*JobStatus) Scan added in v0.2.2

func (_j *JobStatus) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for JobStatus.

func (JobStatus) String added in v0.2.2

func (_j JobStatus) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern JobStatus(%d) instead.

func (*JobStatus) UnmarshalBinary added in v0.2.2

func (_j *JobStatus) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for JobStatus.

func (*JobStatus) UnmarshalGQL added in v0.2.2

func (_j *JobStatus) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for JobStatus.

func (*JobStatus) UnmarshalJSON added in v0.2.2

func (_j *JobStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for JobStatus.

func (*JobStatus) UnmarshalText added in v0.2.2

func (_j *JobStatus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for JobStatus.

func (*JobStatus) UnmarshalYAML added in v0.2.2

func (_j *JobStatus) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for JobStatus.

func (JobStatus) Validate added in v0.2.2

func (_j JobStatus) Validate() error

Validate whether the value is within the range of enum values.

func (JobStatus) Values added in v0.2.2

func (JobStatus) Values() []string

Values returns a slice of all String values of the enum.

type LogLevel

type LogLevel string
const (
	Debug   LogLevel = "debug"
	Error   LogLevel = "error"
	Warning LogLevel = "warning"
	Info    LogLevel = "info"
)

type OauthStrategy

type OauthStrategy struct {
	ClientID          string            `json:"client_id"`
	ClientSecret      string            `json:"client_secret"`
	RedirectURL       string            `json:"redirect_url"`
	Scopes            []string          `json:"scopes"`
	Endpoint          AuthEndpoint      `json:"endpoint"`
	ResponseType      string            `json:"response_type"`
	GrantType         string            `json:"grant_type"`
	State             string            `json:"state"`
	AuthMethod        string            `json:"auth_method"`
	CodeChallenge     string            `json:"code_challenge"`
	CodeChallengeMath string            `json:"code_challenge_math"`
	PrivateKey        string            `json:"private_key"`
	ExtraParams       map[string]string `json:"extra_params"`
}

type OauthTokenResponse

type OauthTokenResponse struct {
	AccessToken  string            `json:"access_token,omitempty"`
	TokenType    string            `json:"token_type,omitempty"`
	ExpiresIn    int64             `json:"expires_in,omitempty"`
	RefreshToken string            `json:"refresh_token,omitempty"`
	Scope        string            `json:"scope,omitempty"`
	Extra        map[string]string `json:"extra,omitempty"`
}

type Operation

type Operation struct {
	// Key holds the value of the "key" field.
	Name string `json:"key,omitempty"`
	// Name holds the value of the "name" field.
	DisplayName string `json:"name,omitempty"`
	// Description holds the value of the "description" field.
	Description string `json:"description,omitempty"`
	// Input holds the value of the "input" field.
	Input *AutoFormSchema `json:"input,omitempty"`
	// Auth holds the value of the "auth" field.
	Auth *AutoFormSchema `json:"auth,omitempty"`
	// Output holds the value of the "output" field.
	Output map[string]interface{} `json:"output,omitempty"`
	// SampleOutput holds the value of the "sample_output" field.
	SampleOutput map[string]interface{} `json:"sampleOutput,omitempty"`

	ErrorSettings StepErrorSettings `json:"errorSettings,omitempty"`

	RequireAuth bool `json:"requireAuth"`
}

Operation .

type Operations

type Operations = map[string]*Operation

type OperationsList

type OperationsList = []*Operation

type PauseType

type PauseType string
const (
	DelayPause   PauseType = "DELAY"
	WebhookPause PauseType = "WEBHOOK"
)

func PauseTypeFromString

func PauseTypeFromString(raw string) (PauseType, bool)

PauseTypeFromString determines the enum value with an exact case match.

func PauseTypeFromStringIgnoreCase

func PauseTypeFromStringIgnoreCase(raw string) (PauseType, bool)

PauseTypeFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (PauseType) IsValid

func (_j PauseType) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (PauseType) MarshalBinary

func (_j PauseType) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for PauseType.

func (PauseType) MarshalGQL

func (_j PauseType) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for PauseType.

func (PauseType) MarshalJSON

func (_j PauseType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for PauseType.

func (PauseType) MarshalText

func (_j PauseType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for PauseType.

func (PauseType) MarshalYAML

func (_j PauseType) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for PauseType.

func (PauseType) SQLTypeName

func (PauseType) SQLTypeName() string

func (*PauseType) Scan

func (_j *PauseType) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for PauseType.

func (PauseType) String

func (_j PauseType) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern PauseType(%d) instead.

func (*PauseType) UnmarshalBinary

func (_j *PauseType) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for PauseType.

func (*PauseType) UnmarshalGQL

func (_j *PauseType) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for PauseType.

func (*PauseType) UnmarshalJSON

func (_j *PauseType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for PauseType.

func (*PauseType) UnmarshalText

func (_j *PauseType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for PauseType.

func (*PauseType) UnmarshalYAML

func (_j *PauseType) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for PauseType.

func (PauseType) Validate

func (_j PauseType) Validate() error

Validate whether the value is within the range of enum values.

func (PauseType) Values

func (PauseType) Values() []string

Values returns a slice of all String values of the enum.

type PluginCompiler added in v0.2.2

type PluginCompiler string

PluginCompiler enum definition.

const (
	Wasm   PluginCompiler = "wasm"
	Wasi   PluginCompiler = "wasi"
	Wasix  PluginCompiler = "wasix"
	TinyGo PluginCompiler = "tinygo"
)

func (PluginCompiler) IsValid added in v0.2.2

func (e PluginCompiler) IsValid() bool

func (PluginCompiler) MarshalGQL added in v0.2.2

func (e PluginCompiler) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (PluginCompiler) String added in v0.2.2

func (e PluginCompiler) String() string

func (PluginCompiler) UnmarshalGQL added in v0.2.2

func (e PluginCompiler) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface

func (PluginCompiler) Values added in v0.2.2

func (PluginCompiler) Values() (kinds []string)

Values provides list valid values for Enum.

type PluginLanguage added in v0.2.2

type PluginLanguage string

PluginLanguage enum definition.

const (
	PluginLanguageRust   PluginLanguage = "rust"
	PluginLanguageGolang PluginLanguage = "golang"
	PluginLanguagePython PluginLanguage = "python"
	PluginLanguageZig    PluginLanguage = "zig"
)

func (PluginLanguage) IsValid added in v0.2.2

func (e PluginLanguage) IsValid() bool

func (PluginLanguage) MarshalGQL added in v0.2.2

func (e PluginLanguage) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (PluginLanguage) String added in v0.2.2

func (e PluginLanguage) String() string

func (PluginLanguage) UnmarshalGQL added in v0.2.2

func (e PluginLanguage) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface

func (PluginLanguage) Values added in v0.2.2

func (PluginLanguage) Values() (kinds []string)

Values provides list valid values for Enum.

type PluginMetadata

type PluginMetadata struct {
	Compiler PluginCompiler `json:"compiler"`
	Language PluginLanguage `json:"language,omitempty"`
}

PluginMetadata is a PluginMetadata model.

type RunModeType

type RunModeType string
const (
	TriggerRun   RunModeType = "trigger"
	ManualRun    RunModeType = "manual"
	ScheduledRun RunModeType = "schedule"
)

func RunModeTypeFromString

func RunModeTypeFromString(raw string) (RunModeType, bool)

RunModeTypeFromString determines the enum value with an exact case match.

func RunModeTypeFromStringIgnoreCase

func RunModeTypeFromStringIgnoreCase(raw string) (RunModeType, bool)

RunModeTypeFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (RunModeType) IsValid

func (_j RunModeType) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (RunModeType) MarshalBinary

func (_j RunModeType) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for RunModeType.

func (RunModeType) MarshalGQL

func (_j RunModeType) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for RunModeType.

func (RunModeType) MarshalJSON

func (_j RunModeType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for RunModeType.

func (RunModeType) MarshalText

func (_j RunModeType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for RunModeType.

func (RunModeType) MarshalYAML

func (_j RunModeType) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for RunModeType.

func (RunModeType) SQLTypeName

func (RunModeType) SQLTypeName() string

func (*RunModeType) Scan

func (_j *RunModeType) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for RunModeType.

func (RunModeType) String

func (_j RunModeType) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern RunModeType(%d) instead.

func (*RunModeType) UnmarshalBinary

func (_j *RunModeType) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for RunModeType.

func (*RunModeType) UnmarshalGQL

func (_j *RunModeType) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for RunModeType.

func (*RunModeType) UnmarshalJSON

func (_j *RunModeType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for RunModeType.

func (*RunModeType) UnmarshalText

func (_j *RunModeType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for RunModeType.

func (*RunModeType) UnmarshalYAML

func (_j *RunModeType) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for RunModeType.

func (RunModeType) Validate

func (_j RunModeType) Validate() error

Validate whether the value is within the range of enum values.

func (RunModeType) Values

func (RunModeType) Values() []string

Values returns a slice of all String values of the enum.

type SignLog

type SignLog struct {
	UserAgent string
	At        *time.Time
	IP        string
}

SignLog sign log

type SignLogs

type SignLogs struct {
	Log         string
	SignInCount uint
	Logs        []SignLog
}

SignLogs record sign in logs

type StepEdge

type StepEdge struct {
	// ID of the edge
	ID string `json:"id,omitempty"`

	// Source id of source step
	Source string `json:"source,omitempty"`

	// Target id of target step
	Target string `json:"target,omitempty"`

	// Type of step edge
	Type string `json:"type,omitempty"`

	// Style of step edge
	Style *map[string]interface{} `json:"style,omitempty"`
}

StepEdge is the graph edge reference of the steps

type StepErrorSettings

type StepErrorSettings struct {
	// ContinueOnError of the step
	ContinueOnError bool `json:"continueOnError,omitempty"`

	// RetryOnError of the step
	RetryOnError bool `json:"retryOnError,omitempty"`
}

type StepState

type StepState struct {
	ConnectorName string `json:"connectorName"`
	Version       string `json:"version"`

	Input  map[string]interface{} `json:"input"`
	Output interface{}            `json:"output"`
	Logs   SystemActivityLogs     `json:"logs"`
	Status JobStatus              `json:"status"`
	Index  int                    `json:"index"`
}

type StepType added in v0.2.2

type StepType string
const (
	StepTypeNormal    StepType = "normal"
	StepTypeBranch    StepType = "branch"
	StepTypeBoolean   StepType = "boolean"
	StepTypeLoop      StepType = "loop"
	StepTypeCondition StepType = "condition"
	StepTypeStart     StepType = "start"
	StepTypeEnd       StepType = "end"
)

func StepTypeFromString added in v0.2.2

func StepTypeFromString(raw string) (StepType, bool)

StepTypeFromString determines the enum value with an exact case match.

func StepTypeFromStringIgnoreCase added in v0.2.2

func StepTypeFromStringIgnoreCase(raw string) (StepType, bool)

StepTypeFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (StepType) IsValid added in v0.2.2

func (_j StepType) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (StepType) MarshalBinary added in v0.2.2

func (_j StepType) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for StepType.

func (StepType) MarshalGQL added in v0.2.2

func (_j StepType) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for StepType.

func (StepType) MarshalJSON added in v0.2.2

func (_j StepType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for StepType.

func (StepType) MarshalText added in v0.2.2

func (_j StepType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for StepType.

func (StepType) MarshalYAML added in v0.2.2

func (_j StepType) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for StepType.

func (StepType) SQLTypeName added in v0.2.2

func (StepType) SQLTypeName() string

func (*StepType) Scan added in v0.2.2

func (_j *StepType) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for StepType.

func (StepType) String added in v0.2.2

func (_j StepType) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern StepType(%d) instead.

func (*StepType) UnmarshalBinary added in v0.2.2

func (_j *StepType) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for StepType.

func (*StepType) UnmarshalGQL added in v0.2.2

func (_j *StepType) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for StepType.

func (*StepType) UnmarshalJSON added in v0.2.2

func (_j *StepType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for StepType.

func (*StepType) UnmarshalText added in v0.2.2

func (_j *StepType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for StepType.

func (*StepType) UnmarshalYAML added in v0.2.2

func (_j *StepType) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for StepType.

func (StepType) Validate added in v0.2.2

func (_j StepType) Validate() error

Validate whether the value is within the range of enum values.

func (StepType) Values added in v0.2.2

func (StepType) Values() []string

Values returns a slice of all String values of the enum.

type StepsState

type StepsState struct {
	Steps          map[string]*StepState `json:"steps"`
	CurrentStepID  string                `json:"currentStepId"`
	PreviousStepID *string               `json:"previousStepId"`
}

type SystemActivityLog

type SystemActivityLog struct {
	Level     LogLevel  `json:"level"`
	Scope     string    `json:"scope"`
	Message   string    `json:"message"`
	Timestamp time.Time `json:"timestamp"`
}

type SystemActivityLogs

type SystemActivityLogs = []SystemActivityLog

type TaskOperation

type TaskOperation struct {
	ID          uuid.UUID              `json:"id"`
	Name        string                 `json:"name"`
	Description string                 `json:"description"`
	Input       map[string]interface{} `json:"input"`
	Output      map[string]interface{} `json:"output"`
}

TaskOperation is a Task operation type.

type TestStatus

type TestStatus string
const (
	Fail TestStatus = "fail"
	Pass TestStatus = "pass"
)

func TestStatusFromString

func TestStatusFromString(raw string) (TestStatus, bool)

TestStatusFromString determines the enum value with an exact case match.

func TestStatusFromStringIgnoreCase

func TestStatusFromStringIgnoreCase(raw string) (TestStatus, bool)

TestStatusFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (TestStatus) IsValid

func (_j TestStatus) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (TestStatus) MarshalBinary

func (_j TestStatus) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for TestStatus.

func (TestStatus) MarshalGQL

func (_j TestStatus) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for TestStatus.

func (TestStatus) MarshalJSON

func (_j TestStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for TestStatus.

func (TestStatus) MarshalText

func (_j TestStatus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for TestStatus.

func (TestStatus) MarshalYAML

func (_j TestStatus) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for TestStatus.

func (TestStatus) SQLTypeName

func (TestStatus) SQLTypeName() string

func (*TestStatus) Scan

func (_j *TestStatus) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for TestStatus.

func (TestStatus) String

func (_j TestStatus) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern TestStatus(%d) instead.

func (*TestStatus) UnmarshalBinary

func (_j *TestStatus) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for TestStatus.

func (*TestStatus) UnmarshalGQL

func (_j *TestStatus) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for TestStatus.

func (*TestStatus) UnmarshalJSON

func (_j *TestStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for TestStatus.

func (*TestStatus) UnmarshalText

func (_j *TestStatus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for TestStatus.

func (*TestStatus) UnmarshalYAML

func (_j *TestStatus) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for TestStatus.

func (TestStatus) Validate

func (_j TestStatus) Validate() error

Validate whether the value is within the range of enum values.

func (TestStatus) Values

func (TestStatus) Values() []string

Values returns a slice of all String values of the enum.

type TestWorkflowStepInput

type TestWorkflowStepInput struct {
	StepName   string    `json:"stepName"`
	WorkflowID uuid.UUID `json:"workflowId"`
}

type Trigger

type Trigger struct {
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// DisplayName holds the value of the "displayName" field.
	DisplayName string `json:"displayName,omitempty"`
	// Description holds the value of the "description" field.
	Description string `json:"description,omitempty"`
	// Input holds the value of the "input" field.
	Input *AutoFormSchema `json:"input,omitempty"`
	// SampleOutput holds the value of the "sampleOutput" field.
	SampleOutput map[string]interface{} `json:"sampleOutput,omitempty"`
	// Auth holds the value of the "auth" field.
	Auth *AutoFormSchema `json:"auth,omitempty"`

	Settings TriggerSettings `json:"settings,omitempty"`

	ErrorSettings StepErrorSettings `json:"errorSettings,omitempty"`

	RequireAuth bool `json:"requireAuth"`
}

Trigger .

type TriggerHookType

type TriggerHookType string
const (
	Run        TriggerHookType = "RUN"
	Test       TriggerHookType = "TEST"
	OnEnable   TriggerHookType = "ON_ENABLED"
	OnDisabled TriggerHookType = "ON_DISABLED"
	Renew      TriggerHookType = "RENEW"
)

func TriggerHookTypeFromString

func TriggerHookTypeFromString(raw string) (TriggerHookType, bool)

TriggerHookTypeFromString determines the enum value with an exact case match.

func TriggerHookTypeFromStringIgnoreCase

func TriggerHookTypeFromStringIgnoreCase(raw string) (TriggerHookType, bool)

TriggerHookTypeFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (TriggerHookType) IsValid

func (_j TriggerHookType) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (TriggerHookType) MarshalBinary

func (_j TriggerHookType) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for TriggerHookType.

func (TriggerHookType) MarshalGQL

func (_j TriggerHookType) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for TriggerHookType.

func (TriggerHookType) MarshalJSON

func (_j TriggerHookType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for TriggerHookType.

func (TriggerHookType) MarshalText

func (_j TriggerHookType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for TriggerHookType.

func (TriggerHookType) MarshalYAML

func (_j TriggerHookType) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for TriggerHookType.

func (TriggerHookType) SQLTypeName

func (TriggerHookType) SQLTypeName() string

func (*TriggerHookType) Scan

func (_j *TriggerHookType) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for TriggerHookType.

func (TriggerHookType) String

func (_j TriggerHookType) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern TriggerHookType(%d) instead.

func (*TriggerHookType) UnmarshalBinary

func (_j *TriggerHookType) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for TriggerHookType.

func (*TriggerHookType) UnmarshalGQL

func (_j *TriggerHookType) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for TriggerHookType.

func (*TriggerHookType) UnmarshalJSON

func (_j *TriggerHookType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for TriggerHookType.

func (*TriggerHookType) UnmarshalText

func (_j *TriggerHookType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for TriggerHookType.

func (*TriggerHookType) UnmarshalYAML

func (_j *TriggerHookType) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for TriggerHookType.

func (TriggerHookType) Validate

func (_j TriggerHookType) Validate() error

Validate whether the value is within the range of enum values.

func (TriggerHookType) Values

func (TriggerHookType) Values() []string

Values returns a slice of all String values of the enum.

type TriggerManualConfig

type TriggerManualConfig struct{}

type TriggerPubSubConfig

type TriggerPubSubConfig struct {
	// Topic of the pubsub
	Topic string `json:"id,omitempty"`
	// Topic of the pubsub
	Endpoint string `json:"endpoint,omitempty"`
}

type TriggerScheduledConfig

type TriggerScheduledConfig struct {
	// Field of the step
	RunAt string `json:"runAt,omitempty"`
}

type TriggerSettings

type TriggerSettings struct {
	// Type holds the value of the "type" field.
	Type TriggerType `json:"type,omitempty"`
	// Interval holds the value of the "interval" field.
	Interval string `json:"interval,omitempty"`
}

type TriggerType

type TriggerType string
const (
	Scheduled TriggerType = "scheduled"
	Event     TriggerType = "event"
	PubSub    TriggerType = "pubsub"
	Manual    TriggerType = "manual"
	Webhook   TriggerType = "webhook"
)

func TriggerTypeFromString

func TriggerTypeFromString(raw string) (TriggerType, bool)

TriggerTypeFromString determines the enum value with an exact case match.

func TriggerTypeFromStringIgnoreCase

func TriggerTypeFromStringIgnoreCase(raw string) (TriggerType, bool)

TriggerTypeFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (TriggerType) IsValid

func (_j TriggerType) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (TriggerType) MarshalBinary

func (_j TriggerType) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for TriggerType.

func (TriggerType) MarshalGQL

func (_j TriggerType) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for TriggerType.

func (TriggerType) MarshalJSON

func (_j TriggerType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for TriggerType.

func (TriggerType) MarshalText

func (_j TriggerType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for TriggerType.

func (TriggerType) MarshalYAML

func (_j TriggerType) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for TriggerType.

func (TriggerType) SQLTypeName

func (TriggerType) SQLTypeName() string

func (*TriggerType) Scan

func (_j *TriggerType) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for TriggerType.

func (TriggerType) String

func (_j TriggerType) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern TriggerType(%d) instead.

func (*TriggerType) UnmarshalBinary

func (_j *TriggerType) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for TriggerType.

func (*TriggerType) UnmarshalGQL

func (_j *TriggerType) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for TriggerType.

func (*TriggerType) UnmarshalJSON

func (_j *TriggerType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for TriggerType.

func (*TriggerType) UnmarshalText

func (_j *TriggerType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for TriggerType.

func (*TriggerType) UnmarshalYAML

func (_j *TriggerType) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for TriggerType.

func (TriggerType) Validate

func (_j TriggerType) Validate() error

Validate whether the value is within the range of enum values.

func (TriggerType) Values

func (TriggerType) Values() []string

Values returns a slice of all String values of the enum.

type TriggerWebhookConfig

type TriggerWebhookConfig struct {
	// Endpoint of the trigger
	Endpoint string `json:"endpoint,omitempty"`
}

type TriggerWorkflowConfig

type TriggerWorkflowConfig struct {
	// WorkflowID of the trigger
	WorkflowID string `json:"workflow_id,omitempty"`
}

type Triggers

type Triggers = map[string]*Trigger

type TriggersList

type TriggersList = []*Trigger

type WakfloAuthStrategy

type WakfloAuthStrategy struct{}

type WorkflowRunMetadata

type WorkflowRunMetadata struct {
	// ID holds the value of the "id" field.
	ID uuid.UUID `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// DisplayName holds the value of the "displayName" field.
	DisplayName string `json:"displayName,omitempty"`
	// ConnectorName holds the value of the "connectorName" field.
	ConnectorName string `json:"connectorName,omitempty"`
	// ConnectorVersion holds the value of the "connectorVersion" field.
	ConnectorVersion string `json:"connectorVersion,omitempty"`
}

type WorkflowSettings

type WorkflowSettings struct {
	Config  map[string]interface{} `json:"config"`
	LastRun *time.Time             `json:"LastRun"`
}

type WorkflowTemplate

type WorkflowTemplate struct {
	Steps map[string]ConnectorStep
	State []int
	Edges map[string]StepEdge
}

type WorkflowTemplateType

type WorkflowTemplateType = WorkflowTemplate

type WorkspacePluginMetadata

type WorkspacePluginMetadata struct {
	Operations []TaskOperation `json:"properties,omitempty"`
	Compiler   PluginCompiler  `json:"compiler"`
	Language   PluginLanguage  `json:"language,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Description holds the value of the "deleted" field.
	Description string `json:"description"`
	// Documentation holds the value of the "documentation" field.
	Documentation *string `json:"documentation"`
	// Description holds the value of the "deleted" field.
	Category string `json:"category"`
	// Version holds the value of the "version" field.
	Version string `json:"version"`
	// Icon holds the value of the "icon" field.
	Icon string `json:"icon"`
}

WorkspacePluginMetadata is a WorkspacePluginMetadata model.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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