externalwebservice

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContributionTypeWithOverrides = struct {
	Originalvalue  ContributionTypeWithOverride
	Overridevalue  ContributionTypeWithOverride
	Transformvalue ContributionTypeWithOverride
}{
	"OriginalValue",
	"OverrideValue",
	"TransformValue",
}
View Source
var FrameworkTypes = struct {
	Axis       FrameworkType
	Cxf        FrameworkType
	Hessian    FrameworkType
	JaxWsRi    FrameworkType
	Jboss      FrameworkType
	Jersey     FrameworkType
	Progress   FrameworkType
	Resteasy   FrameworkType
	Restlet    FrameworkType
	Spring     FrameworkType
	Tibco      FrameworkType
	Weblogic   FrameworkType
	Webmethods FrameworkType
	Websphere  FrameworkType
	Wink       FrameworkType
}{
	"AXIS",
	"CXF",
	"HESSIAN",
	"JAX_WS_RI",
	"JBOSS",
	"JERSEY",
	"PROGRESS",
	"RESTEASY",
	"RESTLET",
	"SPRING",
	"TIBCO",
	"WEBLOGIC",
	"WEBMETHODS",
	"WEBSPHERE",
	"WINK",
}
View Source
var TransformationTypes = struct {
	After             TransformationType
	Before            TransformationType
	Between           TransformationType
	RemoveCreditCards TransformationType
	RemoveIbans       TransformationType
	RemoveIps         TransformationType
	RemoveNumbers     TransformationType
	ReplaceBetween    TransformationType
	SplitSelect       TransformationType
	TakeSegments      TransformationType
}{
	"AFTER",
	"BEFORE",
	"BETWEEN",
	"REMOVE_CREDIT_CARDS",
	"REMOVE_IBANS",
	"REMOVE_IPS",
	"REMOVE_NUMBERS",
	"REPLACE_BETWEEN",
	"SPLIT_SELECT",
	"TAKE_SEGMENTS",
}

Functions

This section is empty.

Types

type Condition

type Condition struct {
	Attribute            string          `json:"attribute"`             // Take the value of this attribute
	CompareOperationType string          `json:"compareOperationType"`  // Apply this operation
	Framework            []FrameworkType `json:"framework,omitempty"`   // Technology
	IgnoreCase           *bool           `json:"ignoreCase,omitempty"`  // Ignore case sensitivity for texts.
	IntValue             *int            `json:"intValue,omitempty"`    // Value
	IntValues            []int           `json:"intValues,omitempty"`   // Values
	IpRangeFrom          *string         `json:"ipRangeFrom,omitempty"` // From
	IpRangeTo            *string         `json:"ipRangeTo,omitempty"`   // To
	TagValues            []string        `json:"tagValues,omitempty"`   // If multiple values are specified, at least one of them must match for the condition to match
	TextValues           []string        `json:"textValues,omitempty"`  // If multiple values are specified, at least one of them must match for the condition to match
}

func (*Condition) MarshalHCL

func (me *Condition) MarshalHCL(properties hcl.Properties) error

func (*Condition) Schema

func (me *Condition) Schema() map[string]*schema.Schema

func (*Condition) UnmarshalHCL

func (me *Condition) UnmarshalHCL(decoder hcl.Decoder) error

type Conditions

type Conditions []*Condition

func (Conditions) MarshalHCL

func (me Conditions) MarshalHCL(properties hcl.Properties) error

func (*Conditions) Schema

func (me *Conditions) Schema() map[string]*schema.Schema

func (*Conditions) UnmarshalHCL

func (me *Conditions) UnmarshalHCL(decoder hcl.Decoder) error

type ContributionTypeWithOverride

type ContributionTypeWithOverride string

type FrameworkType

type FrameworkType string

type IdContributorsType

type IdContributorsType struct {
	DetectAsWebRequestService bool                  `json:"detectAsWebRequestService"`  // Detect the matching requests as web request services instead of web services.\n\nThis prevents detecting of matching requests as opaque web services. An opaque web request service is created instead. If you need to further modify the resulting web request service, you need to create a separate [Opaque/external web request rule](builtin:service-detection.full-web-request).
	PortForServiceID          *bool                 `json:"portForServiceId,omitempty"` // Let the Port contribute to the Service Id
	UrlPath                   *ServiceIdContributor `json:"urlPath,omitempty"`          // URL path
}

func (*IdContributorsType) MarshalHCL

func (me *IdContributorsType) MarshalHCL(properties hcl.Properties) error

func (*IdContributorsType) Schema

func (me *IdContributorsType) Schema() map[string]*schema.Schema

func (*IdContributorsType) UnmarshalHCL

func (me *IdContributorsType) UnmarshalHCL(decoder hcl.Decoder) error

type ServiceIdContributor

type ServiceIdContributor struct {
	EnableIdContributor  bool               `json:"enableIdContributor"` // Transform this value before letting it contribute to the Service Id
	ServiceIdContributor *TransformationSet `json:"serviceIdContributor,omitempty"`
}

func (*ServiceIdContributor) MarshalHCL

func (me *ServiceIdContributor) MarshalHCL(properties hcl.Properties) error

func (*ServiceIdContributor) Schema

func (me *ServiceIdContributor) Schema() map[string]*schema.Schema

func (*ServiceIdContributor) UnmarshalHCL

func (me *ServiceIdContributor) UnmarshalHCL(decoder hcl.Decoder) error

type Settings

type Settings struct {
	Conditions      Conditions          `json:"conditions,omitempty"`      // A list of conditions necessary for the rule to take effect. If multiple conditions are specified, they **all** must match a Request for the rule to apply. Conditions evaluate against attributes, but do not modify them.
	Description     *string             `json:"description,omitempty"`     // Description
	Enabled         bool                `json:"enabled"`                   // This setting is enabled (`true`) or disabled (`false`)
	IdContributors  *IdContributorsType `json:"idContributors"`            // Contributors to the Service Identifier calculation. URL path is always applied as an Id Contributor. It is possible to exclude Port from contributing by toggling the switch off.
	ManagementZones []string            `json:"managementZones,omitempty"` // Define a management zone filter for this service detection rule.
	Name            string              `json:"name"`                      // Rule name
}

func (*Settings) MarshalHCL

func (me *Settings) MarshalHCL(properties hcl.Properties) error

func (*Settings) Schema

func (me *Settings) Schema() map[string]*schema.Schema

func (*Settings) UnmarshalHCL

func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error

type Transformation

type Transformation struct {
	IncludeHexNumbers  *bool              `json:"includeHexNumbers,omitempty"` // include hexadecimal numbers
	MinDigitCount      *int               `json:"minDigitCount,omitempty"`     // min digit count
	Prefix             *string            `json:"prefix,omitempty"`
	ReplacementValue   *string            `json:"replacementValue,omitempty"` // replacement
	SegmentCount       *int               `json:"segmentCount,omitempty"`     // How many segments should be taken.
	SelectIndex        *int               `json:"selectIndex,omitempty"`      // select index
	SplitDelimiter     *string            `json:"splitDelimiter,omitempty"`   // split by
	Suffix             *string            `json:"suffix,omitempty"`
	TakeFromEnd        *bool              `json:"takeFromEnd,omitempty"` // take from end
	TransformationType TransformationType `json:"transformationType"`    // Possible Values: `AFTER`, `BEFORE`, `BETWEEN`, `REMOVE_CREDIT_CARDS`, `REMOVE_IBANS`, `REMOVE_IPS`, `REMOVE_NUMBERS`, `REPLACE_BETWEEN`, `SPLIT_SELECT`, `TAKE_SEGMENTS`
}

func (*Transformation) MarshalHCL

func (me *Transformation) MarshalHCL(properties hcl.Properties) error

func (*Transformation) Schema

func (me *Transformation) Schema() map[string]*schema.Schema

func (*Transformation) UnmarshalHCL

func (me *Transformation) UnmarshalHCL(decoder hcl.Decoder) error

type TransformationSet

type TransformationSet struct {
	ContributionType ContributionTypeWithOverride `json:"contributionType"`          // Possible Values: `OriginalValue`, `OverrideValue`, `TransformValue`
	Transformations  Transformations              `json:"transformations,omitempty"` // Choose how the value will be transformed before contributing to the Service Id. All of the Transformations are always applied. Transformations are applied in the order they are specified, and the output of the previous transformation is the input for the next one. The resulting value contributes to the Service Id and can be found on the Service screen under **Properties and tags**.
	ValueOverride    *ValueOverride               `json:"valueOverride,omitempty"`   // The value to be used instead of the detected value.
}

func (*TransformationSet) MarshalHCL

func (me *TransformationSet) MarshalHCL(properties hcl.Properties) error

func (*TransformationSet) Schema

func (me *TransformationSet) Schema() map[string]*schema.Schema

func (*TransformationSet) UnmarshalHCL

func (me *TransformationSet) UnmarshalHCL(decoder hcl.Decoder) error

type TransformationType

type TransformationType string

type Transformations

type Transformations []*Transformation

func (Transformations) MarshalHCL

func (me Transformations) MarshalHCL(properties hcl.Properties) error

func (*Transformations) Schema

func (me *Transformations) Schema() map[string]*schema.Schema

func (*Transformations) UnmarshalHCL

func (me *Transformations) UnmarshalHCL(decoder hcl.Decoder) error

type ValueOverride

type ValueOverride struct {
	Value string `json:"value"`
}

func (*ValueOverride) MarshalHCL

func (me *ValueOverride) MarshalHCL(properties hcl.Properties) error

func (*ValueOverride) Schema

func (me *ValueOverride) Schema() map[string]*schema.Schema

func (*ValueOverride) UnmarshalHCL

func (me *ValueOverride) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

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