Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOpts ¶
type CreateOpts struct { Path string `json:"path" required:"true"` Category string `json:"category" required:"true"` Index string `json:"index" required:"true"` }
CreateOpts contains all the values needed to create a new datamasking rule.
func (CreateOpts) ToDataMaskingCreateMap ¶
func (opts CreateOpts) ToDataMaskingCreateMap() (map[string]interface{}, error)
ToDataMaskingCreateMap builds a create request body from CreateOpts.
type CreateOptsBuilder ¶
CreateOptsBuilder allows extensions to add additional parameters to the Create request.
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
CreateResult represents the result of a create operation. Call its Extract method to interpret it as a DataMasking rule.
func Create ¶
func Create(c *golangsdk.ServiceClient, policyID string, opts CreateOptsBuilder) (r CreateResult)
Create will create a new datamasking rule based on the values in CreateOpts.
func (CreateResult) Extract ¶
func (r CreateResult) Extract() (*DataMasking, error)
Extract is a function that accepts a result and extracts a datamasking rule.
type DataMasking ¶
type DeleteResult ¶
type DeleteResult struct {
golangsdk.ErrResult
}
DeleteResult represents the result of a delete operation. Call its ExtractErr method to determine if the request succeeded or failed.
func Delete ¶
func Delete(c *golangsdk.ServiceClient, policyID, ruleID string) (r DeleteResult)
Delete will permanently delete a particular datamasking rule based on its unique ID.
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
GetResult represents the result of a get operation. Call its Extract method to interpret it as a DataMasking rule.
func (GetResult) Extract ¶
func (r GetResult) Extract() (*DataMasking, error)
Extract is a function that accepts a result and extracts a datamasking rule.
type UpdateOpts ¶
type UpdateOpts struct { Path string `json:"path" required:"true"` Category string `json:"category" required:"true"` Index string `json:"index" required:"true"` }
UpdateOpts contains all the values needed to update a datamasking rule.
func (UpdateOpts) ToDataMaskingUpdateMap ¶
func (opts UpdateOpts) ToDataMaskingUpdateMap() (map[string]interface{}, error)
ToDataMaskingUpdateMap builds a update request body from UpdateOpts.
type UpdateOptsBuilder ¶
UpdateOptsBuilder allows extensions to add additional parameters to the Update request.
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
UpdateResult represents the result of a update operation. Call its Extract method to interpret it as a DataMasking rule.
func Update ¶
func Update(c *golangsdk.ServiceClient, policyID, ruleID string, opts UpdateOptsBuilder) (r UpdateResult)
Update accepts a UpdateOpts struct and uses the values to update a rule.The response code from api is 200
func (UpdateResult) Extract ¶
func (r UpdateResult) Extract() (*DataMasking, error)
Extract is a function that accepts a result and extracts a datamasking rule.