Documentation ¶
Index ¶
- func MergeMaps[T any](map1, map2 map[string]T) map[string]T
- type ArrayField
- func (b *ArrayField) Build() *sdkcore.AutoFormSchema
- func (b *ArrayField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *ArrayField
- func (b *ArrayField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *ArrayField
- func (b *ArrayField) SetDefaultValue(defaultValue interface{}) *ArrayField
- func (b *ArrayField) SetDescription(desc string) *ArrayField
- func (b *ArrayField) SetDisabled(disabled bool) *ArrayField
- func (b *ArrayField) SetDisplayName(title string) *ArrayField
- func (b *ArrayField) SetHint(hint string) *ArrayField
- func (b *ArrayField) SetItems(item *sdkcore.AutoFormSchema) *ArrayField
- func (b *ArrayField) SetLabel(label string) *ArrayField
- func (b *ArrayField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *ArrayField
- func (b *ArrayField) SetPlaceholder(placeholder string) *ArrayField
- func (b *ArrayField) SetRequired(required bool) *ArrayField
- func (b *ArrayField) SetUnique(unique bool) *ArrayField
- type Auth
- type AuthBasicField
- func (b *AuthBasicField) Build() *sdkcore.AutoFormSchema
- func (b *AuthBasicField) SetDescription(desc string) *AuthBasicField
- func (b *AuthBasicField) SetPasswordHint(hint string) *AuthBasicField
- func (b *AuthBasicField) SetPasswordLabel(label string) *AuthBasicField
- func (b *AuthBasicField) SetPasswordPlaceholder(placeholder string) *AuthBasicField
- func (b *AuthBasicField) SetUsernameHint(hint string) *AuthBasicField
- func (b *AuthBasicField) SetUsernameLabel(label string) *AuthBasicField
- func (b *AuthBasicField) SetUsernamePlaceholder(placeholder string) *AuthBasicField
- type AuthSecretField
- func (b *AuthSecretField) Build() *sdkcore.AutoFormSchema
- func (b *AuthSecretField) SetDescription(desc string) *AuthSecretField
- func (b *AuthSecretField) SetDisplayName(title string) *AuthSecretField
- func (b *AuthSecretField) SetHint(hint string) *AuthSecretField
- func (b *AuthSecretField) SetLabel(label string) *AuthSecretField
- func (b *AuthSecretField) SetPlaceholder(placeholder string) *AuthSecretField
- func (b *AuthSecretField) WithKey(field *sdkcore.AutoFormSchema) *AuthSecretField
- type BaseComponentField
- type BaseTextField
- func (b *BaseTextField) Build() *sdkcore.AutoFormSchema
- func (b *BaseTextField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *BaseTextField
- func (b *BaseTextField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *BaseTextField
- func (b *BaseTextField) SetDefaultValue(defaultValue string) *BaseTextField
- func (b *BaseTextField) SetDescription(desc string) *BaseTextField
- func (b *BaseTextField) SetDisabled(disabled bool) *BaseTextField
- func (b *BaseTextField) SetDisplayName(title string) *BaseTextField
- func (b *BaseTextField) SetHint(hint string) *BaseTextField
- func (b *BaseTextField) SetLabel(label string) *BaseTextField
- func (b *BaseTextField) SetMaxLength(len int) *BaseTextField
- func (b *BaseTextField) SetMinLength(len int) *BaseTextField
- func (b *BaseTextField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *BaseTextField
- func (b *BaseTextField) SetPlaceholder(placeholder string) *BaseTextField
- func (b *BaseTextField) SetRequired(required bool) *BaseTextField
- type BooleanField
- func (b *BooleanField) Build() *sdkcore.AutoFormSchema
- func (b *BooleanField) SetDefaultValue(defaultValue bool) *BooleanField
- func (b *BooleanField) SetDescription(desc string) *BooleanField
- func (b *BooleanField) SetDisabled(disabled bool) *BooleanField
- func (b *BooleanField) SetDisplayName(title string) *BooleanField
- func (b *BooleanField) SetHint(hint string) *BooleanField
- func (b *BooleanField) SetLabel(label string) *BooleanField
- func (b *BooleanField) SetPlaceholder(placeholder string) *BooleanField
- func (b *BooleanField) SetRequired(required bool) *BooleanField
- type BranchField
- func (b *BranchField) Build() *sdkcore.AutoFormSchema
- func (b *BranchField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *BranchField
- func (b *BranchField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *BranchField
- func (b *BranchField) SetDefaultValue(defaultValue interface{}) *BranchField
- func (b *BranchField) SetDescription(desc string) *BranchField
- func (b *BranchField) SetDisabled(disabled bool) *BranchField
- func (b *BranchField) SetDisplayName(title string) *BranchField
- func (b *BranchField) SetHint(hint string) *BranchField
- func (b *BranchField) SetItems(item *sdkcore.AutoFormSchema) *BranchField
- func (b *BranchField) SetLabel(label string) *BranchField
- func (b *BranchField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *BranchField
- func (b *BranchField) SetPlaceholder(placeholder string) *BranchField
- func (b *BranchField) SetRequired(required bool) *BranchField
- func (b *BranchField) SetUnique(unique bool) *BranchField
- type CheckboxField
- func (b *CheckboxField) Build() *sdkcore.AutoFormSchema
- func (b *CheckboxField) SetDefaultValue(defaultValue bool) *CheckboxField
- func (b *CheckboxField) SetDescription(desc string) *CheckboxField
- func (b *CheckboxField) SetDisabled(disabled bool) *CheckboxField
- func (b *CheckboxField) SetDisplayName(title string) *CheckboxField
- func (b *CheckboxField) SetHint(hint string) *CheckboxField
- func (b *CheckboxField) SetLabel(label string) *CheckboxField
- func (b *CheckboxField) SetPlaceholder(placeholder string) *CheckboxField
- func (b *CheckboxField) SetRequired(required bool) *CheckboxField
- type CodeEditorField
- func (b *CodeEditorField) Build() *sdkcore.AutoFormSchema
- func (b *CodeEditorField) SetDefaultValue(defaultValue string) *CodeEditorField
- func (b *CodeEditorField) SetDescription(desc string) *CodeEditorField
- func (b *CodeEditorField) SetDisabled(disabled bool) *CodeEditorField
- func (b *CodeEditorField) SetDisplayName(title string) *CodeEditorField
- func (b *CodeEditorField) SetHint(hint string) *CodeEditorField
- func (b *CodeEditorField) SetLabel(label string) *CodeEditorField
- func (b *CodeEditorField) SetLanguage(language sdkcore.CodeEditorLanguage) *CodeEditorField
- func (b *CodeEditorField) SetPlaceholder(placeholder string) *CodeEditorField
- func (b *CodeEditorField) SetRequired(required bool) *CodeEditorField
- type CustomAuthField
- func (b *CustomAuthField) Build() *sdkcore.AutoFormSchema
- func (b *CustomAuthField) SetDescription(desc string) *CustomAuthField
- func (b *CustomAuthField) SetFields(fields map[string]*sdkcore.AutoFormSchema) *CustomAuthField
- func (b *CustomAuthField) SetHint(hint string) *CustomAuthField
- func (b *CustomAuthField) SetLabel(label string) *CustomAuthField
- func (b *CustomAuthField) SetPlaceholder(placeholder string) *CustomAuthField
- func (b *CustomAuthField) SetRequired(required bool) *CustomAuthField
- type DateTimeField
- func (b *DateTimeField) Build() *sdkcore.AutoFormSchema
- func (b *DateTimeField) SetDefaultValue(defaultValue time.Time) *DateTimeField
- func (b *DateTimeField) SetDescription(desc string) *DateTimeField
- func (b *DateTimeField) SetDisabled(disabled bool) *DateTimeField
- func (b *DateTimeField) SetDisplayName(title string) *DateTimeField
- func (b *DateTimeField) SetHint(hint string) *DateTimeField
- func (b *DateTimeField) SetLabel(label string) *DateTimeField
- func (b *DateTimeField) SetMaximum(len time.Time) *DateTimeField
- func (b *DateTimeField) SetMinimum(len time.Time) *DateTimeField
- func (b *DateTimeField) SetPlaceholder(placeholder string) *DateTimeField
- func (b *DateTimeField) SetRequired(required bool) *DateTimeField
- type DefaultBaseComponentField
- func (b *DefaultBaseComponentField) Build() *sdkcore.AutoFormSchema
- func (b *DefaultBaseComponentField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *DefaultBaseComponentField
- func (b *DefaultBaseComponentField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *DefaultBaseComponentField
- func (b *DefaultBaseComponentField) SetDescription(desc string) *DefaultBaseComponentField
- func (b *DefaultBaseComponentField) SetDisabled(disabled bool) *DefaultBaseComponentField
- func (b *DefaultBaseComponentField) SetDisplayName(title string) *DefaultBaseComponentField
- func (b *DefaultBaseComponentField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *DefaultBaseComponentField
- func (b *DefaultBaseComponentField) SetRequired(required bool) *DefaultBaseComponentField
- type DynamicField
- func (b *DynamicField) Build() *sdkcore.AutoFormSchema
- func (b *DynamicField) SeMultiSelect(enable bool) *DynamicField
- func (b *DynamicField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *DynamicField
- func (b *DynamicField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *DynamicField
- func (b *DynamicField) SetDefaultValue(defaultValue interface{}) *DynamicField
- func (b *DynamicField) SetDependsOn(deps []string) *DynamicField
- func (b *DynamicField) SetDescription(desc string) *DynamicField
- func (b *DynamicField) SetDisabled(disabled bool) *DynamicField
- func (b *DynamicField) SetDisplayName(title string) *DynamicField
- func (b *DynamicField) SetDynamicOptions(fn *sdkcore.DynamicOptionsFn) *DynamicField
- func (b *DynamicField) SetHint(hint string) *DynamicField
- func (b *DynamicField) SetLabel(label string) *DynamicField
- func (b *DynamicField) SetMaxLength(len int) *DynamicField
- func (b *DynamicField) SetMinLength(len int) *DynamicField
- func (b *DynamicField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *DynamicField
- func (b *DynamicField) SetPlaceholder(placeholder string) *DynamicField
- func (b *DynamicField) SetRequired(required bool) *DynamicField
- type File
- type FileField
- func (b *FileField) Build() *sdkcore.AutoFormSchema
- func (b *FileField) SetDefaultValue(defaultValue interface{}) *FileField
- func (b *FileField) SetDescription(desc string) *FileField
- func (b *FileField) SetDisabled(disabled bool) *FileField
- func (b *FileField) SetDisplayName(title string) *FileField
- func (b *FileField) SetHint(hint string) *FileField
- func (b *FileField) SetLabel(label string) *FileField
- func (b *FileField) SetPlaceholder(placeholder string) *FileField
- func (b *FileField) SetRequired(required bool) *FileField
- type InputMapField
- func (b *InputMapField) Build() *sdkcore.AutoFormSchema
- func (b *InputMapField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *InputMapField
- func (b *InputMapField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *InputMapField
- func (b *InputMapField) SetDisabled(disabled bool) *InputMapField
- func (b *InputMapField) SetHint(hint string) *InputMapField
- func (b *InputMapField) SetLabel(label string) *InputMapField
- func (b *InputMapField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *InputMapField
- func (b *InputMapField) SetOrder(order []string) *InputMapField
- func (b *InputMapField) SetPlaceholder(placeholder string) *InputMapField
- func (b *InputMapField) SetProperties(properties map[string]*sdkcore.AutoFormSchema) *InputMapField
- func (b *InputMapField) SetRequired(required bool) *InputMapField
- type LongTextField
- type MarkdownField
- type NumberField
- func (b *NumberField) Build() *sdkcore.AutoFormSchema
- func (b *NumberField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *NumberField
- func (b *NumberField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *NumberField
- func (b *NumberField) SetDefaultValue(defaultValue interface{}) *NumberField
- func (b *NumberField) SetDescription(desc string) *NumberField
- func (b *NumberField) SetDisabled(disabled bool) *NumberField
- func (b *NumberField) SetDisplayName(title string) *NumberField
- func (b *NumberField) SetHint(hint string) *NumberField
- func (b *NumberField) SetLabel(label string) *NumberField
- func (b *NumberField) SetMaximum(len int) *NumberField
- func (b *NumberField) SetMinimum(len int) *NumberField
- func (b *NumberField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *NumberField
- func (b *NumberField) SetPlaceholder(placeholder string) *NumberField
- func (b *NumberField) SetRequired(required bool) *NumberField
- type OAuthField
- func (b *OAuthField) Build() *sdkcore.AutoFormSchema
- func (b *OAuthField) SetDescription(desc string) *OAuthField
- func (b *OAuthField) SetDisplayName(title string) *OAuthField
- func (b *OAuthField) SetExcludedQueryParams(params []string) *OAuthField
- func (b *OAuthField) SetExtraFields(fields map[string]*sdkcore.AutoFormSchema) *OAuthField
- func (b *OAuthField) SetHint(hint string) *OAuthField
- func (b *OAuthField) SetLabel(label string) *OAuthField
- func (b *OAuthField) SetPlaceholder(placeholder string) *OAuthField
- func (b *OAuthField) SetRequired(required bool) *OAuthField
- type ObjectField
- func (b *ObjectField) Build() *sdkcore.AutoFormSchema
- func (b *ObjectField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *ObjectField
- func (b *ObjectField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *ObjectField
- func (b *ObjectField) SetDefaultValue(defaultValue interface{}) *ObjectField
- func (b *ObjectField) SetDescription(desc string) *ObjectField
- func (b *ObjectField) SetDisabled(disabled bool) *ObjectField
- func (b *ObjectField) SetDisplayName(title string) *ObjectField
- func (b *ObjectField) SetHint(hint string) *ObjectField
- func (b *ObjectField) SetLabel(label string) *ObjectField
- func (b *ObjectField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *ObjectField
- func (b *ObjectField) SetOrder(order []string) *ObjectField
- func (b *ObjectField) SetPlaceholder(placeholder string) *ObjectField
- func (b *ObjectField) SetProperties(properties map[string]*sdkcore.AutoFormSchema) *ObjectField
- func (b *ObjectField) SetRequired(required bool) *ObjectField
- type SchemaBuilder
- func (b *SchemaBuilder) Build() *sdkcore.AutoFormSchema
- func (b *SchemaBuilder) WithAdditionalItems(additionalItems *sdkcore.AutoFormSchema) *SchemaBuilder
- func (b *SchemaBuilder) WithAllOf(allOf []*sdkcore.AutoFormSchema) *SchemaBuilder
- func (b *SchemaBuilder) WithAnyOf(anyOf []*sdkcore.AutoFormSchema) *SchemaBuilder
- func (b *SchemaBuilder) WithConst(constant interface{}) *SchemaBuilder
- func (b *SchemaBuilder) WithDefault(defaultValue interface{}) *SchemaBuilder
- func (b *SchemaBuilder) WithDependencies(dependencies map[string]interface{}) *SchemaBuilder
- func (b *SchemaBuilder) WithDescription(description string) *SchemaBuilder
- func (b *SchemaBuilder) WithEnum(enum []interface{}) *SchemaBuilder
- func (b *SchemaBuilder) WithExclusiveMaximum(max interface{}) *SchemaBuilder
- func (b *SchemaBuilder) WithExclusiveMinimum(min interface{}) *SchemaBuilder
- func (b *SchemaBuilder) WithFieldDisabled(disabled bool) *SchemaBuilder
- func (b *SchemaBuilder) WithFieldRequired(required bool) *SchemaBuilder
- func (b *SchemaBuilder) WithFieldType(fieldType sdkcore.AutoFormFieldType) *SchemaBuilder
- func (b *SchemaBuilder) WithFormat(format string) *SchemaBuilder
- func (b *SchemaBuilder) WithID(id string) *SchemaBuilder
- func (b *SchemaBuilder) WithItems(items *sdkcore.AutoFormSchema) *SchemaBuilder
- func (b *SchemaBuilder) WithMaxContains(maxContains *int) *SchemaBuilder
- func (b *SchemaBuilder) WithMaxLength(maxLength *int) *SchemaBuilder
- func (b *SchemaBuilder) WithMaximum(max interface{}) *SchemaBuilder
- func (b *SchemaBuilder) WithMinContains(minContains *int) *SchemaBuilder
- func (b *SchemaBuilder) WithMinLength(minLength *int) *SchemaBuilder
- func (b *SchemaBuilder) WithMinimum(min interface{}) *SchemaBuilder
- func (b *SchemaBuilder) WithNot(not *sdkcore.AutoFormSchema) *SchemaBuilder
- func (b *SchemaBuilder) WithOneOf(oneOf []*sdkcore.AutoFormSchema) *SchemaBuilder
- func (b *SchemaBuilder) WithOrder(order []string) *SchemaBuilder
- func (b *SchemaBuilder) WithPattern(id string) *SchemaBuilder
- func (b *SchemaBuilder) WithPatternProperties(patternProperties map[string]*sdkcore.AutoFormSchema) *SchemaBuilder
- func (b *SchemaBuilder) WithProperties(properties map[string]*sdkcore.AutoFormSchema) *SchemaBuilder
- func (b *SchemaBuilder) WithRequired(required []string) *SchemaBuilder
- func (b *SchemaBuilder) WithSchema(schema string) *SchemaBuilder
- func (b *SchemaBuilder) WithTitle(title string) *SchemaBuilder
- func (b *SchemaBuilder) WithType(schemaType sdkcore.AutoFormType) *SchemaBuilder
- func (b *SchemaBuilder) WithUniqueItems(uniqueItems bool) *SchemaBuilder
- type SelectField
- func (b *SelectField) Build() *sdkcore.AutoFormSchema
- func (b *SelectField) SeMultiSelect(enable bool) *SelectField
- func (b *SelectField) SetDefaultValue(defaultValue interface{}) *SelectField
- func (b *SelectField) SetDescription(desc string) *SelectField
- func (b *SelectField) SetDisabled(disabled bool) *SelectField
- func (b *SelectField) SetDisplayName(title string) *SelectField
- func (b *SelectField) SetHint(hint string) *SelectField
- func (b *SelectField) SetLabel(label string) *SelectField
- func (b *SelectField) SetOptions(schemas []*sdkcore.AutoFormSchema) *SelectField
- func (b *SelectField) SetPlaceholder(placeholder string) *SelectField
- func (b *SelectField) SetRequired(required bool) *SelectField
- func (b *SelectField) SetUnique(unique bool) *SelectField
- type ShortTextField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArrayField ¶
type ArrayField struct {
*BaseComponentField
}
func NewArrayField ¶
func NewArrayField() *ArrayField
func (*ArrayField) Build ¶
func (b *ArrayField) Build() *sdkcore.AutoFormSchema
func (*ArrayField) SetAllOf ¶
func (b *ArrayField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *ArrayField
func (*ArrayField) SetAnyOf ¶
func (b *ArrayField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *ArrayField
func (*ArrayField) SetDefaultValue ¶
func (b *ArrayField) SetDefaultValue(defaultValue interface{}) *ArrayField
func (*ArrayField) SetDescription ¶
func (b *ArrayField) SetDescription(desc string) *ArrayField
rest
func (*ArrayField) SetDisabled ¶
func (b *ArrayField) SetDisabled(disabled bool) *ArrayField
func (*ArrayField) SetDisplayName ¶
func (b *ArrayField) SetDisplayName(title string) *ArrayField
func (*ArrayField) SetHint ¶ added in v0.8.0
func (b *ArrayField) SetHint(hint string) *ArrayField
func (*ArrayField) SetItems ¶
func (b *ArrayField) SetItems(item *sdkcore.AutoFormSchema) *ArrayField
func (*ArrayField) SetLabel ¶ added in v0.8.0
func (b *ArrayField) SetLabel(label string) *ArrayField
func (*ArrayField) SetOneOf ¶
func (b *ArrayField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *ArrayField
func (*ArrayField) SetPlaceholder ¶ added in v0.8.0
func (b *ArrayField) SetPlaceholder(placeholder string) *ArrayField
func (*ArrayField) SetRequired ¶
func (b *ArrayField) SetRequired(required bool) *ArrayField
func (*ArrayField) SetUnique ¶
func (b *ArrayField) SetUnique(unique bool) *ArrayField
type Auth ¶ added in v0.8.0
type Auth struct{}
func (*Auth) NewBasicAuth ¶ added in v0.8.0
func (b *Auth) NewBasicAuth() *AuthSecretField
func (*Auth) NewCustomAuth ¶ added in v0.8.0
func (b *Auth) NewCustomAuth() *CustomAuthField
func (*Auth) NewOauth2Auth ¶ added in v0.8.0
func (b *Auth) NewOauth2Auth(authURL string, tokenURL *string, scopes []string) *OAuthField
func (*Auth) NewSecretAuth ¶ added in v0.8.0
func (b *Auth) NewSecretAuth() *AuthSecretField
type AuthBasicField ¶ added in v0.8.0
type AuthBasicField struct { *BaseComponentField // contains filtered or unexported fields }
AuthBasicField type is a composite structure for building basic authentication fields in a form schema.
func NewAuthBasicField ¶ added in v0.8.0
func NewAuthBasicField() *AuthBasicField
NewAuthBasicField initializes and returns a new AuthBasicField with default properties for basic authentication.
func (*AuthBasicField) Build ¶ added in v0.8.0
func (b *AuthBasicField) Build() *sdkcore.AutoFormSchema
Build constructs and returns the final AutoFormSchema for an AuthBasicField, setting its properties and order.
func (*AuthBasicField) SetDescription ¶ added in v0.8.0
func (b *AuthBasicField) SetDescription(desc string) *AuthBasicField
SetDescription sets the description for the AuthBasicField. Returns the updated AuthBasicField.
func (*AuthBasicField) SetPasswordHint ¶ added in v0.8.0
func (b *AuthBasicField) SetPasswordHint(hint string) *AuthBasicField
SetPasswordHint sets a hint for the password field and returns the AuthBasicField object for method chaining.
func (*AuthBasicField) SetPasswordLabel ¶ added in v0.8.0
func (b *AuthBasicField) SetPasswordLabel(label string) *AuthBasicField
SetPasswordLabel sets the label for the password field in the AuthBasicField and returns the updated AuthBasicField.
func (*AuthBasicField) SetPasswordPlaceholder ¶ added in v0.8.0
func (b *AuthBasicField) SetPasswordPlaceholder(placeholder string) *AuthBasicField
SetPasswordPlaceholder sets the placeholder text for the password field in the AuthBasicField component.
func (*AuthBasicField) SetUsernameHint ¶ added in v0.8.0
func (b *AuthBasicField) SetUsernameHint(hint string) *AuthBasicField
SetUsernameHint sets a hint for the username field and returns the updated AuthBasicField object.
func (*AuthBasicField) SetUsernameLabel ¶ added in v0.8.0
func (b *AuthBasicField) SetUsernameLabel(label string) *AuthBasicField
SetUsernameLabel sets the label for the username field in the authentication form.
func (*AuthBasicField) SetUsernamePlaceholder ¶ added in v0.8.0
func (b *AuthBasicField) SetUsernamePlaceholder(placeholder string) *AuthBasicField
SetUsernamePlaceholder sets the placeholder text for the username input field and returns the updated AuthBasicField instance.
type AuthSecretField ¶
type AuthSecretField struct { *BaseComponentField // contains filtered or unexported fields }
func NewAuthSecretField ¶
func NewAuthSecretField() *AuthSecretField
func (*AuthSecretField) Build ¶
func (b *AuthSecretField) Build() *sdkcore.AutoFormSchema
func (*AuthSecretField) SetDescription ¶
func (b *AuthSecretField) SetDescription(desc string) *AuthSecretField
func (*AuthSecretField) SetDisplayName ¶
func (b *AuthSecretField) SetDisplayName(title string) *AuthSecretField
func (*AuthSecretField) SetHint ¶ added in v0.8.0
func (b *AuthSecretField) SetHint(hint string) *AuthSecretField
func (*AuthSecretField) SetLabel ¶ added in v0.8.0
func (b *AuthSecretField) SetLabel(label string) *AuthSecretField
func (*AuthSecretField) SetPlaceholder ¶ added in v0.8.0
func (b *AuthSecretField) SetPlaceholder(placeholder string) *AuthSecretField
func (*AuthSecretField) WithKey ¶ added in v0.2.3
func (b *AuthSecretField) WithKey(field *sdkcore.AutoFormSchema) *AuthSecretField
type BaseComponentField ¶
type BaseComponentField struct { Required bool // contains filtered or unexported fields }
func NewBaseComponentField ¶
func NewBaseComponentField() *BaseComponentField
type BaseTextField ¶
type BaseTextField struct {
*BaseComponentField
}
BaseTextField is a type that represents a text field component in a form. It is a composition of BaseComponentField, and inherits its properties and methods. BaseTextField type has the following fields: - schema: AutoFormSchema - builder: *SchemaBuilder - Required: bool The methods available for BaseTextField type are: - Build(): AutoFormSchema - SetDescription(desc string) *SchemaBuilder - SetDisplayName(title string) *SchemaBuilder - SetRequired(required bool) *SchemaBuilder Example usage of BaseTextField: Create a new BaseTextField instance:
func newBaseTextField() *BaseTextField { c := &BaseTextField{ BaseComponentField: NewBaseComponentFieldBuilder(), } c.builder.WithType(String) return c }
Build the AutoFormSchema for BaseTextField:
func (b *BaseTextField) Build() AutoFormSchema { b.schema = b.builder.Build() return b.schema }
Set a default value for BaseTextField:
func (b *BaseTextField) SetDefaultValue(defaultValue string) *SchemaBuilder { return b.builder.WithDefault(defaultValue) }
Set the minimum length for BaseTextField:
func (b *BaseTextField) SetMinLength(len int) *SchemaBuilder { return b.builder.WithMinLength(&len) }
Set the maximum length for BaseTextField:
func (b *BaseTextField) SetMaxLength(len int) *SchemaBuilder { return b.builder.WithMaxLength(&len) }
BaseTextField can be extended by other types, such as ShortTextField, which embeds BaseTextField.
func (*BaseTextField) Build ¶
func (b *BaseTextField) Build() *sdkcore.AutoFormSchema
func (*BaseTextField) SetAllOf ¶
func (b *BaseTextField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *BaseTextField
func (*BaseTextField) SetAnyOf ¶
func (b *BaseTextField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *BaseTextField
func (*BaseTextField) SetDefaultValue ¶
func (b *BaseTextField) SetDefaultValue(defaultValue string) *BaseTextField
func (*BaseTextField) SetDescription ¶
func (b *BaseTextField) SetDescription(desc string) *BaseTextField
rest
func (*BaseTextField) SetDisabled ¶
func (b *BaseTextField) SetDisabled(disabled bool) *BaseTextField
func (*BaseTextField) SetDisplayName ¶
func (b *BaseTextField) SetDisplayName(title string) *BaseTextField
func (*BaseTextField) SetHint ¶ added in v0.8.0
func (b *BaseTextField) SetHint(hint string) *BaseTextField
func (*BaseTextField) SetLabel ¶ added in v0.8.0
func (b *BaseTextField) SetLabel(label string) *BaseTextField
func (*BaseTextField) SetMaxLength ¶
func (b *BaseTextField) SetMaxLength(len int) *BaseTextField
func (*BaseTextField) SetMinLength ¶
func (b *BaseTextField) SetMinLength(len int) *BaseTextField
func (*BaseTextField) SetOneOf ¶
func (b *BaseTextField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *BaseTextField
func (*BaseTextField) SetPlaceholder ¶ added in v0.8.0
func (b *BaseTextField) SetPlaceholder(placeholder string) *BaseTextField
func (*BaseTextField) SetRequired ¶
func (b *BaseTextField) SetRequired(required bool) *BaseTextField
type BooleanField ¶
type BooleanField struct {
*BaseComponentField
}
func NewBooleanField ¶
func NewBooleanField() *BooleanField
func (*BooleanField) Build ¶
func (b *BooleanField) Build() *sdkcore.AutoFormSchema
func (*BooleanField) SetDefaultValue ¶
func (b *BooleanField) SetDefaultValue(defaultValue bool) *BooleanField
func (*BooleanField) SetDescription ¶
func (b *BooleanField) SetDescription(desc string) *BooleanField
func (*BooleanField) SetDisabled ¶
func (b *BooleanField) SetDisabled(disabled bool) *BooleanField
func (*BooleanField) SetDisplayName ¶
func (b *BooleanField) SetDisplayName(title string) *BooleanField
func (*BooleanField) SetHint ¶ added in v0.8.0
func (b *BooleanField) SetHint(hint string) *BooleanField
func (*BooleanField) SetLabel ¶ added in v0.8.0
func (b *BooleanField) SetLabel(label string) *BooleanField
func (*BooleanField) SetPlaceholder ¶ added in v0.8.0
func (b *BooleanField) SetPlaceholder(placeholder string) *BooleanField
func (*BooleanField) SetRequired ¶
func (b *BooleanField) SetRequired(required bool) *BooleanField
type BranchField ¶
type BranchField struct {
*BaseComponentField
}
func NewBranchField ¶
func NewBranchField() *BranchField
func (*BranchField) Build ¶
func (b *BranchField) Build() *sdkcore.AutoFormSchema
func (*BranchField) SetAllOf ¶
func (b *BranchField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *BranchField
func (*BranchField) SetAnyOf ¶
func (b *BranchField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *BranchField
func (*BranchField) SetDefaultValue ¶
func (b *BranchField) SetDefaultValue(defaultValue interface{}) *BranchField
func (*BranchField) SetDescription ¶
func (b *BranchField) SetDescription(desc string) *BranchField
rest
func (*BranchField) SetDisabled ¶
func (b *BranchField) SetDisabled(disabled bool) *BranchField
func (*BranchField) SetDisplayName ¶
func (b *BranchField) SetDisplayName(title string) *BranchField
func (*BranchField) SetHint ¶ added in v0.8.0
func (b *BranchField) SetHint(hint string) *BranchField
func (*BranchField) SetItems ¶
func (b *BranchField) SetItems(item *sdkcore.AutoFormSchema) *BranchField
func (*BranchField) SetLabel ¶ added in v0.8.0
func (b *BranchField) SetLabel(label string) *BranchField
func (*BranchField) SetOneOf ¶
func (b *BranchField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *BranchField
func (*BranchField) SetPlaceholder ¶ added in v0.8.0
func (b *BranchField) SetPlaceholder(placeholder string) *BranchField
func (*BranchField) SetRequired ¶
func (b *BranchField) SetRequired(required bool) *BranchField
func (*BranchField) SetUnique ¶
func (b *BranchField) SetUnique(unique bool) *BranchField
type CheckboxField ¶
type CheckboxField struct {
*BaseComponentField
}
func NewCheckboxField ¶
func NewCheckboxField() *CheckboxField
func (*CheckboxField) Build ¶
func (b *CheckboxField) Build() *sdkcore.AutoFormSchema
func (*CheckboxField) SetDefaultValue ¶
func (b *CheckboxField) SetDefaultValue(defaultValue bool) *CheckboxField
func (*CheckboxField) SetDescription ¶
func (b *CheckboxField) SetDescription(desc string) *CheckboxField
func (*CheckboxField) SetDisabled ¶
func (b *CheckboxField) SetDisabled(disabled bool) *CheckboxField
func (*CheckboxField) SetDisplayName ¶
func (b *CheckboxField) SetDisplayName(title string) *CheckboxField
func (*CheckboxField) SetHint ¶ added in v0.8.0
func (b *CheckboxField) SetHint(hint string) *CheckboxField
func (*CheckboxField) SetLabel ¶ added in v0.8.0
func (b *CheckboxField) SetLabel(label string) *CheckboxField
func (*CheckboxField) SetPlaceholder ¶ added in v0.8.0
func (b *CheckboxField) SetPlaceholder(placeholder string) *CheckboxField
func (*CheckboxField) SetRequired ¶
func (b *CheckboxField) SetRequired(required bool) *CheckboxField
type CodeEditorField ¶
type CodeEditorField struct { *BaseComponentField // contains filtered or unexported fields }
func NewCodeEditorField ¶
func NewCodeEditorField(language sdkcore.CodeEditorLanguage) *CodeEditorField
func (*CodeEditorField) Build ¶
func (b *CodeEditorField) Build() *sdkcore.AutoFormSchema
func (*CodeEditorField) SetDefaultValue ¶
func (b *CodeEditorField) SetDefaultValue(defaultValue string) *CodeEditorField
func (*CodeEditorField) SetDescription ¶
func (b *CodeEditorField) SetDescription(desc string) *CodeEditorField
func (*CodeEditorField) SetDisabled ¶
func (b *CodeEditorField) SetDisabled(disabled bool) *CodeEditorField
func (*CodeEditorField) SetDisplayName ¶
func (b *CodeEditorField) SetDisplayName(title string) *CodeEditorField
func (*CodeEditorField) SetHint ¶ added in v0.8.0
func (b *CodeEditorField) SetHint(hint string) *CodeEditorField
func (*CodeEditorField) SetLabel ¶ added in v0.8.0
func (b *CodeEditorField) SetLabel(label string) *CodeEditorField
func (*CodeEditorField) SetLanguage ¶ added in v0.8.0
func (b *CodeEditorField) SetLanguage(language sdkcore.CodeEditorLanguage) *CodeEditorField
func (*CodeEditorField) SetPlaceholder ¶ added in v0.8.0
func (b *CodeEditorField) SetPlaceholder(placeholder string) *CodeEditorField
func (*CodeEditorField) SetRequired ¶
func (b *CodeEditorField) SetRequired(required bool) *CodeEditorField
type CustomAuthField ¶ added in v0.2.3
type CustomAuthField struct { *BaseComponentField // contains filtered or unexported fields }
func NewCustomAuthField ¶ added in v0.2.3
func NewCustomAuthField() *CustomAuthField
func (*CustomAuthField) Build ¶ added in v0.2.3
func (b *CustomAuthField) Build() *sdkcore.AutoFormSchema
func (*CustomAuthField) SetDescription ¶ added in v0.2.3
func (b *CustomAuthField) SetDescription(desc string) *CustomAuthField
func (*CustomAuthField) SetFields ¶ added in v0.2.3
func (b *CustomAuthField) SetFields(fields map[string]*sdkcore.AutoFormSchema) *CustomAuthField
func (*CustomAuthField) SetHint ¶ added in v0.8.0
func (b *CustomAuthField) SetHint(hint string) *CustomAuthField
func (*CustomAuthField) SetLabel ¶ added in v0.8.0
func (b *CustomAuthField) SetLabel(label string) *CustomAuthField
func (*CustomAuthField) SetPlaceholder ¶ added in v0.8.0
func (b *CustomAuthField) SetPlaceholder(placeholder string) *CustomAuthField
func (*CustomAuthField) SetRequired ¶ added in v0.2.3
func (b *CustomAuthField) SetRequired(required bool) *CustomAuthField
type DateTimeField ¶
type DateTimeField struct {
*BaseComponentField
}
func NewDateTimeField ¶
func NewDateTimeField() *DateTimeField
func (*DateTimeField) Build ¶
func (b *DateTimeField) Build() *sdkcore.AutoFormSchema
func (*DateTimeField) SetDefaultValue ¶
func (b *DateTimeField) SetDefaultValue(defaultValue time.Time) *DateTimeField
func (*DateTimeField) SetDescription ¶
func (b *DateTimeField) SetDescription(desc string) *DateTimeField
rest
func (*DateTimeField) SetDisabled ¶
func (b *DateTimeField) SetDisabled(disabled bool) *DateTimeField
func (*DateTimeField) SetDisplayName ¶
func (b *DateTimeField) SetDisplayName(title string) *DateTimeField
func (*DateTimeField) SetHint ¶ added in v0.8.0
func (b *DateTimeField) SetHint(hint string) *DateTimeField
func (*DateTimeField) SetLabel ¶ added in v0.8.0
func (b *DateTimeField) SetLabel(label string) *DateTimeField
func (*DateTimeField) SetMaximum ¶
func (b *DateTimeField) SetMaximum(len time.Time) *DateTimeField
func (*DateTimeField) SetMinimum ¶
func (b *DateTimeField) SetMinimum(len time.Time) *DateTimeField
func (*DateTimeField) SetPlaceholder ¶ added in v0.8.0
func (b *DateTimeField) SetPlaceholder(placeholder string) *DateTimeField
func (*DateTimeField) SetRequired ¶
func (b *DateTimeField) SetRequired(required bool) *DateTimeField
type DefaultBaseComponentField ¶
type DefaultBaseComponentField struct { Required bool // contains filtered or unexported fields }
func NewDefaultBaseComponentField ¶
func NewDefaultBaseComponentField() *DefaultBaseComponentField
func (*DefaultBaseComponentField) Build ¶
func (b *DefaultBaseComponentField) Build() *sdkcore.AutoFormSchema
func (*DefaultBaseComponentField) SetAllOf ¶
func (b *DefaultBaseComponentField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *DefaultBaseComponentField
func (*DefaultBaseComponentField) SetAnyOf ¶
func (b *DefaultBaseComponentField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *DefaultBaseComponentField
func (*DefaultBaseComponentField) SetDescription ¶
func (b *DefaultBaseComponentField) SetDescription(desc string) *DefaultBaseComponentField
func (*DefaultBaseComponentField) SetDisabled ¶
func (b *DefaultBaseComponentField) SetDisabled(disabled bool) *DefaultBaseComponentField
func (*DefaultBaseComponentField) SetDisplayName ¶
func (b *DefaultBaseComponentField) SetDisplayName(title string) *DefaultBaseComponentField
func (*DefaultBaseComponentField) SetOneOf ¶
func (b *DefaultBaseComponentField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *DefaultBaseComponentField
func (*DefaultBaseComponentField) SetRequired ¶
func (b *DefaultBaseComponentField) SetRequired(required bool) *DefaultBaseComponentField
type DynamicField ¶
type DynamicField struct { *BaseComponentField GetDynamicOptions *sdkcore.DynamicOptionsFn `json:"_,omitempty"` }
func NewDynamicField ¶
func NewDynamicField(schemaType sdkcore.AutoFormType) *DynamicField
func (*DynamicField) Build ¶
func (b *DynamicField) Build() *sdkcore.AutoFormSchema
func (*DynamicField) SeMultiSelect ¶ added in v0.8.0
func (b *DynamicField) SeMultiSelect(enable bool) *DynamicField
func (*DynamicField) SetAllOf ¶
func (b *DynamicField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *DynamicField
func (*DynamicField) SetAnyOf ¶
func (b *DynamicField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *DynamicField
func (*DynamicField) SetDefaultValue ¶
func (b *DynamicField) SetDefaultValue(defaultValue interface{}) *DynamicField
func (*DynamicField) SetDependsOn ¶
func (b *DynamicField) SetDependsOn(deps []string) *DynamicField
func (*DynamicField) SetDescription ¶
func (b *DynamicField) SetDescription(desc string) *DynamicField
rest
func (*DynamicField) SetDisabled ¶
func (b *DynamicField) SetDisabled(disabled bool) *DynamicField
func (*DynamicField) SetDisplayName ¶
func (b *DynamicField) SetDisplayName(title string) *DynamicField
func (*DynamicField) SetDynamicOptions ¶
func (b *DynamicField) SetDynamicOptions(fn *sdkcore.DynamicOptionsFn) *DynamicField
func (*DynamicField) SetHint ¶ added in v0.8.0
func (b *DynamicField) SetHint(hint string) *DynamicField
func (*DynamicField) SetLabel ¶ added in v0.8.0
func (b *DynamicField) SetLabel(label string) *DynamicField
func (*DynamicField) SetMaxLength ¶
func (b *DynamicField) SetMaxLength(len int) *DynamicField
func (*DynamicField) SetMinLength ¶
func (b *DynamicField) SetMinLength(len int) *DynamicField
func (*DynamicField) SetOneOf ¶
func (b *DynamicField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *DynamicField
func (*DynamicField) SetPlaceholder ¶ added in v0.8.0
func (b *DynamicField) SetPlaceholder(placeholder string) *DynamicField
func (*DynamicField) SetRequired ¶
func (b *DynamicField) SetRequired(required bool) *DynamicField
type File ¶
type File struct { // FileExtension: Output only. The final component of // `fullFileExtension`. This is only available for files with binary // content in Google Drive. Extension string `json:"extension,omitempty"` // FileExtension: Output only. The final component of // `fullFileExtension`. This is only available for files with binary // content in Google Drive. Mime string `json:"mime,omitempty"` // Name: The name of the file. This is not necessarily unique within a // folder. Note that for immutable items such as the top level folders // of shared drives, My Drive root folder, and Application Data folder // the name is constant. Name string `json:"name,omitempty"` // Size: Output only. Size in bytes of blobs and first party editor // files. Won't be populated for files that have no size, like shortcuts // and folders. Size int64 `json:"size,omitempty,string"` Data io.Reader `json:"data"` }
type FileField ¶
type FileField struct {
*BaseComponentField
}
func NewFileField ¶
func NewFileField() *FileField
func (*FileField) Build ¶
func (b *FileField) Build() *sdkcore.AutoFormSchema
func (*FileField) SetDefaultValue ¶
func (*FileField) SetDescription ¶
func (*FileField) SetDisabled ¶
func (*FileField) SetDisplayName ¶
func (*FileField) SetPlaceholder ¶ added in v0.8.0
func (*FileField) SetRequired ¶
type InputMapField ¶
type InputMapField struct {
*BaseComponentField
}
func NewInputMapField ¶
func NewInputMapField() *InputMapField
func (*InputMapField) Build ¶
func (b *InputMapField) Build() *sdkcore.AutoFormSchema
func (*InputMapField) SetAllOf ¶
func (b *InputMapField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *InputMapField
func (*InputMapField) SetAnyOf ¶
func (b *InputMapField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *InputMapField
func (*InputMapField) SetDisabled ¶
func (b *InputMapField) SetDisabled(disabled bool) *InputMapField
func (*InputMapField) SetHint ¶ added in v0.8.0
func (b *InputMapField) SetHint(hint string) *InputMapField
func (*InputMapField) SetLabel ¶ added in v0.8.0
func (b *InputMapField) SetLabel(label string) *InputMapField
func (*InputMapField) SetOneOf ¶
func (b *InputMapField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *InputMapField
func (*InputMapField) SetOrder ¶
func (b *InputMapField) SetOrder(order []string) *InputMapField
func (*InputMapField) SetPlaceholder ¶ added in v0.8.0
func (b *InputMapField) SetPlaceholder(placeholder string) *InputMapField
func (*InputMapField) SetProperties ¶
func (b *InputMapField) SetProperties(properties map[string]*sdkcore.AutoFormSchema) *InputMapField
func (*InputMapField) SetRequired ¶
func (b *InputMapField) SetRequired(required bool) *InputMapField
type LongTextField ¶
type LongTextField struct {
*BaseTextField
}
LongTextField is a type that represents a long text field component in a form. It is an extension of BaseTextField, inheriting its properties and methods. LongTextField type does not have any additional fields or methods compared to BaseTextField.
func NewLongTextField ¶
func NewLongTextField() *LongTextField
NewLongTextField creates a new instance of LongTextField. It initializes the BaseTextField using the newBaseTextField function and sets the AutoFormFieldType to LongTextType using the builder
type MarkdownField ¶
type MarkdownField struct {
*BaseTextField
}
func NewMarkdownField ¶
func NewMarkdownField() *MarkdownField
func (*MarkdownField) SetHint ¶ added in v0.8.0
func (b *MarkdownField) SetHint(hint string) *MarkdownField
func (*MarkdownField) SetLabel ¶ added in v0.8.0
func (b *MarkdownField) SetLabel(label string) *MarkdownField
func (*MarkdownField) SetPlaceholder ¶ added in v0.8.0
func (b *MarkdownField) SetPlaceholder(placeholder string) *MarkdownField
type NumberField ¶
type NumberField struct {
*BaseComponentField
}
func NewNumberField ¶
func NewNumberField() *NumberField
func (*NumberField) Build ¶
func (b *NumberField) Build() *sdkcore.AutoFormSchema
func (*NumberField) SetAllOf ¶
func (b *NumberField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *NumberField
func (*NumberField) SetAnyOf ¶
func (b *NumberField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *NumberField
func (*NumberField) SetDefaultValue ¶
func (b *NumberField) SetDefaultValue(defaultValue interface{}) *NumberField
func (*NumberField) SetDescription ¶
func (b *NumberField) SetDescription(desc string) *NumberField
rest
func (*NumberField) SetDisabled ¶
func (b *NumberField) SetDisabled(disabled bool) *NumberField
func (*NumberField) SetDisplayName ¶
func (b *NumberField) SetDisplayName(title string) *NumberField
func (*NumberField) SetHint ¶ added in v0.8.0
func (b *NumberField) SetHint(hint string) *NumberField
func (*NumberField) SetLabel ¶ added in v0.8.0
func (b *NumberField) SetLabel(label string) *NumberField
func (*NumberField) SetMaximum ¶
func (b *NumberField) SetMaximum(len int) *NumberField
func (*NumberField) SetMinimum ¶
func (b *NumberField) SetMinimum(len int) *NumberField
func (*NumberField) SetOneOf ¶
func (b *NumberField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *NumberField
func (*NumberField) SetPlaceholder ¶ added in v0.8.0
func (b *NumberField) SetPlaceholder(placeholder string) *NumberField
func (*NumberField) SetRequired ¶
func (b *NumberField) SetRequired(required bool) *NumberField
type OAuthField ¶
type OAuthField struct { *BaseComponentField // contains filtered or unexported fields }
func NewOAuthField ¶
func NewOAuthField(authURL string, tokenURL *string, scopes []string) *OAuthField
func (*OAuthField) Build ¶
func (b *OAuthField) Build() *sdkcore.AutoFormSchema
func (*OAuthField) SetDescription ¶
func (b *OAuthField) SetDescription(desc string) *OAuthField
func (*OAuthField) SetDisplayName ¶
func (b *OAuthField) SetDisplayName(title string) *OAuthField
func (*OAuthField) SetExcludedQueryParams ¶ added in v0.8.0
func (b *OAuthField) SetExcludedQueryParams(params []string) *OAuthField
func (*OAuthField) SetExtraFields ¶ added in v0.2.3
func (b *OAuthField) SetExtraFields(fields map[string]*sdkcore.AutoFormSchema) *OAuthField
func (*OAuthField) SetHint ¶ added in v0.8.0
func (b *OAuthField) SetHint(hint string) *OAuthField
func (*OAuthField) SetLabel ¶ added in v0.8.0
func (b *OAuthField) SetLabel(label string) *OAuthField
func (*OAuthField) SetPlaceholder ¶ added in v0.8.0
func (b *OAuthField) SetPlaceholder(placeholder string) *OAuthField
func (*OAuthField) SetRequired ¶
func (b *OAuthField) SetRequired(required bool) *OAuthField
type ObjectField ¶
type ObjectField struct {
*BaseComponentField
}
func NewObjectField ¶
func NewObjectField() *ObjectField
func (*ObjectField) Build ¶
func (b *ObjectField) Build() *sdkcore.AutoFormSchema
func (*ObjectField) SetAllOf ¶
func (b *ObjectField) SetAllOf(schemas []*sdkcore.AutoFormSchema) *ObjectField
func (*ObjectField) SetAnyOf ¶
func (b *ObjectField) SetAnyOf(schemas []*sdkcore.AutoFormSchema) *ObjectField
func (*ObjectField) SetDefaultValue ¶
func (b *ObjectField) SetDefaultValue(defaultValue interface{}) *ObjectField
func (*ObjectField) SetDescription ¶
func (b *ObjectField) SetDescription(desc string) *ObjectField
func (*ObjectField) SetDisabled ¶
func (b *ObjectField) SetDisabled(disabled bool) *ObjectField
func (*ObjectField) SetDisplayName ¶
func (b *ObjectField) SetDisplayName(title string) *ObjectField
func (*ObjectField) SetHint ¶ added in v0.8.0
func (b *ObjectField) SetHint(hint string) *ObjectField
func (*ObjectField) SetLabel ¶ added in v0.8.0
func (b *ObjectField) SetLabel(label string) *ObjectField
func (*ObjectField) SetOneOf ¶
func (b *ObjectField) SetOneOf(schemas []*sdkcore.AutoFormSchema) *ObjectField
func (*ObjectField) SetPlaceholder ¶ added in v0.8.0
func (b *ObjectField) SetPlaceholder(placeholder string) *ObjectField
func (*ObjectField) SetProperties ¶
func (b *ObjectField) SetProperties(properties map[string]*sdkcore.AutoFormSchema) *ObjectField
func (*ObjectField) SetRequired ¶
func (b *ObjectField) SetRequired(required bool) *ObjectField
type SchemaBuilder ¶
type SchemaBuilder struct {
// contains filtered or unexported fields
}
func NewSchemaBuilder ¶
func NewSchemaBuilder() *SchemaBuilder
func (*SchemaBuilder) Build ¶
func (b *SchemaBuilder) Build() *sdkcore.AutoFormSchema
func (*SchemaBuilder) WithAdditionalItems ¶
func (b *SchemaBuilder) WithAdditionalItems(additionalItems *sdkcore.AutoFormSchema) *SchemaBuilder
func (*SchemaBuilder) WithAllOf ¶
func (b *SchemaBuilder) WithAllOf(allOf []*sdkcore.AutoFormSchema) *SchemaBuilder
func (*SchemaBuilder) WithAnyOf ¶
func (b *SchemaBuilder) WithAnyOf(anyOf []*sdkcore.AutoFormSchema) *SchemaBuilder
func (*SchemaBuilder) WithConst ¶
func (b *SchemaBuilder) WithConst(constant interface{}) *SchemaBuilder
func (*SchemaBuilder) WithDefault ¶
func (b *SchemaBuilder) WithDefault(defaultValue interface{}) *SchemaBuilder
func (*SchemaBuilder) WithDependencies ¶
func (b *SchemaBuilder) WithDependencies(dependencies map[string]interface{}) *SchemaBuilder
func (*SchemaBuilder) WithDescription ¶
func (b *SchemaBuilder) WithDescription(description string) *SchemaBuilder
func (*SchemaBuilder) WithEnum ¶
func (b *SchemaBuilder) WithEnum(enum []interface{}) *SchemaBuilder
func (*SchemaBuilder) WithExclusiveMaximum ¶
func (b *SchemaBuilder) WithExclusiveMaximum(max interface{}) *SchemaBuilder
func (*SchemaBuilder) WithExclusiveMinimum ¶
func (b *SchemaBuilder) WithExclusiveMinimum(min interface{}) *SchemaBuilder
func (*SchemaBuilder) WithFieldDisabled ¶ added in v0.8.0
func (b *SchemaBuilder) WithFieldDisabled(disabled bool) *SchemaBuilder
func (*SchemaBuilder) WithFieldRequired ¶
func (b *SchemaBuilder) WithFieldRequired(required bool) *SchemaBuilder
func (*SchemaBuilder) WithFieldType ¶
func (b *SchemaBuilder) WithFieldType(fieldType sdkcore.AutoFormFieldType) *SchemaBuilder
func (*SchemaBuilder) WithFormat ¶
func (b *SchemaBuilder) WithFormat(format string) *SchemaBuilder
func (*SchemaBuilder) WithID ¶
func (b *SchemaBuilder) WithID(id string) *SchemaBuilder
func (*SchemaBuilder) WithItems ¶
func (b *SchemaBuilder) WithItems(items *sdkcore.AutoFormSchema) *SchemaBuilder
func (*SchemaBuilder) WithMaxContains ¶
func (b *SchemaBuilder) WithMaxContains(maxContains *int) *SchemaBuilder
func (*SchemaBuilder) WithMaxLength ¶
func (b *SchemaBuilder) WithMaxLength(maxLength *int) *SchemaBuilder
func (*SchemaBuilder) WithMaximum ¶
func (b *SchemaBuilder) WithMaximum(max interface{}) *SchemaBuilder
func (*SchemaBuilder) WithMinContains ¶
func (b *SchemaBuilder) WithMinContains(minContains *int) *SchemaBuilder
func (*SchemaBuilder) WithMinLength ¶
func (b *SchemaBuilder) WithMinLength(minLength *int) *SchemaBuilder
func (*SchemaBuilder) WithMinimum ¶
func (b *SchemaBuilder) WithMinimum(min interface{}) *SchemaBuilder
func (*SchemaBuilder) WithNot ¶
func (b *SchemaBuilder) WithNot(not *sdkcore.AutoFormSchema) *SchemaBuilder
func (*SchemaBuilder) WithOneOf ¶
func (b *SchemaBuilder) WithOneOf(oneOf []*sdkcore.AutoFormSchema) *SchemaBuilder
func (*SchemaBuilder) WithOrder ¶
func (b *SchemaBuilder) WithOrder(order []string) *SchemaBuilder
func (*SchemaBuilder) WithPattern ¶
func (b *SchemaBuilder) WithPattern(id string) *SchemaBuilder
func (*SchemaBuilder) WithPatternProperties ¶
func (b *SchemaBuilder) WithPatternProperties(patternProperties map[string]*sdkcore.AutoFormSchema) *SchemaBuilder
func (*SchemaBuilder) WithProperties ¶
func (b *SchemaBuilder) WithProperties(properties map[string]*sdkcore.AutoFormSchema) *SchemaBuilder
func (*SchemaBuilder) WithRequired ¶
func (b *SchemaBuilder) WithRequired(required []string) *SchemaBuilder
func (*SchemaBuilder) WithSchema ¶
func (b *SchemaBuilder) WithSchema(schema string) *SchemaBuilder
func (*SchemaBuilder) WithTitle ¶
func (b *SchemaBuilder) WithTitle(title string) *SchemaBuilder
func (*SchemaBuilder) WithType ¶
func (b *SchemaBuilder) WithType(schemaType sdkcore.AutoFormType) *SchemaBuilder
func (*SchemaBuilder) WithUniqueItems ¶
func (b *SchemaBuilder) WithUniqueItems(uniqueItems bool) *SchemaBuilder
type SelectField ¶
type SelectField struct {
*BaseComponentField
}
func NewSelectField ¶
func NewSelectField() *SelectField
func (*SelectField) Build ¶
func (b *SelectField) Build() *sdkcore.AutoFormSchema
func (*SelectField) SeMultiSelect ¶ added in v0.8.0
func (b *SelectField) SeMultiSelect(enable bool) *SelectField
func (*SelectField) SetDefaultValue ¶
func (b *SelectField) SetDefaultValue(defaultValue interface{}) *SelectField
func (*SelectField) SetDescription ¶
func (b *SelectField) SetDescription(desc string) *SelectField
rest
func (*SelectField) SetDisabled ¶
func (b *SelectField) SetDisabled(disabled bool) *SelectField
func (*SelectField) SetDisplayName ¶
func (b *SelectField) SetDisplayName(title string) *SelectField
func (*SelectField) SetHint ¶ added in v0.8.0
func (b *SelectField) SetHint(hint string) *SelectField
func (*SelectField) SetLabel ¶ added in v0.8.0
func (b *SelectField) SetLabel(label string) *SelectField
func (*SelectField) SetOptions ¶
func (b *SelectField) SetOptions(schemas []*sdkcore.AutoFormSchema) *SelectField
func (*SelectField) SetPlaceholder ¶ added in v0.8.0
func (b *SelectField) SetPlaceholder(placeholder string) *SelectField
func (*SelectField) SetRequired ¶
func (b *SelectField) SetRequired(required bool) *SelectField
func (*SelectField) SetUnique ¶
func (b *SelectField) SetUnique(unique bool) *SelectField
type ShortTextField ¶
type ShortTextField struct {
*BaseTextField
}
ShortTextField is a type that represents a short text field. It inherits from BaseTextField.
func NewShortTextField ¶
func NewShortTextField() *ShortTextField
NewShortTextField creates a new instance of ShortTextField. It initializes the BaseTextField using the newBaseTextField function and sets the AutoFormFieldType to ShortTextType using the builder.
Source Files ¶
- autoform.go
- builder.go
- components.go
- field_array.go
- field_auth.go
- field_basic_auth.go
- field_boolean.go
- field_branch.go
- field_checkbox.go
- field_code_editor.go
- field_custom_auth.go
- field_datetime.go
- field_dynamic.go
- field_file.go
- field_input_object.go
- field_markdown.go
- field_number.go
- field_oauth.go
- field_object.go
- field_secret.go
- field_select.go
- field_text.go