Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(ctx context.Context, key string, opts ...option.RequestOption) error
- func (c *Client) List(ctx context.Context, opts ...option.RequestOption) ([]*management.RulesConfig, error)
- func (c *Client) Set(ctx context.Context, key string, ...) (*management.SetRulesConfigResponseContent, error)
- type RawClient
- func (r *RawClient) Delete(ctx context.Context, key string, opts ...option.RequestOption) (*core.Response[any], error)
- func (r *RawClient) List(ctx context.Context, opts ...option.RequestOption) (*core.Response[[]*management.RulesConfig], error)
- func (r *RawClient) Set(ctx context.Context, key string, ...) (*core.Response[*management.SetRulesConfigResponseContent], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
WithRawResponse *RawClient
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options *core.RequestOptions) *Client
func (*Client) List ¶
func (c *Client) List( ctx context.Context, opts ...option.RequestOption, ) ([]*management.RulesConfig, error)
Retrieve rules config variable keys.
Note: For security, config variable values cannot be retrieved outside rule execution.
func (*Client) Set ¶
func (c *Client) Set( ctx context.Context, key string, request *management.SetRulesConfigRequestContent, opts ...option.RequestOption, ) (*management.SetRulesConfigResponseContent, error)
Sets a rules config variable.
type RawClient ¶
type RawClient struct {
// contains filtered or unexported fields
}
func NewRawClient ¶
func NewRawClient(options *core.RequestOptions) *RawClient
func (*RawClient) List ¶
func (r *RawClient) List( ctx context.Context, opts ...option.RequestOption, ) (*core.Response[[]*management.RulesConfig], error)
func (*RawClient) Set ¶
func (r *RawClient) Set( ctx context.Context, key string, request *management.SetRulesConfigRequestContent, opts ...option.RequestOption, ) (*core.Response[*management.SetRulesConfigResponseContent], error)
Click to show internal directories.
Click to hide internal directories.