Documentation
¶
Index ¶
- type Action
- type AddExceptionObjectInput
- type CreateExceptionBehaviorInput
- type DisplayObject
- type DisplayObjects
- type ExceptionBehavior
- type ExceptionObject
- type ExceptionObjectAction
- type ExceptionObjectActionUpdate
- type ExceptionObjectActionsUpdate
- type ExceptionObjectInput
- type ExceptionObjectInputs
- type ExceptionsObjects
- type Match
- type SchemaExceptionObject
- type SchemaMatchExpression
- type UpdateExceptionBehaviorInput
- type UpdateExceptionObjectActionInput
- type UpdateExceptionsObjectInputs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddExceptionObjectInput ¶
type CreateExceptionBehaviorInput ¶
type CreateExceptionBehaviorInput struct {
Name string `json:"name,omitempty"`
Visibility string `json:"visibility,omitempty"`
Exceptions ExceptionObjectInputs `json:"exceptions,omitempty"`
}
CreateExceptionBehaviorInput represents the api input for creating an Exception behavior object
type DisplayObject ¶ added in v1.1.3
type DisplayObjects ¶ added in v1.1.3
type DisplayObjects []DisplayObject
type ExceptionBehavior ¶
type ExceptionBehavior struct {
ID string `json:"id"`
Name string `json:"name"`
Visibility string `json:"visibility"`
Exceptions ExceptionsObjects `json:"exceptions"`
}
ExceptionBehavior represents an exception behavior object as it is returned from the API
type ExceptionObject ¶
type ExceptionObject struct {
ID string `json:"id"`
Match string `json:"match"`
Actions []ExceptionObjectAction `json:"actions"`
Comment string `json:"comment,omitempty"`
}
func (ExceptionObject) ToSchema ¶
func (exception ExceptionObject) ToSchema() SchemaExceptionObject
type ExceptionObjectAction ¶
type ExceptionObjectActionUpdate ¶ added in v1.1.1
type ExceptionObjectActionUpdate struct {
ID string `json:"id,omitempty"`
Match string `json:"match,omitempty"`
AddActions []string `json:"addActions,omitempty"`
RemoveActions []string `json:"removeActions,omitempty"`
UpdateActions UpdateExceptionsObjectInputs `json:"updateActions,omitempty"`
Comment string `json:"comment,omitempty"`
}
type ExceptionObjectActionsUpdate ¶ added in v1.1.1
type ExceptionObjectActionsUpdate []ExceptionObjectActionUpdate
type ExceptionObjectInput ¶
type ExceptionObjectInputs ¶ added in v1.1.1
type ExceptionObjectInputs []ExceptionObjectInput
type ExceptionsObjects ¶
type ExceptionsObjects []ExceptionObject
func (ExceptionsObjects) ToSchema ¶
func (exceptions ExceptionsObjects) ToSchema() []SchemaExceptionObject
type SchemaExceptionObject ¶
type SchemaExceptionObject struct {
ID string `json:"id,omitempty"`
Match []SchemaMatchExpression `json:"match"`
Action string `json:"action"`
ActionID string `json:"action_id,omitempty"`
Comment string `json:"comment,omitempty"`
}
type SchemaMatchExpression ¶
type SchemaMatchExpression struct {
Operator string `json:"operator,omitempty"`
Operands []SchemaMatchExpression `json:"operand,omitempty"`
Key string `json:"key,omitempty"`
Value []string `json:"value,omitempty"`
}
func MatchToSchema ¶
func MatchToSchema(match Match) SchemaMatchExpression
type UpdateExceptionBehaviorInput ¶
type UpdateExceptionBehaviorInput struct {
Name string `json:"name,omitempty"`
Visibility string `json:"visibility,omitempty"`
AddExceptions []AddExceptionObjectInput `json:"addExceptions,omitempty"`
RemoveExceptions []string `json:"removeExceptions,omitempty"`
UpdateExceptions ExceptionObjectActionsUpdate `json:"updateExceptions,omitempty"`
}
type UpdateExceptionObjectActionInput ¶ added in v1.1.1
type UpdateExceptionsObjectInputs ¶ added in v1.1.1
type UpdateExceptionsObjectInputs []UpdateExceptionObjectActionInput
Click to show internal directories.
Click to hide internal directories.