Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, input CreateInput) (*CreateOutput, error)
- func (c *Client) Delete(ctx context.Context, input DeleteInput) (DeleteOutput, error)
- func (c *Client) Get(ctx context.Context, input GetInput) (GetOutput, error)
- func (c *Client) List(ctx context.Context, input ListInput) (ListOutput, error)
- func (c *Client) ListPolicySetsRequest(input ListInput) *listPolicySetsRequestCall
- func (c *Client) Update(ctx context.Context, input UpdateInput) (*UpdateOutput, error)
- type CreateInput
- type CreateOutput
- type DeleteInput
- type DeleteOutput
- type GetInput
- type GetOutput
- type Input
- type ListInput
- type ListOutput
- type Opts
- type Policy
- type PolicySet
- type UpdateInput
- type UpdateOutput
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 NewFromConfig ¶
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, input CreateInput) (*CreateOutput, error)
func (*Client) Delete ¶
func (c *Client) Delete(ctx context.Context, input DeleteInput) (DeleteOutput, error)
func (*Client) ListPolicySetsRequest ¶
func (*Client) Update ¶
func (c *Client) Update(ctx context.Context, input UpdateInput) (*UpdateOutput, error)
type CreateInput ¶
type CreateInput struct {
PolicySet Input
}
type CreateOutput ¶
type CreateOutput = authzv1alpha1.CreatePolicySetResponse
type DeleteInput ¶
type DeleteInput struct {
ID string
}
type DeleteOutput ¶
type DeleteOutput struct {
ID string
}
type Input ¶
type Input struct { // ID of the policy. ID string `json:"id"` // Text is the Cedar source code for the policy. Text string `json:"text"` }
Input is the input to create a PolicySet
func (Input) ToAPI ¶
func (p Input) ToAPI() *authzv1alpha1.PolicySetInput
type ListOutput ¶
type Opts ¶
type Opts struct { HTTPClient connect.HTTPClient BaseURL string ClientOptions []connect.ClientOption }
type Policy ¶
type Policy struct { // ID of the policy. ID string `json:"id"` // Text is the Cedar source code for the policy. Text string `json:"text"` }
Policy is an authorization policy used to make access decisions.
func PolicyFromAPI ¶
func PolicyFromAPI(input *authzv1alpha1.Policy) Policy
type PolicySet ¶
type PolicySet struct { // ID of the policy. ID string `json:"id"` Policies []Policy `json:"policies"` Text string `json:"text"` }
PolicySet is a set of Policies
func FromAPI ¶
func FromAPI(input *authzv1alpha1.PolicySet) PolicySet
type UpdateInput ¶
type UpdateInput struct {
PolicySet Input
}
type UpdateOutput ¶
type UpdateOutput = authzv1alpha1.UpdatePolicySetResponse
Click to show internal directories.
Click to hide internal directories.