Documentation
¶
Index ¶
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 []ExceptionObjectInput `json:"exceptions,omitempty"`
}
CreateExceptionBehaviorInput represents the api input for creating an Exception behavior object
type ExceptionBehavior ¶
type ExceptionBehavior struct {
ID string `json:"id"`
Name string `json:"name"`
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 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"`
AddExceptions []AddExceptionObjectInput `json:"addExceptions,omitempty"`
RemoveExceptions []string `json:"removeExceptions,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.