Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateAuthorizationModel(ctx context.Context, writeAuthorizationModelRequestString string) (string, error)
- func (c *Client) CreateRelationTuple(ctx context.Context, object, relation, subject string) error
- func (c *Client) CreateStore(ctx context.Context, name string) error
- func (c *Client) DeleteRelationTuple(ctx context.Context, object, relation, subject string) error
- func (c *Client) DeleteStore() error
- func (c *Client) ExpandRelationTuple(ctx context.Context, object, relation string) error
- func (c *Client) GetCheck(ctx context.Context, object, relation, subject string) (bool, error)
- func (c *Client) GetStore(ctx context.Context) string
- func (c *Client) ListStore(ctx context.Context) (*[]openfga.Store, error)
- func (c *Client) SetStoreId(id string) error
- type ClientOption
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 NewClient ¶
func NewClient(opts ...ClientOption) *Client
func (*Client) CreateAuthorizationModel ¶
func (*Client) CreateRelationTuple ¶
func (*Client) DeleteRelationTuple ¶
func (*Client) DeleteStore ¶
func (*Client) ExpandRelationTuple ¶
func (*Client) SetStoreId ¶
type ClientOption ¶ added in v1.0.2
type ClientOption func(o *Client)
func WithApiUrl ¶ added in v1.0.2
func WithApiUrl(apiUrl string) ClientOption
func WithClientId ¶ added in v1.0.2
func WithClientId(clientId, clientSecret, apiAudience, apiTokenIssuer string) ClientOption
func WithStoreId ¶ added in v1.0.2
func WithStoreId(storeId string) ClientOption
func WithToken ¶ added in v1.0.2
func WithToken(token string) ClientOption
Click to show internal directories.
Click to hide internal directories.