Documentation
¶
Index ¶
- func CreateExceptionBehaviorInputFromResourceData(d *schema.ResourceData) (models.CreateExceptionBehaviorInput, error)
- func DeleteExceptionBehavior(c *api.Client, id string) (bool, error)
- func ExceptionsDiff(old, new []SchemaExceptionBehavior) (added, removed []string)
- func ExceptionsUpdate(oldIDs, newValues []string) (added, removed []string)
- func GetExceptionBehavior(c *api.Client, id string) (models.ExceptionBehavior, error)
- func NewExceptionBehavior(c *api.Client, input models.CreateExceptionBehaviorInput) (models.ExceptionBehavior, error)
- func ParseSchemaMatchToInput(matchFromSchema models.SchemaMatchExpression) models.Match
- func ReadExceptionBehaviorToResourceData(behavior models.ExceptionBehavior, d *schema.ResourceData) error
- func UpdateExceptionBehavior(c *api.Client, id string, input models.UpdateExceptionBehaviorInput) (bool, error)
- func UpdateExceptionBehaviorInputFromResourceData(d *schema.ResourceData) (models.UpdateExceptionBehaviorInput, error)
- type Action
- type CreateExceptionBehaviorInput
- type CreateExceptionBehaviorResponse
- type ExceptionBehavior
- type ExceptionBehaviorUpdateInput
- type ExceptionObject
- type ExceptionObjectAction
- type ExceptionObjectInput
- type Match
- type SchemaExceptionBehavior
- type SchemaExceptionObject
- type UpdateExceptionBehaviorInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateExceptionBehaviorInputFromResourceData ¶
func CreateExceptionBehaviorInputFromResourceData(d *schema.ResourceData) (models.CreateExceptionBehaviorInput, error)
func ExceptionsDiff ¶
func ExceptionsDiff(old, new []SchemaExceptionBehavior) (added, removed []string)
ExceptionsDiff returns the diff of old and new
func ExceptionsUpdate ¶
ExceptionsUpdate returns the exceptions update input for update operation, it deletes all the old exceptions and adds the new ones
func GetExceptionBehavior ¶
func NewExceptionBehavior ¶
func NewExceptionBehavior(c *api.Client, input models.CreateExceptionBehaviorInput) (models.ExceptionBehavior, error)
func ParseSchemaMatchToInput ¶
func ParseSchemaMatchToInput(matchFromSchema models.SchemaMatchExpression) models.Match
func ReadExceptionBehaviorToResourceData ¶
func ReadExceptionBehaviorToResourceData(behavior models.ExceptionBehavior, d *schema.ResourceData) error
func UpdateExceptionBehavior ¶
func UpdateExceptionBehaviorInputFromResourceData ¶
func UpdateExceptionBehaviorInputFromResourceData(d *schema.ResourceData) (models.UpdateExceptionBehaviorInput, error)
Types ¶
type CreateExceptionBehaviorInput ¶
type CreateExceptionBehaviorInput struct {
Name string `json:"name,omitempty"`
Visibility string `json:"visibility,omitempty"`
Exceptions []ExceptionObjectInput `json:"exceptions,omitempty"`
}
type CreateExceptionBehaviorResponse ¶
type CreateExceptionBehaviorResponse struct {
ID string `json:"id"`
}
type ExceptionBehavior ¶
type ExceptionBehavior struct {
ID string `json:"id"`
Name string `json:"name"`
Exceptions []ExceptionObject `json:"exceptions"`
}
type ExceptionBehaviorUpdateInput ¶
type ExceptionBehaviorUpdateInput struct {
Name string `json:"name,omitempty"`
AddExceptions []ExceptionObjectInput `json:"addExceptions,omitempty"`
RemoveExceptions []string `json:"removeExceptions,omitempty"`
}
type ExceptionObject ¶
type ExceptionObject struct {
ID string `json:"id"`
Match string `json:"match"`
Actions []ExceptionObjectAction `json:"actions"`
Comment string `json:"comment,omitempty"`
}
type ExceptionObjectAction ¶
type ExceptionObjectInput ¶
type Match ¶
type Match struct {
Type string `json:"type"`
Operator string `json:"op"`
Items []Match `json:"items,omitempty"`
Key string `json:"key,omitempty"`
Value []string `json:"value,omitempty"`
}
func AndMatchFromMap ¶
func (Match) ToSchemaMap ¶
type SchemaExceptionBehavior ¶
type SchemaExceptionObject ¶
type UpdateExceptionBehaviorInput ¶
type UpdateExceptionBehaviorInput struct {
ID string `json:"id"`
BehaviorInput ExceptionBehaviorUpdateInput `json:"behaviorInput"`
}
Click to show internal directories.
Click to hide internal directories.