Documentation ¶
Index ¶
- type Client
- func (c *Client) GetPolicy(ctx context.Context, kind policycontract.Kind, name string, chainID chain.ID) (*chain.Chain, error)
- func (c *Client) Healthcheck(ctx context.Context) error
- func (c *Client) ListPolicies(ctx context.Context, kind policycontract.Kind, name string) ([]chain.ID, error)
- func (c *Client) PutPolicies(ctx context.Context, policies []PolicyData) error
- func (c *Client) RemovePolicies(ctx context.Context, policies []PolicyInfo) error
- type Config
- type PolicyData
- type PolicyInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListPolicies ¶
func (*Client) PutPolicies ¶
func (c *Client) PutPolicies(ctx context.Context, policies []PolicyData) error
func (*Client) RemovePolicies ¶
func (c *Client) RemovePolicies(ctx context.Context, policies []PolicyInfo) error
type PolicyData ¶
type PolicyData struct { Kind policycontract.Kind Name string Chain *chain.Chain }
type PolicyInfo ¶
type PolicyInfo struct { Kind policycontract.Kind Name string ChainID chain.ID }
Click to show internal directories.
Click to hide internal directories.