Documentation ¶
Index ¶
- Variables
- type AuthorizationModelIdOptions
- type ClientAssertion
- type ClientBatchCheckBody
- type ClientBatchCheckOptions
- type ClientBatchCheckResponse
- type ClientBatchCheckSingleResponse
- type ClientCheckOptions
- type ClientCheckRequest
- type ClientCheckRequestTupleKey
- type ClientCheckResponse
- type ClientConfiguration
- type ClientContextualTupleKey
- type ClientCreateStoreOptions
- type ClientCreateStoreRequest
- type ClientCreateStoreResponse
- type ClientDeleteStoreOptions
- type ClientDeleteStoreResponse
- type ClientDeleteTuplesBody
- type ClientExpandOptions
- type ClientExpandRequest
- type ClientExpandRequestTupleKey
- type ClientExpandResponse
- type ClientGetStoreOptions
- type ClientGetStoreResponse
- type ClientListObjectsOptions
- type ClientListObjectsRequest
- type ClientListObjectsResponse
- type ClientListRelationsOptions
- type ClientListRelationsRequest
- type ClientListRelationsResponse
- type ClientListStoresOptions
- type ClientListStoresResponse
- type ClientListUsersOptions
- type ClientListUsersRequest
- type ClientListUsersResponse
- type ClientPaginationOptions
- type ClientReadAssertionsOptions
- type ClientReadAssertionsResponse
- type ClientReadAuthorizationModelOptions
- type ClientReadAuthorizationModelRequest
- type ClientReadAuthorizationModelResponse
- type ClientReadAuthorizationModelsOptions
- type ClientReadAuthorizationModelsResponse
- type ClientReadChangesOptions
- type ClientReadChangesRequest
- type ClientReadChangesResponse
- type ClientReadLatestAuthorizationModelOptions
- type ClientReadOptions
- type ClientReadRequest
- type ClientReadRequestTupleKey
- type ClientReadResponse
- type ClientRequestOptions
- type ClientRequestOptionsWithAuthZModelId
- type ClientTupleKey
- type ClientTupleKeyWithoutCondition
- type ClientWriteAssertionsOptions
- type ClientWriteAssertionsRequest
- type ClientWriteAssertionsResponse
- type ClientWriteAuthorizationModelOptions
- type ClientWriteAuthorizationModelRequest
- type ClientWriteAuthorizationModelResponse
- type ClientWriteOptions
- type ClientWriteRequest
- type ClientWriteRequestDeleteResponse
- type ClientWriteRequestWriteResponse
- type ClientWriteResponse
- type ClientWriteStatus
- type ClientWriteTuplesBody
- type FgaInvalidError
- type FgaRequiredParamError
- type OpenFgaClient
- func (client *OpenFgaClient) BatchCheck(ctx _context.Context) SdkClientBatchCheckRequestInterface
- func (client *OpenFgaClient) BatchCheckExecute(request SdkClientBatchCheckRequestInterface) (*ClientBatchCheckResponse, error)
- func (client *OpenFgaClient) Check(ctx _context.Context) SdkClientCheckRequestInterface
- func (client *OpenFgaClient) CheckExecute(request SdkClientCheckRequestInterface) (*ClientCheckResponse, error)
- func (client *OpenFgaClient) CreateStore(ctx _context.Context) SdkClientCreateStoreRequestInterface
- func (client *OpenFgaClient) CreateStoreExecute(request SdkClientCreateStoreRequestInterface) (*ClientCreateStoreResponse, error)
- func (client *OpenFgaClient) DeleteStore(ctx _context.Context) SdkClientDeleteStoreRequestInterface
- func (client *OpenFgaClient) DeleteStoreExecute(request SdkClientDeleteStoreRequestInterface) (*ClientDeleteStoreResponse, error)
- func (client *OpenFgaClient) DeleteTuples(ctx _context.Context) SdkClientDeleteTuplesRequestInterface
- func (client *OpenFgaClient) DeleteTuplesExecute(request SdkClientDeleteTuplesRequestInterface) (*ClientWriteResponse, error)
- func (client *OpenFgaClient) Expand(ctx _context.Context) SdkClientExpandRequestInterface
- func (client *OpenFgaClient) ExpandExecute(request SdkClientExpandRequestInterface) (*ClientExpandResponse, error)
- func (client *OpenFgaClient) GetAuthorizationModelId() (string, error)
- func (client *OpenFgaClient) GetStore(ctx _context.Context) SdkClientGetStoreRequestInterface
- func (client *OpenFgaClient) GetStoreExecute(request SdkClientGetStoreRequestInterface) (*ClientGetStoreResponse, error)
- func (client *OpenFgaClient) GetStoreId() (string, error)
- func (client *OpenFgaClient) ListObjects(ctx _context.Context) SdkClientListObjectsRequestInterface
- func (client *OpenFgaClient) ListObjectsExecute(request SdkClientListObjectsRequestInterface) (*ClientListObjectsResponse, error)
- func (client *OpenFgaClient) ListRelations(ctx _context.Context) SdkClientListRelationsRequestInterface
- func (client *OpenFgaClient) ListRelationsExecute(request SdkClientListRelationsRequestInterface) (*ClientListRelationsResponse, error)
- func (client *OpenFgaClient) ListStores(ctx _context.Context) SdkClientListStoresRequestInterface
- func (client *OpenFgaClient) ListStoresExecute(request SdkClientListStoresRequestInterface) (*ClientListStoresResponse, error)
- func (client *OpenFgaClient) ListUsers(ctx _context.Context) SdkClientListUsersRequestInterface
- func (client *OpenFgaClient) ListUsersExecute(request SdkClientListUsersRequestInterface) (*ClientListUsersResponse, error)
- func (client *OpenFgaClient) Read(ctx _context.Context) SdkClientReadRequestInterface
- func (client *OpenFgaClient) ReadAssertions(ctx _context.Context) SdkClientReadAssertionsRequestInterface
- func (client *OpenFgaClient) ReadAssertionsExecute(request SdkClientReadAssertionsRequestInterface) (*ClientReadAssertionsResponse, error)
- func (client *OpenFgaClient) ReadAuthorizationModel(ctx _context.Context) SdkClientReadAuthorizationModelRequestInterface
- func (client *OpenFgaClient) ReadAuthorizationModelExecute(request SdkClientReadAuthorizationModelRequestInterface) (*ClientReadAuthorizationModelResponse, error)
- func (client *OpenFgaClient) ReadAuthorizationModels(ctx _context.Context) SdkClientReadAuthorizationModelsRequestInterface
- func (client *OpenFgaClient) ReadAuthorizationModelsExecute(request SdkClientReadAuthorizationModelsRequestInterface) (*ClientReadAuthorizationModelsResponse, error)
- func (client *OpenFgaClient) ReadChanges(ctx _context.Context) SdkClientReadChangesRequestInterface
- func (client *OpenFgaClient) ReadChangesExecute(request SdkClientReadChangesRequestInterface) (*ClientReadChangesResponse, error)
- func (client *OpenFgaClient) ReadExecute(request SdkClientReadRequestInterface) (*ClientReadResponse, error)
- func (client *OpenFgaClient) ReadLatestAuthorizationModel(ctx _context.Context) SdkClientReadLatestAuthorizationModelRequestInterface
- func (client *OpenFgaClient) ReadLatestAuthorizationModelExecute(request SdkClientReadLatestAuthorizationModelRequestInterface) (*ClientReadAuthorizationModelResponse, error)
- func (client *OpenFgaClient) SetAuthorizationModelId(authorizationModelId string) error
- func (client *OpenFgaClient) SetStoreId(storeId string) error
- func (client *OpenFgaClient) Write(ctx _context.Context) SdkClientWriteRequestInterface
- func (client *OpenFgaClient) WriteAssertions(ctx _context.Context) SdkClientWriteAssertionsRequestInterface
- func (client *OpenFgaClient) WriteAssertionsExecute(request SdkClientWriteAssertionsRequestInterface) (*ClientWriteAssertionsResponse, error)
- func (client *OpenFgaClient) WriteAuthorizationModel(ctx _context.Context) SdkClientWriteAuthorizationModelRequestInterface
- func (client *OpenFgaClient) WriteAuthorizationModelExecute(request SdkClientWriteAuthorizationModelRequestInterface) (*ClientWriteAuthorizationModelResponse, error)
- func (client *OpenFgaClient) WriteExecute(request SdkClientWriteRequestInterface) (*ClientWriteResponse, error)
- func (client *OpenFgaClient) WriteTuples(ctx _context.Context) SdkClientWriteTuplesRequestInterface
- func (client *OpenFgaClient) WriteTuplesExecute(request SdkClientWriteTuplesRequestInterface) (*ClientWriteResponse, error)
- type SdkClient
- type SdkClientBatchCheckRequest
- func (request *SdkClientBatchCheckRequest) Body(body ClientBatchCheckBody) SdkClientBatchCheckRequestInterface
- func (request *SdkClientBatchCheckRequest) Execute() (*ClientBatchCheckResponse, error)
- func (request *SdkClientBatchCheckRequest) GetAuthorizationModelIdOverride() *string
- func (request *SdkClientBatchCheckRequest) GetBody() *ClientBatchCheckBody
- func (request *SdkClientBatchCheckRequest) GetContext() _context.Context
- func (request *SdkClientBatchCheckRequest) GetOptions() *ClientBatchCheckOptions
- func (request *SdkClientBatchCheckRequest) GetStoreIdOverride() *string
- func (request *SdkClientBatchCheckRequest) Options(options ClientBatchCheckOptions) SdkClientBatchCheckRequestInterface
- type SdkClientBatchCheckRequestInterface
- type SdkClientCheckRequest
- func (request *SdkClientCheckRequest) Body(body ClientCheckRequest) SdkClientCheckRequestInterface
- func (request *SdkClientCheckRequest) Execute() (*ClientCheckResponse, error)
- func (request *SdkClientCheckRequest) GetAuthorizationModelIdOverride() *string
- func (request *SdkClientCheckRequest) GetBody() *ClientCheckRequest
- func (request *SdkClientCheckRequest) GetContext() _context.Context
- func (request *SdkClientCheckRequest) GetOptions() *ClientCheckOptions
- func (request *SdkClientCheckRequest) GetStoreIdOverride() *string
- func (request *SdkClientCheckRequest) Options(options ClientCheckOptions) SdkClientCheckRequestInterface
- type SdkClientCheckRequestInterface
- type SdkClientCreateStoreRequest
- func (request *SdkClientCreateStoreRequest) Body(body ClientCreateStoreRequest) SdkClientCreateStoreRequestInterface
- func (request *SdkClientCreateStoreRequest) Execute() (*ClientCreateStoreResponse, error)
- func (request *SdkClientCreateStoreRequest) GetBody() *ClientCreateStoreRequest
- func (request *SdkClientCreateStoreRequest) GetContext() _context.Context
- func (request *SdkClientCreateStoreRequest) GetOptions() *ClientCreateStoreOptions
- func (request *SdkClientCreateStoreRequest) Options(options ClientCreateStoreOptions) SdkClientCreateStoreRequestInterface
- type SdkClientCreateStoreRequestInterface
- type SdkClientDeleteStoreRequest
- func (request *SdkClientDeleteStoreRequest) Execute() (*ClientDeleteStoreResponse, error)
- func (request *SdkClientDeleteStoreRequest) GetContext() _context.Context
- func (request *SdkClientDeleteStoreRequest) GetOptions() *ClientDeleteStoreOptions
- func (request *SdkClientDeleteStoreRequest) GetStoreIdOverride() *string
- func (request *SdkClientDeleteStoreRequest) Options(options ClientDeleteStoreOptions) SdkClientDeleteStoreRequestInterface
- type SdkClientDeleteStoreRequestInterface
- type SdkClientDeleteTuplesRequest
- func (request *SdkClientDeleteTuplesRequest) Body(body ClientDeleteTuplesBody) SdkClientDeleteTuplesRequestInterface
- func (request *SdkClientDeleteTuplesRequest) Execute() (*ClientWriteResponse, error)
- func (request *SdkClientDeleteTuplesRequest) GetBody() *ClientDeleteTuplesBody
- func (request *SdkClientDeleteTuplesRequest) GetContext() _context.Context
- func (request *SdkClientDeleteTuplesRequest) GetOptions() *ClientWriteOptions
- func (request *SdkClientDeleteTuplesRequest) Options(options ClientWriteOptions) SdkClientDeleteTuplesRequestInterface
- type SdkClientDeleteTuplesRequestInterface
- type SdkClientExpandRequest
- func (request *SdkClientExpandRequest) Body(body ClientExpandRequest) SdkClientExpandRequestInterface
- func (request *SdkClientExpandRequest) Execute() (*ClientExpandResponse, error)
- func (request *SdkClientExpandRequest) GetAuthorizationModelIdOverride() *string
- func (request *SdkClientExpandRequest) GetBody() *ClientExpandRequest
- func (request *SdkClientExpandRequest) GetContext() _context.Context
- func (request *SdkClientExpandRequest) GetOptions() *ClientExpandOptions
- func (request *SdkClientExpandRequest) GetStoreIdOverride() *string
- func (request *SdkClientExpandRequest) Options(options ClientExpandOptions) SdkClientExpandRequestInterface
- type SdkClientExpandRequestInterface
- type SdkClientGetStoreRequest
- func (request *SdkClientGetStoreRequest) Execute() (*ClientGetStoreResponse, error)
- func (request *SdkClientGetStoreRequest) GetContext() _context.Context
- func (request *SdkClientGetStoreRequest) GetOptions() *ClientGetStoreOptions
- func (request *SdkClientGetStoreRequest) GetStoreIdOverride() *string
- func (request *SdkClientGetStoreRequest) Options(options ClientGetStoreOptions) SdkClientGetStoreRequestInterface
- type SdkClientGetStoreRequestInterface
- type SdkClientListObjectsRequest
- func (request *SdkClientListObjectsRequest) Body(body ClientListObjectsRequest) SdkClientListObjectsRequestInterface
- func (request *SdkClientListObjectsRequest) Execute() (*ClientListObjectsResponse, error)
- func (request *SdkClientListObjectsRequest) GetAuthorizationModelIdOverride() *string
- func (request *SdkClientListObjectsRequest) GetBody() *ClientListObjectsRequest
- func (request *SdkClientListObjectsRequest) GetContext() _context.Context
- func (request *SdkClientListObjectsRequest) GetOptions() *ClientListObjectsOptions
- func (request *SdkClientListObjectsRequest) GetStoreIdOverride() *string
- func (request *SdkClientListObjectsRequest) Options(options ClientListObjectsOptions) SdkClientListObjectsRequestInterface
- type SdkClientListObjectsRequestInterface
- type SdkClientListRelationsRequest
- func (request *SdkClientListRelationsRequest) Body(body ClientListRelationsRequest) SdkClientListRelationsRequestInterface
- func (request *SdkClientListRelationsRequest) Execute() (*ClientListRelationsResponse, error)
- func (request *SdkClientListRelationsRequest) GetAuthorizationModelIdOverride() *string
- func (request *SdkClientListRelationsRequest) GetBody() *ClientListRelationsRequest
- func (request *SdkClientListRelationsRequest) GetContext() _context.Context
- func (request *SdkClientListRelationsRequest) GetOptions() *ClientListRelationsOptions
- func (request *SdkClientListRelationsRequest) GetStoreIdOverride() *string
- func (request *SdkClientListRelationsRequest) Options(options ClientListRelationsOptions) SdkClientListRelationsRequestInterface
- type SdkClientListRelationsRequestInterface
- type SdkClientListStoresRequest
- func (request *SdkClientListStoresRequest) Execute() (*ClientListStoresResponse, error)
- func (request *SdkClientListStoresRequest) GetContext() _context.Context
- func (request *SdkClientListStoresRequest) GetOptions() *ClientListStoresOptions
- func (request *SdkClientListStoresRequest) Options(options ClientListStoresOptions) SdkClientListStoresRequestInterface
- type SdkClientListStoresRequestInterface
- type SdkClientListUsersRequest
- func (request *SdkClientListUsersRequest) Body(body ClientListUsersRequest) SdkClientListUsersRequestInterface
- func (request *SdkClientListUsersRequest) Execute() (*ClientListUsersResponse, error)
- func (request *SdkClientListUsersRequest) GetAuthorizationModelIdOverride() *string
- func (request *SdkClientListUsersRequest) GetBody() *ClientListUsersRequest
- func (request *SdkClientListUsersRequest) GetContext() _context.Context
- func (request *SdkClientListUsersRequest) GetOptions() *ClientListUsersOptions
- func (request *SdkClientListUsersRequest) GetStoreIdOverride() *string
- func (request *SdkClientListUsersRequest) Options(options ClientListUsersOptions) SdkClientListUsersRequestInterface
- type SdkClientListUsersRequestInterface
- type SdkClientReadAssertionsRequest
- func (request *SdkClientReadAssertionsRequest) Execute() (*ClientReadAssertionsResponse, error)
- func (request *SdkClientReadAssertionsRequest) GetAuthorizationModelIdOverride() *string
- func (request *SdkClientReadAssertionsRequest) GetContext() _context.Context
- func (request *SdkClientReadAssertionsRequest) GetOptions() *ClientReadAssertionsOptions
- func (request *SdkClientReadAssertionsRequest) GetStoreIdOverride() *string
- func (request *SdkClientReadAssertionsRequest) Options(options ClientReadAssertionsOptions) SdkClientReadAssertionsRequestInterface
- type SdkClientReadAssertionsRequestInterface
- type SdkClientReadAuthorizationModelRequest
- func (request *SdkClientReadAuthorizationModelRequest) Body(body ClientReadAuthorizationModelRequest) SdkClientReadAuthorizationModelRequestInterface
- func (request *SdkClientReadAuthorizationModelRequest) Execute() (*ClientReadAuthorizationModelResponse, error)
- func (request *SdkClientReadAuthorizationModelRequest) GetAuthorizationModelIdOverride() *string
- func (request *SdkClientReadAuthorizationModelRequest) GetBody() *ClientReadAuthorizationModelRequest
- func (request *SdkClientReadAuthorizationModelRequest) GetContext() _context.Context
- func (request *SdkClientReadAuthorizationModelRequest) GetOptions() *ClientReadAuthorizationModelOptions
- func (request *SdkClientReadAuthorizationModelRequest) GetStoreIdOverride() *string
- func (request *SdkClientReadAuthorizationModelRequest) Options(options ClientReadAuthorizationModelOptions) SdkClientReadAuthorizationModelRequestInterface
- type SdkClientReadAuthorizationModelRequestInterface
- type SdkClientReadAuthorizationModelsRequest
- func (request *SdkClientReadAuthorizationModelsRequest) Execute() (*ClientReadAuthorizationModelsResponse, error)
- func (request *SdkClientReadAuthorizationModelsRequest) GetContext() _context.Context
- func (request *SdkClientReadAuthorizationModelsRequest) GetOptions() *ClientReadAuthorizationModelsOptions
- func (request *SdkClientReadAuthorizationModelsRequest) GetStoreIdOverride() *string
- func (request *SdkClientReadAuthorizationModelsRequest) Options(options ClientReadAuthorizationModelsOptions) SdkClientReadAuthorizationModelsRequestInterface
- type SdkClientReadAuthorizationModelsRequestInterface
- type SdkClientReadChangesRequest
- func (request *SdkClientReadChangesRequest) Body(body ClientReadChangesRequest) SdkClientReadChangesRequestInterface
- func (request *SdkClientReadChangesRequest) Execute() (*ClientReadChangesResponse, error)
- func (request *SdkClientReadChangesRequest) GetBody() *ClientReadChangesRequest
- func (request *SdkClientReadChangesRequest) GetContext() _context.Context
- func (request *SdkClientReadChangesRequest) GetOptions() *ClientReadChangesOptions
- func (request *SdkClientReadChangesRequest) GetStoreIdOverride() *string
- func (request *SdkClientReadChangesRequest) Options(options ClientReadChangesOptions) SdkClientReadChangesRequestInterface
- type SdkClientReadChangesRequestInterface
- type SdkClientReadLatestAuthorizationModelRequest
- func (request *SdkClientReadLatestAuthorizationModelRequest) Execute() (*ClientReadAuthorizationModelResponse, error)
- func (request *SdkClientReadLatestAuthorizationModelRequest) GetContext() _context.Context
- func (request *SdkClientReadLatestAuthorizationModelRequest) GetOptions() *ClientReadLatestAuthorizationModelOptions
- func (request *SdkClientReadLatestAuthorizationModelRequest) GetStoreIdOverride() *string
- func (request *SdkClientReadLatestAuthorizationModelRequest) Options(options ClientReadLatestAuthorizationModelOptions) SdkClientReadLatestAuthorizationModelRequestInterface
- type SdkClientReadLatestAuthorizationModelRequestInterface
- type SdkClientReadRequest
- func (request *SdkClientReadRequest) Body(body ClientReadRequest) SdkClientReadRequestInterface
- func (request *SdkClientReadRequest) Execute() (*ClientReadResponse, error)
- func (request *SdkClientReadRequest) GetBody() *ClientReadRequest
- func (request *SdkClientReadRequest) GetContext() _context.Context
- func (request *SdkClientReadRequest) GetOptions() *ClientReadOptions
- func (request *SdkClientReadRequest) GetStoreIdOverride() *string
- func (request *SdkClientReadRequest) Options(options ClientReadOptions) SdkClientReadRequestInterface
- type SdkClientReadRequestInterface
- type SdkClientWriteAssertionsRequest
- func (request *SdkClientWriteAssertionsRequest) Body(body ClientWriteAssertionsRequest) SdkClientWriteAssertionsRequestInterface
- func (request *SdkClientWriteAssertionsRequest) Execute() (*ClientWriteAssertionsResponse, error)
- func (request *SdkClientWriteAssertionsRequest) GetAuthorizationModelIdOverride() *string
- func (request *SdkClientWriteAssertionsRequest) GetBody() *ClientWriteAssertionsRequest
- func (request *SdkClientWriteAssertionsRequest) GetContext() _context.Context
- func (request *SdkClientWriteAssertionsRequest) GetOptions() *ClientWriteAssertionsOptions
- func (request *SdkClientWriteAssertionsRequest) GetStoreIdOverride() *string
- func (request *SdkClientWriteAssertionsRequest) Options(options ClientWriteAssertionsOptions) SdkClientWriteAssertionsRequestInterface
- type SdkClientWriteAssertionsRequestInterface
- type SdkClientWriteAuthorizationModelRequest
- func (request *SdkClientWriteAuthorizationModelRequest) Body(body ClientWriteAuthorizationModelRequest) SdkClientWriteAuthorizationModelRequestInterface
- func (request *SdkClientWriteAuthorizationModelRequest) Execute() (*ClientWriteAuthorizationModelResponse, error)
- func (request *SdkClientWriteAuthorizationModelRequest) GetBody() *ClientWriteAuthorizationModelRequest
- func (request *SdkClientWriteAuthorizationModelRequest) GetContext() _context.Context
- func (request *SdkClientWriteAuthorizationModelRequest) GetOptions() *ClientWriteAuthorizationModelOptions
- func (request *SdkClientWriteAuthorizationModelRequest) GetStoreIdOverride() *string
- func (request *SdkClientWriteAuthorizationModelRequest) Options(options ClientWriteAuthorizationModelOptions) SdkClientWriteAuthorizationModelRequestInterface
- type SdkClientWriteAuthorizationModelRequestInterface
- type SdkClientWriteRequest
- func (request *SdkClientWriteRequest) Body(body ClientWriteRequest) SdkClientWriteRequestInterface
- func (request *SdkClientWriteRequest) Execute() (*ClientWriteResponse, error)
- func (request *SdkClientWriteRequest) GetAuthorizationModelIdOverride() *string
- func (request *SdkClientWriteRequest) GetBody() *ClientWriteRequest
- func (request *SdkClientWriteRequest) GetContext() _context.Context
- func (request *SdkClientWriteRequest) GetOptions() *ClientWriteOptions
- func (request *SdkClientWriteRequest) GetStoreIdOverride() *string
- func (request *SdkClientWriteRequest) Options(options ClientWriteOptions) SdkClientWriteRequestInterface
- type SdkClientWriteRequestInterface
- type SdkClientWriteTuplesRequest
- func (request *SdkClientWriteTuplesRequest) Body(body ClientWriteTuplesBody) SdkClientWriteTuplesRequestInterface
- func (request *SdkClientWriteTuplesRequest) Execute() (*ClientWriteResponse, error)
- func (request *SdkClientWriteTuplesRequest) GetBody() *ClientWriteTuplesBody
- func (request *SdkClientWriteTuplesRequest) GetContext() _context.Context
- func (request *SdkClientWriteTuplesRequest) GetOptions() *ClientWriteOptions
- func (request *SdkClientWriteTuplesRequest) Options(options ClientWriteOptions) SdkClientWriteTuplesRequestInterface
- type SdkClientWriteTuplesRequestInterface
- type TransactionOptions
Constants ¶
This section is empty.
Variables ¶
var DEFAULT_MAX_METHOD_PARALLEL_REQS = int32(10)
Functions ¶
This section is empty.
Types ¶
type AuthorizationModelIdOptions ¶
type AuthorizationModelIdOptions struct {
AuthorizationModelId *string `json:"authorization_model_id,omitempty"`
}
type ClientAssertion ¶
type ClientAssertion struct { User string `json:"user,omitempty"` Relation string `json:"relation,omitempty"` Object string `json:"object,omitempty"` Expectation bool `json:"expectation,omitempty"` }
func (ClientAssertion) ToAssertion ¶
func (clientAssertion ClientAssertion) ToAssertion() fgaSdk.Assertion
type ClientBatchCheckBody ¶
type ClientBatchCheckBody = []ClientCheckRequest
type ClientBatchCheckOptions ¶
type ClientBatchCheckOptions struct { AuthorizationModelId *string `json:"authorization_model_id,omitempty"` StoreId *string `json:"store_id,omitempty"` MaxParallelRequests *int32 `json:"max_parallel_requests,omitempty"` Consistency *fgaSdk.ConsistencyPreference `json:"consistency,omitempty"` }
type ClientBatchCheckResponse ¶
type ClientBatchCheckResponse = []ClientBatchCheckSingleResponse
type ClientBatchCheckSingleResponse ¶
type ClientBatchCheckSingleResponse struct { ClientCheckResponse Request ClientCheckRequest Error error }
type ClientCheckOptions ¶
type ClientCheckOptions struct { AuthorizationModelId *string `json:"authorization_model_id,omitempty"` StoreId *string `json:"store_id,omitempty"` Consistency *fgaSdk.ConsistencyPreference `json:"consistency,omitempty"` }
type ClientCheckRequest ¶
type ClientCheckRequest struct { User string `json:"user,omitempty"` Relation string `json:"relation,omitempty"` Object string `json:"object,omitempty"` Context *map[string]interface{} `json:"context,omitempty"` ContextualTuples []ClientContextualTupleKey `json:"contextual_tuples,omitempty"` }
type ClientCheckRequestTupleKey ¶ added in v0.3.0
type ClientCheckRequestTupleKey = fgaSdk.CheckRequestTupleKey
type ClientCheckResponse ¶
type ClientCheckResponse struct { fgaSdk.CheckResponse HttpResponse *_nethttp.Response }
type ClientConfiguration ¶
type ClientConfiguration struct { fgaSdk.Configuration // ApiScheme - defines the scheme for the API: http or https // Deprecated: use ApiUrl instead of ApiScheme and ApiHost ApiScheme string `json:"api_scheme"` // ApiHost - defines the host for the API without the scheme e.g. (api.fga.example) // Deprecated: use ApiUrl instead of ApiScheme and ApiHost ApiHost string `json:"api_host"` ApiUrl string `json:"api_url"` StoreId string `json:"store_id"` AuthorizationModelId string `json:"authorization_model_id"` Credentials *credentials.Credentials `json:"credentials"` DefaultHeaders map[string]string `json:"default_headers"` UserAgent string `json:"user_agent"` Debug bool `json:"debug"` HTTPClient *_nethttp.Client RetryParams *fgaSdk.RetryParams Telemetry *telemetry.Configuration `json:"telemetry,omitempty"` }
type ClientContextualTupleKey ¶ added in v0.3.0
type ClientContextualTupleKey = ClientTupleKey
type ClientCreateStoreOptions ¶
type ClientCreateStoreOptions struct { }
type ClientCreateStoreRequest ¶
type ClientCreateStoreRequest struct {
Name string `json:"name"`
}
type ClientCreateStoreResponse ¶
type ClientCreateStoreResponse = fgaSdk.CreateStoreResponse
type ClientDeleteStoreOptions ¶
type ClientDeleteStoreOptions struct {
StoreId *string `json:"store_id,omitempty"`
}
type ClientDeleteStoreResponse ¶
type ClientDeleteStoreResponse struct{}
type ClientDeleteTuplesBody ¶
type ClientDeleteTuplesBody = []ClientTupleKeyWithoutCondition
type ClientExpandOptions ¶
type ClientExpandOptions struct { AuthorizationModelId *string `json:"authorization_model_id,omitempty"` StoreId *string `json:"store_id,omitempty"` Consistency *fgaSdk.ConsistencyPreference `json:"consistency,omitempty"` }
type ClientExpandRequest ¶
type ClientExpandRequestTupleKey ¶ added in v0.3.0
type ClientExpandRequestTupleKey = fgaSdk.ExpandRequestTupleKey
type ClientExpandResponse ¶
type ClientExpandResponse = fgaSdk.ExpandResponse
type ClientGetStoreOptions ¶
type ClientGetStoreOptions struct {
StoreId *string `json:"store_id,omitempty"`
}
type ClientGetStoreResponse ¶
type ClientGetStoreResponse = fgaSdk.GetStoreResponse
type ClientListObjectsOptions ¶
type ClientListObjectsOptions struct { AuthorizationModelId *string `json:"authorization_model_id,omitempty"` StoreId *string `json:"store_id,omitempty"` Consistency *fgaSdk.ConsistencyPreference `json:"consistency,omitempty"` }
type ClientListObjectsRequest ¶
type ClientListObjectsRequest struct { User string `json:"user,omitempty"` Relation string `json:"relation,omitempty"` Type string `json:"type,omitempty"` Context *map[string]interface{} `json:"context,omitempty"` ContextualTuples []ClientContextualTupleKey `json:"contextual_tuples,omitempty"` }
type ClientListObjectsResponse ¶
type ClientListObjectsResponse = fgaSdk.ListObjectsResponse
type ClientListRelationsOptions ¶
type ClientListRelationsOptions struct { AuthorizationModelId *string `json:"authorization_model_id,omitempty"` MaxParallelRequests *int32 `json:"max_parallel_requests,omitempty"` StoreId *string `json:"store_id,omitempty"` Consistency *fgaSdk.ConsistencyPreference `json:"consistency,omitempty"` }
type ClientListRelationsRequest ¶
type ClientListRelationsRequest struct { User string `json:"user,omitempty"` Object string `json:"object,omitempty"` Relations []string `json:"relations,omitempty"` Context *map[string]interface{} `json:"context,omitempty"` ContextualTuples []ClientContextualTupleKey `json:"contextual_tuples,omitempty"` }
type ClientListRelationsResponse ¶
type ClientListRelationsResponse struct {
Relations []string `json:"response,omitempty"`
}
func (ClientListRelationsResponse) MarshalJSON ¶
func (o ClientListRelationsResponse) MarshalJSON() ([]byte, error)
type ClientListStoresOptions ¶
type ClientListStoresResponse ¶
type ClientListStoresResponse = fgaSdk.ListStoresResponse
type ClientListUsersOptions ¶ added in v0.3.6
type ClientListUsersOptions struct { AuthorizationModelId *string `json:"authorization_model_id,omitempty"` StoreId *string `json:"store_id,omitempty"` Consistency *fgaSdk.ConsistencyPreference `json:"consistency,omitempty"` }
type ClientListUsersRequest ¶ added in v0.3.6
type ClientListUsersRequest struct { Object fgaSdk.FgaObject `json:"object"yaml:"object"` Relation string `json:"relation"yaml:"relation"` UserFilters []fgaSdk.UserTypeFilter `json:"user_filters"yaml:"user_filters"` ContextualTuples []ClientContextualTupleKey `json:"contextual_tuples,omitempty"` // Additional request context that will be used to evaluate any ABAC conditions encountered in the query evaluation. Context *map[string]interface{} `json:"context,omitempty"yaml:"context,omitempty"` }
type ClientListUsersResponse ¶ added in v0.3.6
type ClientListUsersResponse = fgaSdk.ListUsersResponse
type ClientPaginationOptions ¶
type ClientReadAssertionsResponse ¶
type ClientReadAssertionsResponse = fgaSdk.ReadAssertionsResponse
type ClientReadAuthorizationModelRequest ¶
type ClientReadAuthorizationModelRequest struct { }
type ClientReadAuthorizationModelResponse ¶
type ClientReadAuthorizationModelResponse = fgaSdk.ReadAuthorizationModelResponse
type ClientReadAuthorizationModelsResponse ¶
type ClientReadAuthorizationModelsResponse = fgaSdk.ReadAuthorizationModelsResponse
type ClientReadChangesRequest ¶
type ClientReadChangesRequest struct {
Type string `json:"type,omitempty"`
}
type ClientReadChangesResponse ¶
type ClientReadChangesResponse = fgaSdk.ReadChangesResponse
type ClientReadLatestAuthorizationModelOptions ¶
type ClientReadLatestAuthorizationModelOptions struct {
StoreId *string `json:"store_id,omitempty"`
}
type ClientReadOptions ¶
type ClientReadOptions struct { PageSize *int32 `json:"page_size,omitempty"` ContinuationToken *string `json:"continuation_token,omitempty"` StoreId *string `json:"store_id,omitempty"` Consistency *fgaSdk.ConsistencyPreference `json:"consistency,omitempty"` }
type ClientReadRequest ¶
type ClientReadRequestTupleKey ¶ added in v0.3.0
type ClientReadRequestTupleKey = fgaSdk.ReadRequestTupleKey
type ClientReadResponse ¶
type ClientReadResponse = fgaSdk.ReadResponse
type ClientRequestOptions ¶
type ClientRequestOptionsWithAuthZModelId ¶
type ClientRequestOptionsWithAuthZModelId struct { ClientRequestOptions AuthorizationModelIdOptions }
type ClientTupleKey ¶
type ClientTupleKeyWithoutCondition ¶ added in v0.3.0
type ClientTupleKeyWithoutCondition = fgaSdk.TupleKeyWithoutCondition
type ClientWriteAssertionsRequest ¶
type ClientWriteAssertionsRequest = []ClientAssertion
type ClientWriteAssertionsResponse ¶ added in v0.2.3
type ClientWriteAssertionsResponse struct { }
type ClientWriteAuthorizationModelOptions ¶
type ClientWriteAuthorizationModelOptions struct {
StoreId *string `json:"store_id,omitempty"`
}
type ClientWriteAuthorizationModelRequest ¶
type ClientWriteAuthorizationModelRequest = fgaSdk.WriteAuthorizationModelRequest
type ClientWriteAuthorizationModelResponse ¶
type ClientWriteAuthorizationModelResponse = fgaSdk.WriteAuthorizationModelResponse
type ClientWriteOptions ¶
type ClientWriteOptions struct { AuthorizationModelId *string `json:"authorization_model_id,omitempty"` StoreId *string `json:"store_id,omitempty"` Transaction *TransactionOptions `json:"transaction_options,omitempty"` }
type ClientWriteRequest ¶
type ClientWriteRequest struct { Writes []ClientTupleKey Deletes []ClientTupleKeyWithoutCondition }
type ClientWriteRequestDeleteResponse ¶ added in v0.3.0
type ClientWriteRequestDeleteResponse struct { TupleKey ClientTupleKeyWithoutCondition `json:"tuple_key,omitempty"` Status ClientWriteStatus `json:"status,omitempty"` HttpResponse *_nethttp.Response `json:"http_response,omitempty"` Error error `json:"error,omitempty"` }
func (ClientWriteRequestDeleteResponse) MarshalJSON ¶ added in v0.3.0
func (o ClientWriteRequestDeleteResponse) MarshalJSON() ([]byte, error)
type ClientWriteRequestWriteResponse ¶ added in v0.3.0
type ClientWriteRequestWriteResponse struct { TupleKey ClientTupleKey `json:"tuple_key,omitempty"` Status ClientWriteStatus `json:"status,omitempty"` HttpResponse *_nethttp.Response `json:"http_response,omitempty"` Error error `json:"error,omitempty"` }
func (ClientWriteRequestWriteResponse) MarshalJSON ¶ added in v0.3.0
func (o ClientWriteRequestWriteResponse) MarshalJSON() ([]byte, error)
type ClientWriteResponse ¶
type ClientWriteResponse struct { Writes []ClientWriteRequestWriteResponse `json:"writes,omitempty"` Deletes []ClientWriteRequestDeleteResponse `json:"deletes,omitempty"` }
func (ClientWriteResponse) MarshalJSON ¶
func (o ClientWriteResponse) MarshalJSON() ([]byte, error)
type ClientWriteStatus ¶
type ClientWriteStatus string
const ( SUCCESS ClientWriteStatus = "CLIENT_WRITE_STATUS_SUCCESS" FAILURE ClientWriteStatus = "CLIENT_WRITE_STATUS_FAILURE" )
List of ClientWriteStatus
type ClientWriteTuplesBody ¶
type ClientWriteTuplesBody = []ClientTupleKey
type FgaInvalidError ¶ added in v0.2.3
type FgaInvalidError struct {
// contains filtered or unexported fields
}
FgaInvalidError Provides access to the body, error and model on returned errors.
func (FgaInvalidError) Error ¶ added in v0.2.3
func (e FgaInvalidError) Error() string
Error returns non-empty string if there was an error.
func (FgaInvalidError) Param ¶ added in v0.2.3
func (e FgaInvalidError) Param() string
Param returns the name of the invalid parameter
type FgaRequiredParamError ¶ added in v0.2.3
type FgaRequiredParamError struct {
// contains filtered or unexported fields
}
FgaRequiredParamError Provides access to the body, error and model on returned errors.
func (FgaRequiredParamError) Error ¶ added in v0.2.3
func (e FgaRequiredParamError) Error() string
Error returns non-empty string if there was an error.
func (FgaRequiredParamError) Param ¶ added in v0.2.3
func (e FgaRequiredParamError) Param() string
Param returns the name of the missing parameter
type OpenFgaClient ¶
func NewSdkClient ¶
func NewSdkClient(cfg *ClientConfiguration) (*OpenFgaClient, error)
func (*OpenFgaClient) BatchCheck ¶
func (client *OpenFgaClient) BatchCheck(ctx _context.Context) SdkClientBatchCheckRequestInterface
func (*OpenFgaClient) BatchCheckExecute ¶
func (client *OpenFgaClient) BatchCheckExecute(request SdkClientBatchCheckRequestInterface) (*ClientBatchCheckResponse, error)
func (*OpenFgaClient) Check ¶
func (client *OpenFgaClient) Check(ctx _context.Context) SdkClientCheckRequestInterface
func (*OpenFgaClient) CheckExecute ¶
func (client *OpenFgaClient) CheckExecute(request SdkClientCheckRequestInterface) (*ClientCheckResponse, error)
func (*OpenFgaClient) CreateStore ¶
func (client *OpenFgaClient) CreateStore(ctx _context.Context) SdkClientCreateStoreRequestInterface
func (*OpenFgaClient) CreateStoreExecute ¶
func (client *OpenFgaClient) CreateStoreExecute(request SdkClientCreateStoreRequestInterface) (*ClientCreateStoreResponse, error)
func (*OpenFgaClient) DeleteStore ¶
func (client *OpenFgaClient) DeleteStore(ctx _context.Context) SdkClientDeleteStoreRequestInterface
func (*OpenFgaClient) DeleteStoreExecute ¶
func (client *OpenFgaClient) DeleteStoreExecute(request SdkClientDeleteStoreRequestInterface) (*ClientDeleteStoreResponse, error)
func (*OpenFgaClient) DeleteTuples ¶
func (client *OpenFgaClient) DeleteTuples(ctx _context.Context) SdkClientDeleteTuplesRequestInterface
func (*OpenFgaClient) DeleteTuplesExecute ¶
func (client *OpenFgaClient) DeleteTuplesExecute(request SdkClientDeleteTuplesRequestInterface) (*ClientWriteResponse, error)
func (*OpenFgaClient) Expand ¶
func (client *OpenFgaClient) Expand(ctx _context.Context) SdkClientExpandRequestInterface
func (*OpenFgaClient) ExpandExecute ¶
func (client *OpenFgaClient) ExpandExecute(request SdkClientExpandRequestInterface) (*ClientExpandResponse, error)
func (*OpenFgaClient) GetAuthorizationModelId ¶ added in v0.3.0
func (client *OpenFgaClient) GetAuthorizationModelId() (string, error)
func (*OpenFgaClient) GetStore ¶
func (client *OpenFgaClient) GetStore(ctx _context.Context) SdkClientGetStoreRequestInterface
func (*OpenFgaClient) GetStoreExecute ¶
func (client *OpenFgaClient) GetStoreExecute(request SdkClientGetStoreRequestInterface) (*ClientGetStoreResponse, error)
func (*OpenFgaClient) GetStoreId ¶ added in v0.4.0
func (client *OpenFgaClient) GetStoreId() (string, error)
func (*OpenFgaClient) ListObjects ¶
func (client *OpenFgaClient) ListObjects(ctx _context.Context) SdkClientListObjectsRequestInterface
func (*OpenFgaClient) ListObjectsExecute ¶
func (client *OpenFgaClient) ListObjectsExecute(request SdkClientListObjectsRequestInterface) (*ClientListObjectsResponse, error)
func (*OpenFgaClient) ListRelations ¶
func (client *OpenFgaClient) ListRelations(ctx _context.Context) SdkClientListRelationsRequestInterface
func (*OpenFgaClient) ListRelationsExecute ¶
func (client *OpenFgaClient) ListRelationsExecute(request SdkClientListRelationsRequestInterface) (*ClientListRelationsResponse, error)
func (*OpenFgaClient) ListStores ¶
func (client *OpenFgaClient) ListStores(ctx _context.Context) SdkClientListStoresRequestInterface
func (*OpenFgaClient) ListStoresExecute ¶
func (client *OpenFgaClient) ListStoresExecute(request SdkClientListStoresRequestInterface) (*ClientListStoresResponse, error)
func (*OpenFgaClient) ListUsers ¶ added in v0.3.6
func (client *OpenFgaClient) ListUsers(ctx _context.Context) SdkClientListUsersRequestInterface
func (*OpenFgaClient) ListUsersExecute ¶ added in v0.3.6
func (client *OpenFgaClient) ListUsersExecute(request SdkClientListUsersRequestInterface) (*ClientListUsersResponse, error)
func (*OpenFgaClient) Read ¶
func (client *OpenFgaClient) Read(ctx _context.Context) SdkClientReadRequestInterface
func (*OpenFgaClient) ReadAssertions ¶
func (client *OpenFgaClient) ReadAssertions(ctx _context.Context) SdkClientReadAssertionsRequestInterface
func (*OpenFgaClient) ReadAssertionsExecute ¶
func (client *OpenFgaClient) ReadAssertionsExecute(request SdkClientReadAssertionsRequestInterface) (*ClientReadAssertionsResponse, error)
func (*OpenFgaClient) ReadAuthorizationModel ¶
func (client *OpenFgaClient) ReadAuthorizationModel(ctx _context.Context) SdkClientReadAuthorizationModelRequestInterface
func (*OpenFgaClient) ReadAuthorizationModelExecute ¶
func (client *OpenFgaClient) ReadAuthorizationModelExecute(request SdkClientReadAuthorizationModelRequestInterface) (*ClientReadAuthorizationModelResponse, error)
func (*OpenFgaClient) ReadAuthorizationModels ¶
func (client *OpenFgaClient) ReadAuthorizationModels(ctx _context.Context) SdkClientReadAuthorizationModelsRequestInterface
func (*OpenFgaClient) ReadAuthorizationModelsExecute ¶
func (client *OpenFgaClient) ReadAuthorizationModelsExecute(request SdkClientReadAuthorizationModelsRequestInterface) (*ClientReadAuthorizationModelsResponse, error)
func (*OpenFgaClient) ReadChanges ¶
func (client *OpenFgaClient) ReadChanges(ctx _context.Context) SdkClientReadChangesRequestInterface
func (*OpenFgaClient) ReadChangesExecute ¶
func (client *OpenFgaClient) ReadChangesExecute(request SdkClientReadChangesRequestInterface) (*ClientReadChangesResponse, error)
func (*OpenFgaClient) ReadExecute ¶
func (client *OpenFgaClient) ReadExecute(request SdkClientReadRequestInterface) (*ClientReadResponse, error)
func (*OpenFgaClient) ReadLatestAuthorizationModel ¶
func (client *OpenFgaClient) ReadLatestAuthorizationModel(ctx _context.Context) SdkClientReadLatestAuthorizationModelRequestInterface
func (*OpenFgaClient) ReadLatestAuthorizationModelExecute ¶
func (client *OpenFgaClient) ReadLatestAuthorizationModelExecute(request SdkClientReadLatestAuthorizationModelRequestInterface) (*ClientReadAuthorizationModelResponse, error)
func (*OpenFgaClient) SetAuthorizationModelId ¶ added in v0.3.0
func (client *OpenFgaClient) SetAuthorizationModelId(authorizationModelId string) error
func (*OpenFgaClient) SetStoreId ¶ added in v0.4.0
func (client *OpenFgaClient) SetStoreId(storeId string) error
func (*OpenFgaClient) Write ¶
func (client *OpenFgaClient) Write(ctx _context.Context) SdkClientWriteRequestInterface
func (*OpenFgaClient) WriteAssertions ¶
func (client *OpenFgaClient) WriteAssertions(ctx _context.Context) SdkClientWriteAssertionsRequestInterface
func (*OpenFgaClient) WriteAssertionsExecute ¶
func (client *OpenFgaClient) WriteAssertionsExecute(request SdkClientWriteAssertionsRequestInterface) (*ClientWriteAssertionsResponse, error)
func (*OpenFgaClient) WriteAuthorizationModel ¶
func (client *OpenFgaClient) WriteAuthorizationModel(ctx _context.Context) SdkClientWriteAuthorizationModelRequestInterface
func (*OpenFgaClient) WriteAuthorizationModelExecute ¶
func (client *OpenFgaClient) WriteAuthorizationModelExecute(request SdkClientWriteAuthorizationModelRequestInterface) (*ClientWriteAuthorizationModelResponse, error)
func (*OpenFgaClient) WriteExecute ¶
func (client *OpenFgaClient) WriteExecute(request SdkClientWriteRequestInterface) (*ClientWriteResponse, error)
func (*OpenFgaClient) WriteTuples ¶
func (client *OpenFgaClient) WriteTuples(ctx _context.Context) SdkClientWriteTuplesRequestInterface
func (*OpenFgaClient) WriteTuplesExecute ¶
func (client *OpenFgaClient) WriteTuplesExecute(request SdkClientWriteTuplesRequestInterface) (*ClientWriteResponse, error)
type SdkClient ¶
type SdkClient interface { /* * ListStores Get a paginated list of stores. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientListStoresRequestInterface */ ListStores(ctx _context.Context) SdkClientListStoresRequestInterface /* * ListStoresExecute executes the ListStores request * @return *ClientListStoresResponse */ ListStoresExecute(request SdkClientListStoresRequestInterface) (*ClientListStoresResponse, error) /* * CreateStore Create and initialize a store * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientCreateStoreRequestInterface */ CreateStore(ctx _context.Context) SdkClientCreateStoreRequestInterface /* * CreateStoreExecute executes the CreateStore request * @return *ClientCreateStoreResponse */ CreateStoreExecute(request SdkClientCreateStoreRequestInterface) (*ClientCreateStoreResponse, error) /* * GetStore Get information about the current store. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientGetStoreRequestInterface */ GetStore(ctx _context.Context) SdkClientGetStoreRequestInterface /* * GetStoreExecute executes the GetStore request * @return *ClientGetStoreResponse */ GetStoreExecute(request SdkClientGetStoreRequestInterface) (*ClientGetStoreResponse, error) /* * DeleteStore Delete a store. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientDeleteStoreRequestInterface */ DeleteStore(ctx _context.Context) SdkClientDeleteStoreRequestInterface /* * DeleteStoreExecute executes the DeleteStore request * @return *ClientDeleteStoreResponse */ DeleteStoreExecute(request SdkClientDeleteStoreRequestInterface) (*ClientDeleteStoreResponse, error) /* * ReadAuthorizationModels Read all authorization models in the store. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientReadAuthorizationModelsRequest */ ReadAuthorizationModels(ctx _context.Context) SdkClientReadAuthorizationModelsRequestInterface /* * ReadAuthorizationModelsExecute executes the ReadAuthorizationModels request * @return *ClientReadAuthorizationModelsResponse */ ReadAuthorizationModelsExecute(request SdkClientReadAuthorizationModelsRequestInterface) (*ClientReadAuthorizationModelsResponse, error) /* * WriteAuthorizationModel Create a new authorization model. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientWriteAuthorizationModelRequest */ WriteAuthorizationModel(ctx _context.Context) SdkClientWriteAuthorizationModelRequestInterface /* * WriteAuthorizationModelExecute executes the WriteAuthorizationModel request * @return *ClientWriteAuthorizationModelResponse */ WriteAuthorizationModelExecute(request SdkClientWriteAuthorizationModelRequestInterface) (*ClientWriteAuthorizationModelResponse, error) /* * ReadAuthorizationModel Read a particular authorization model. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientReadAuthorizationModelRequestInterface */ ReadAuthorizationModel(ctx _context.Context) SdkClientReadAuthorizationModelRequestInterface /* * ReadAuthorizationModelExecute executes the ReadAuthorizationModel request * @return *ClientReadAuthorizationModelResponse */ ReadAuthorizationModelExecute(request SdkClientReadAuthorizationModelRequestInterface) (*ClientReadAuthorizationModelResponse, error) /* * ReadLatestAuthorizationModel Reads the latest authorization model (note: this ignores the model id in configuration). * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientReadLatestAuthorizationModelRequestInterface */ ReadLatestAuthorizationModel(ctx _context.Context) SdkClientReadLatestAuthorizationModelRequestInterface /* * ReadLatestAuthorizationModelExecute executes the ReadLatestAuthorizationModel request * @return *ClientReadAuthorizationModelResponse */ ReadLatestAuthorizationModelExecute(request SdkClientReadLatestAuthorizationModelRequestInterface) (*ClientReadAuthorizationModelResponse, error) /* * ReadChanges Reads the list of historical relationship tuple writes and deletes. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientReadChangesRequestInterface */ ReadChanges(ctx _context.Context) SdkClientReadChangesRequestInterface /* * ReadChangesExecute executes the ReadChanges request * @return *ClientReadChangesResponse */ ReadChangesExecute(request SdkClientReadChangesRequestInterface) (*ClientReadChangesResponse, error) /* * Read Reads the relationship tuples stored in the database. It does not evaluate nor exclude invalid tuples according to the authorization model. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientReadRequestInterface */ Read(ctx _context.Context) SdkClientReadRequestInterface /* * ReadExecute executes the Read request * @return *ClientReadResponse */ ReadExecute(request SdkClientReadRequestInterface) (*ClientReadResponse, error) /* * Write Create and/or delete relationship tuples to update the system state. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientWriteRequestInterface */ Write(ctx _context.Context) SdkClientWriteRequestInterface /* * WriteExecute executes the Write request * @return *ClientWriteResponse */ WriteExecute(request SdkClientWriteRequestInterface) (*ClientWriteResponse, error) /* * WriteTuples Utility method around Write * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientWriteTuplesRequestInterface */ WriteTuples(ctx _context.Context) SdkClientWriteTuplesRequestInterface /* * WriteTuplesExecute executes the WriteTuples request * @return *ClientWriteResponse */ WriteTuplesExecute(request SdkClientWriteTuplesRequestInterface) (*ClientWriteResponse, error) /* * DeleteTuples Utility method around Write * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientDeleteTuplesRequestInterface */ DeleteTuples(ctx _context.Context) SdkClientDeleteTuplesRequestInterface /* * DeleteTuplesExecute executes the DeleteTuples request * @return *ClientWriteResponse */ DeleteTuplesExecute(request SdkClientDeleteTuplesRequestInterface) (*ClientWriteResponse, error) /* * Check Check if a user has a particular relation with an object. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientCheckRequestInterface */ Check(ctx _context.Context) SdkClientCheckRequestInterface /* * CheckExecute executes the Check request * @return *ClientCheckResponse */ CheckExecute(request SdkClientCheckRequestInterface) (*ClientCheckResponse, error) /* * BatchCheck Run a set of [checks](#check). Batch Check will return `allowed: false` if it encounters an error, and will return the error in the body. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientBatchCheckRequestInterface */ BatchCheck(ctx _context.Context) SdkClientBatchCheckRequestInterface /* * BatchCheckExecute executes the BatchCheck request * @return *ClientBatchCheckResponse */ BatchCheckExecute(request SdkClientBatchCheckRequestInterface) (*ClientBatchCheckResponse, error) /* * Expand Expands the relationships in userset tree format. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientExpandRequestInterface */ Expand(ctx _context.Context) SdkClientExpandRequestInterface /* * ExpandExecute executes the Expand request * @return *ClientExpandResponse */ ExpandExecute(request SdkClientExpandRequestInterface) (*ClientExpandResponse, error) /* * ListObjects List the objects of a particular type a user has access to. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientListObjectsRequestInterface */ ListObjects(ctx _context.Context) SdkClientListObjectsRequestInterface /* * ListObjectsExecute executes the ListObjects request * @return *ClientListObjectsResponse */ ListObjectsExecute(request SdkClientListObjectsRequestInterface) (*ClientListObjectsResponse, error) /* * ListRelations List the relations a user has on an object. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientListRelationsRequestInterface */ ListRelations(ctx _context.Context) SdkClientListRelationsRequestInterface /* * ListRelationsExecute executes the ListRelations request * @return *ClientListRelationsResponse */ ListRelationsExecute(request SdkClientListRelationsRequestInterface) (*ClientListRelationsResponse, error) /* * ListUsers List all users of the given type that the object has a relation with * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiListUsersRequest */ ListUsers(ctx _context.Context) SdkClientListUsersRequestInterface /* * ListUsersExecute executes the request * @return ListUsersResponse */ ListUsersExecute(r SdkClientListUsersRequestInterface) (*ClientListUsersResponse, error) /* * ReadAssertions Read assertions for a particular authorization model. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientReadAssertionsRequestInterface */ ReadAssertions(ctx _context.Context) SdkClientReadAssertionsRequestInterface /* * ReadAssertionsExecute executes the ReadAssertions request * @return *ClientReadAssertionsResponse */ ReadAssertionsExecute(request SdkClientReadAssertionsRequestInterface) (*ClientReadAssertionsResponse, error) /* * WriteAssertions Update the assertions for a particular authorization model. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return SdkClientWriteAssertionsRequestInterface */ WriteAssertions(ctx _context.Context) SdkClientWriteAssertionsRequestInterface /* * WriteAssertionsExecute executes the WriteAssertions request * @return *ClientWriteAssertionsResponse */ WriteAssertionsExecute(request SdkClientWriteAssertionsRequestInterface) (*ClientWriteAssertionsResponse, error) }
type SdkClientBatchCheckRequest ¶
type SdkClientBatchCheckRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
func (*SdkClientBatchCheckRequest) Body ¶
func (request *SdkClientBatchCheckRequest) Body(body ClientBatchCheckBody) SdkClientBatchCheckRequestInterface
func (*SdkClientBatchCheckRequest) Execute ¶
func (request *SdkClientBatchCheckRequest) Execute() (*ClientBatchCheckResponse, error)
func (*SdkClientBatchCheckRequest) GetAuthorizationModelIdOverride ¶ added in v0.2.3
func (request *SdkClientBatchCheckRequest) GetAuthorizationModelIdOverride() *string
func (*SdkClientBatchCheckRequest) GetBody ¶ added in v0.2.3
func (request *SdkClientBatchCheckRequest) GetBody() *ClientBatchCheckBody
func (*SdkClientBatchCheckRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientBatchCheckRequest) GetContext() _context.Context
func (*SdkClientBatchCheckRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientBatchCheckRequest) GetOptions() *ClientBatchCheckOptions
func (*SdkClientBatchCheckRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientBatchCheckRequest) GetStoreIdOverride() *string
func (*SdkClientBatchCheckRequest) Options ¶
func (request *SdkClientBatchCheckRequest) Options(options ClientBatchCheckOptions) SdkClientBatchCheckRequestInterface
type SdkClientBatchCheckRequestInterface ¶ added in v0.2.3
type SdkClientBatchCheckRequestInterface interface { Options(options ClientBatchCheckOptions) SdkClientBatchCheckRequestInterface Body(body ClientBatchCheckBody) SdkClientBatchCheckRequestInterface Execute() (*ClientBatchCheckResponse, error) GetAuthorizationModelIdOverride() *string GetStoreIdOverride() *string GetContext() _context.Context GetBody() *ClientBatchCheckBody GetOptions() *ClientBatchCheckOptions }
type SdkClientCheckRequest ¶
type SdkClientCheckRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
func (*SdkClientCheckRequest) Body ¶
func (request *SdkClientCheckRequest) Body(body ClientCheckRequest) SdkClientCheckRequestInterface
func (*SdkClientCheckRequest) Execute ¶
func (request *SdkClientCheckRequest) Execute() (*ClientCheckResponse, error)
func (*SdkClientCheckRequest) GetAuthorizationModelIdOverride ¶ added in v0.2.3
func (request *SdkClientCheckRequest) GetAuthorizationModelIdOverride() *string
func (*SdkClientCheckRequest) GetBody ¶ added in v0.2.3
func (request *SdkClientCheckRequest) GetBody() *ClientCheckRequest
func (*SdkClientCheckRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientCheckRequest) GetContext() _context.Context
func (*SdkClientCheckRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientCheckRequest) GetOptions() *ClientCheckOptions
func (*SdkClientCheckRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientCheckRequest) GetStoreIdOverride() *string
func (*SdkClientCheckRequest) Options ¶
func (request *SdkClientCheckRequest) Options(options ClientCheckOptions) SdkClientCheckRequestInterface
type SdkClientCheckRequestInterface ¶ added in v0.2.3
type SdkClientCheckRequestInterface interface { Options(options ClientCheckOptions) SdkClientCheckRequestInterface Body(body ClientCheckRequest) SdkClientCheckRequestInterface Execute() (*ClientCheckResponse, error) GetAuthorizationModelIdOverride() *string GetStoreIdOverride() *string GetContext() _context.Context GetBody() *ClientCheckRequest GetOptions() *ClientCheckOptions }
type SdkClientCreateStoreRequest ¶
type SdkClientCreateStoreRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ CreateStore
func (*SdkClientCreateStoreRequest) Body ¶
func (request *SdkClientCreateStoreRequest) Body(body ClientCreateStoreRequest) SdkClientCreateStoreRequestInterface
func (*SdkClientCreateStoreRequest) Execute ¶
func (request *SdkClientCreateStoreRequest) Execute() (*ClientCreateStoreResponse, error)
func (*SdkClientCreateStoreRequest) GetBody ¶ added in v0.2.3
func (request *SdkClientCreateStoreRequest) GetBody() *ClientCreateStoreRequest
func (*SdkClientCreateStoreRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientCreateStoreRequest) GetContext() _context.Context
func (*SdkClientCreateStoreRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientCreateStoreRequest) GetOptions() *ClientCreateStoreOptions
func (*SdkClientCreateStoreRequest) Options ¶
func (request *SdkClientCreateStoreRequest) Options(options ClientCreateStoreOptions) SdkClientCreateStoreRequestInterface
type SdkClientCreateStoreRequestInterface ¶ added in v0.2.3
type SdkClientCreateStoreRequestInterface interface { Options(options ClientCreateStoreOptions) SdkClientCreateStoreRequestInterface Body(body ClientCreateStoreRequest) SdkClientCreateStoreRequestInterface Execute() (*ClientCreateStoreResponse, error) GetContext() _context.Context GetOptions() *ClientCreateStoreOptions GetBody() *ClientCreateStoreRequest }
type SdkClientDeleteStoreRequest ¶
type SdkClientDeleteStoreRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ DeleteStore
func (*SdkClientDeleteStoreRequest) Execute ¶
func (request *SdkClientDeleteStoreRequest) Execute() (*ClientDeleteStoreResponse, error)
func (*SdkClientDeleteStoreRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientDeleteStoreRequest) GetContext() _context.Context
func (*SdkClientDeleteStoreRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientDeleteStoreRequest) GetOptions() *ClientDeleteStoreOptions
func (*SdkClientDeleteStoreRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientDeleteStoreRequest) GetStoreIdOverride() *string
func (*SdkClientDeleteStoreRequest) Options ¶
func (request *SdkClientDeleteStoreRequest) Options(options ClientDeleteStoreOptions) SdkClientDeleteStoreRequestInterface
type SdkClientDeleteStoreRequestInterface ¶ added in v0.2.3
type SdkClientDeleteStoreRequestInterface interface { Options(options ClientDeleteStoreOptions) SdkClientDeleteStoreRequestInterface Execute() (*ClientDeleteStoreResponse, error) GetStoreIdOverride() *string GetContext() _context.Context GetOptions() *ClientDeleteStoreOptions }
type SdkClientDeleteTuplesRequest ¶
type SdkClientDeleteTuplesRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ DeleteTuples
func (*SdkClientDeleteTuplesRequest) Body ¶
func (request *SdkClientDeleteTuplesRequest) Body(body ClientDeleteTuplesBody) SdkClientDeleteTuplesRequestInterface
func (*SdkClientDeleteTuplesRequest) Execute ¶
func (request *SdkClientDeleteTuplesRequest) Execute() (*ClientWriteResponse, error)
func (*SdkClientDeleteTuplesRequest) GetBody ¶ added in v0.2.3
func (request *SdkClientDeleteTuplesRequest) GetBody() *ClientDeleteTuplesBody
func (*SdkClientDeleteTuplesRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientDeleteTuplesRequest) GetContext() _context.Context
func (*SdkClientDeleteTuplesRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientDeleteTuplesRequest) GetOptions() *ClientWriteOptions
func (*SdkClientDeleteTuplesRequest) Options ¶
func (request *SdkClientDeleteTuplesRequest) Options(options ClientWriteOptions) SdkClientDeleteTuplesRequestInterface
type SdkClientDeleteTuplesRequestInterface ¶ added in v0.2.3
type SdkClientDeleteTuplesRequestInterface interface { Options(options ClientWriteOptions) SdkClientDeleteTuplesRequestInterface Body(body ClientDeleteTuplesBody) SdkClientDeleteTuplesRequestInterface Execute() (*ClientWriteResponse, error) GetContext() _context.Context GetBody() *ClientDeleteTuplesBody GetOptions() *ClientWriteOptions }
type SdkClientExpandRequest ¶
type SdkClientExpandRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ Expand
func (*SdkClientExpandRequest) Body ¶
func (request *SdkClientExpandRequest) Body(body ClientExpandRequest) SdkClientExpandRequestInterface
func (*SdkClientExpandRequest) Execute ¶
func (request *SdkClientExpandRequest) Execute() (*ClientExpandResponse, error)
func (*SdkClientExpandRequest) GetAuthorizationModelIdOverride ¶ added in v0.2.3
func (request *SdkClientExpandRequest) GetAuthorizationModelIdOverride() *string
func (*SdkClientExpandRequest) GetBody ¶ added in v0.2.3
func (request *SdkClientExpandRequest) GetBody() *ClientExpandRequest
func (*SdkClientExpandRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientExpandRequest) GetContext() _context.Context
func (*SdkClientExpandRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientExpandRequest) GetOptions() *ClientExpandOptions
func (*SdkClientExpandRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientExpandRequest) GetStoreIdOverride() *string
func (*SdkClientExpandRequest) Options ¶
func (request *SdkClientExpandRequest) Options(options ClientExpandOptions) SdkClientExpandRequestInterface
type SdkClientExpandRequestInterface ¶ added in v0.2.3
type SdkClientExpandRequestInterface interface { Options(options ClientExpandOptions) SdkClientExpandRequestInterface Body(body ClientExpandRequest) SdkClientExpandRequestInterface Execute() (*ClientExpandResponse, error) GetAuthorizationModelIdOverride() *string GetStoreIdOverride() *string GetContext() _context.Context GetBody() *ClientExpandRequest GetOptions() *ClientExpandOptions }
type SdkClientGetStoreRequest ¶
type SdkClientGetStoreRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ GetStore
func (*SdkClientGetStoreRequest) Execute ¶
func (request *SdkClientGetStoreRequest) Execute() (*ClientGetStoreResponse, error)
func (*SdkClientGetStoreRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientGetStoreRequest) GetContext() _context.Context
func (*SdkClientGetStoreRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientGetStoreRequest) GetOptions() *ClientGetStoreOptions
func (*SdkClientGetStoreRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientGetStoreRequest) GetStoreIdOverride() *string
func (*SdkClientGetStoreRequest) Options ¶
func (request *SdkClientGetStoreRequest) Options(options ClientGetStoreOptions) SdkClientGetStoreRequestInterface
type SdkClientGetStoreRequestInterface ¶ added in v0.2.3
type SdkClientGetStoreRequestInterface interface { Options(options ClientGetStoreOptions) SdkClientGetStoreRequestInterface Execute() (*ClientGetStoreResponse, error) GetStoreIdOverride() *string GetContext() _context.Context GetOptions() *ClientGetStoreOptions }
type SdkClientListObjectsRequest ¶
type SdkClientListObjectsRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ ListObjects
func (*SdkClientListObjectsRequest) Body ¶
func (request *SdkClientListObjectsRequest) Body(body ClientListObjectsRequest) SdkClientListObjectsRequestInterface
func (*SdkClientListObjectsRequest) Execute ¶
func (request *SdkClientListObjectsRequest) Execute() (*ClientListObjectsResponse, error)
func (*SdkClientListObjectsRequest) GetAuthorizationModelIdOverride ¶ added in v0.2.3
func (request *SdkClientListObjectsRequest) GetAuthorizationModelIdOverride() *string
func (*SdkClientListObjectsRequest) GetBody ¶ added in v0.2.3
func (request *SdkClientListObjectsRequest) GetBody() *ClientListObjectsRequest
func (*SdkClientListObjectsRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientListObjectsRequest) GetContext() _context.Context
func (*SdkClientListObjectsRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientListObjectsRequest) GetOptions() *ClientListObjectsOptions
func (*SdkClientListObjectsRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientListObjectsRequest) GetStoreIdOverride() *string
func (*SdkClientListObjectsRequest) Options ¶
func (request *SdkClientListObjectsRequest) Options(options ClientListObjectsOptions) SdkClientListObjectsRequestInterface
type SdkClientListObjectsRequestInterface ¶ added in v0.2.3
type SdkClientListObjectsRequestInterface interface { Options(options ClientListObjectsOptions) SdkClientListObjectsRequestInterface Body(body ClientListObjectsRequest) SdkClientListObjectsRequestInterface Execute() (*ClientListObjectsResponse, error) GetAuthorizationModelIdOverride() *string GetStoreIdOverride() *string GetContext() _context.Context GetBody() *ClientListObjectsRequest GetOptions() *ClientListObjectsOptions }
type SdkClientListRelationsRequest ¶
type SdkClientListRelationsRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
func (*SdkClientListRelationsRequest) Body ¶
func (request *SdkClientListRelationsRequest) Body(body ClientListRelationsRequest) SdkClientListRelationsRequestInterface
func (*SdkClientListRelationsRequest) Execute ¶
func (request *SdkClientListRelationsRequest) Execute() (*ClientListRelationsResponse, error)
func (*SdkClientListRelationsRequest) GetAuthorizationModelIdOverride ¶ added in v0.2.3
func (request *SdkClientListRelationsRequest) GetAuthorizationModelIdOverride() *string
func (*SdkClientListRelationsRequest) GetBody ¶ added in v0.2.3
func (request *SdkClientListRelationsRequest) GetBody() *ClientListRelationsRequest
func (*SdkClientListRelationsRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientListRelationsRequest) GetContext() _context.Context
func (*SdkClientListRelationsRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientListRelationsRequest) GetOptions() *ClientListRelationsOptions
func (*SdkClientListRelationsRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientListRelationsRequest) GetStoreIdOverride() *string
func (*SdkClientListRelationsRequest) Options ¶
func (request *SdkClientListRelationsRequest) Options(options ClientListRelationsOptions) SdkClientListRelationsRequestInterface
type SdkClientListRelationsRequestInterface ¶ added in v0.2.3
type SdkClientListRelationsRequestInterface interface { Options(options ClientListRelationsOptions) SdkClientListRelationsRequestInterface Body(body ClientListRelationsRequest) SdkClientListRelationsRequestInterface Execute() (*ClientListRelationsResponse, error) GetAuthorizationModelIdOverride() *string GetStoreIdOverride() *string GetContext() _context.Context GetBody() *ClientListRelationsRequest GetOptions() *ClientListRelationsOptions }
type SdkClientListStoresRequest ¶
type SdkClientListStoresRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ ListStores
func (*SdkClientListStoresRequest) Execute ¶
func (request *SdkClientListStoresRequest) Execute() (*ClientListStoresResponse, error)
func (*SdkClientListStoresRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientListStoresRequest) GetContext() _context.Context
func (*SdkClientListStoresRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientListStoresRequest) GetOptions() *ClientListStoresOptions
func (*SdkClientListStoresRequest) Options ¶
func (request *SdkClientListStoresRequest) Options(options ClientListStoresOptions) SdkClientListStoresRequestInterface
type SdkClientListStoresRequestInterface ¶ added in v0.2.3
type SdkClientListStoresRequestInterface interface { Options(options ClientListStoresOptions) SdkClientListStoresRequestInterface Execute() (*ClientListStoresResponse, error) GetContext() _context.Context GetOptions() *ClientListStoresOptions }
type SdkClientListUsersRequest ¶ added in v0.3.6
type SdkClientListUsersRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ ListUsers
func (*SdkClientListUsersRequest) Body ¶ added in v0.3.6
func (request *SdkClientListUsersRequest) Body(body ClientListUsersRequest) SdkClientListUsersRequestInterface
func (*SdkClientListUsersRequest) Execute ¶ added in v0.3.6
func (request *SdkClientListUsersRequest) Execute() (*ClientListUsersResponse, error)
func (*SdkClientListUsersRequest) GetAuthorizationModelIdOverride ¶ added in v0.3.6
func (request *SdkClientListUsersRequest) GetAuthorizationModelIdOverride() *string
func (*SdkClientListUsersRequest) GetBody ¶ added in v0.3.6
func (request *SdkClientListUsersRequest) GetBody() *ClientListUsersRequest
func (*SdkClientListUsersRequest) GetContext ¶ added in v0.3.6
func (request *SdkClientListUsersRequest) GetContext() _context.Context
func (*SdkClientListUsersRequest) GetOptions ¶ added in v0.3.6
func (request *SdkClientListUsersRequest) GetOptions() *ClientListUsersOptions
func (*SdkClientListUsersRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientListUsersRequest) GetStoreIdOverride() *string
func (*SdkClientListUsersRequest) Options ¶ added in v0.3.6
func (request *SdkClientListUsersRequest) Options(options ClientListUsersOptions) SdkClientListUsersRequestInterface
type SdkClientListUsersRequestInterface ¶ added in v0.3.6
type SdkClientListUsersRequestInterface interface { Options(options ClientListUsersOptions) SdkClientListUsersRequestInterface Body(body ClientListUsersRequest) SdkClientListUsersRequestInterface Execute() (*ClientListUsersResponse, error) GetAuthorizationModelIdOverride() *string GetStoreIdOverride() *string GetContext() _context.Context GetBody() *ClientListUsersRequest GetOptions() *ClientListUsersOptions }
type SdkClientReadAssertionsRequest ¶
type SdkClientReadAssertionsRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ ReadAssertions
func (*SdkClientReadAssertionsRequest) Execute ¶
func (request *SdkClientReadAssertionsRequest) Execute() (*ClientReadAssertionsResponse, error)
func (*SdkClientReadAssertionsRequest) GetAuthorizationModelIdOverride ¶ added in v0.2.3
func (request *SdkClientReadAssertionsRequest) GetAuthorizationModelIdOverride() *string
func (*SdkClientReadAssertionsRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientReadAssertionsRequest) GetContext() _context.Context
func (*SdkClientReadAssertionsRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientReadAssertionsRequest) GetOptions() *ClientReadAssertionsOptions
func (*SdkClientReadAssertionsRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientReadAssertionsRequest) GetStoreIdOverride() *string
func (*SdkClientReadAssertionsRequest) Options ¶
func (request *SdkClientReadAssertionsRequest) Options(options ClientReadAssertionsOptions) SdkClientReadAssertionsRequestInterface
type SdkClientReadAssertionsRequestInterface ¶ added in v0.2.3
type SdkClientReadAssertionsRequestInterface interface { Options(options ClientReadAssertionsOptions) SdkClientReadAssertionsRequestInterface Execute() (*ClientReadAssertionsResponse, error) GetAuthorizationModelIdOverride() *string GetStoreIdOverride() *string GetContext() _context.Context GetOptions() *ClientReadAssertionsOptions }
type SdkClientReadAuthorizationModelRequest ¶
type SdkClientReadAuthorizationModelRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ ReadAuthorizationModel
func (*SdkClientReadAuthorizationModelRequest) Execute ¶
func (request *SdkClientReadAuthorizationModelRequest) Execute() (*ClientReadAuthorizationModelResponse, error)
func (*SdkClientReadAuthorizationModelRequest) GetAuthorizationModelIdOverride ¶ added in v0.2.3
func (request *SdkClientReadAuthorizationModelRequest) GetAuthorizationModelIdOverride() *string
func (*SdkClientReadAuthorizationModelRequest) GetBody ¶ added in v0.2.3
func (request *SdkClientReadAuthorizationModelRequest) GetBody() *ClientReadAuthorizationModelRequest
func (*SdkClientReadAuthorizationModelRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientReadAuthorizationModelRequest) GetContext() _context.Context
func (*SdkClientReadAuthorizationModelRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientReadAuthorizationModelRequest) GetOptions() *ClientReadAuthorizationModelOptions
func (*SdkClientReadAuthorizationModelRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientReadAuthorizationModelRequest) GetStoreIdOverride() *string
func (*SdkClientReadAuthorizationModelRequest) Options ¶
func (request *SdkClientReadAuthorizationModelRequest) Options(options ClientReadAuthorizationModelOptions) SdkClientReadAuthorizationModelRequestInterface
type SdkClientReadAuthorizationModelRequestInterface ¶ added in v0.2.3
type SdkClientReadAuthorizationModelRequestInterface interface { Options(options ClientReadAuthorizationModelOptions) SdkClientReadAuthorizationModelRequestInterface Body(body ClientReadAuthorizationModelRequest) SdkClientReadAuthorizationModelRequestInterface Execute() (*ClientReadAuthorizationModelResponse, error) GetAuthorizationModelIdOverride() *string GetStoreIdOverride() *string GetContext() _context.Context GetBody() *ClientReadAuthorizationModelRequest GetOptions() *ClientReadAuthorizationModelOptions }
type SdkClientReadAuthorizationModelsRequest ¶
type SdkClientReadAuthorizationModelsRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ ReadAuthorizationModels
func (*SdkClientReadAuthorizationModelsRequest) Execute ¶
func (request *SdkClientReadAuthorizationModelsRequest) Execute() (*ClientReadAuthorizationModelsResponse, error)
func (*SdkClientReadAuthorizationModelsRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientReadAuthorizationModelsRequest) GetContext() _context.Context
func (*SdkClientReadAuthorizationModelsRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientReadAuthorizationModelsRequest) GetOptions() *ClientReadAuthorizationModelsOptions
func (*SdkClientReadAuthorizationModelsRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientReadAuthorizationModelsRequest) GetStoreIdOverride() *string
func (*SdkClientReadAuthorizationModelsRequest) Options ¶
func (request *SdkClientReadAuthorizationModelsRequest) Options(options ClientReadAuthorizationModelsOptions) SdkClientReadAuthorizationModelsRequestInterface
type SdkClientReadAuthorizationModelsRequestInterface ¶ added in v0.2.3
type SdkClientReadAuthorizationModelsRequestInterface interface { Options(options ClientReadAuthorizationModelsOptions) SdkClientReadAuthorizationModelsRequestInterface Execute() (*ClientReadAuthorizationModelsResponse, error) GetStoreIdOverride() *string GetContext() _context.Context GetOptions() *ClientReadAuthorizationModelsOptions }
type SdkClientReadChangesRequest ¶
type SdkClientReadChangesRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ ReadChanges
func (*SdkClientReadChangesRequest) Body ¶
func (request *SdkClientReadChangesRequest) Body(body ClientReadChangesRequest) SdkClientReadChangesRequestInterface
func (*SdkClientReadChangesRequest) Execute ¶
func (request *SdkClientReadChangesRequest) Execute() (*ClientReadChangesResponse, error)
func (*SdkClientReadChangesRequest) GetBody ¶ added in v0.2.3
func (request *SdkClientReadChangesRequest) GetBody() *ClientReadChangesRequest
func (*SdkClientReadChangesRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientReadChangesRequest) GetContext() _context.Context
func (*SdkClientReadChangesRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientReadChangesRequest) GetOptions() *ClientReadChangesOptions
func (*SdkClientReadChangesRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientReadChangesRequest) GetStoreIdOverride() *string
func (*SdkClientReadChangesRequest) Options ¶
func (request *SdkClientReadChangesRequest) Options(options ClientReadChangesOptions) SdkClientReadChangesRequestInterface
type SdkClientReadChangesRequestInterface ¶ added in v0.2.3
type SdkClientReadChangesRequestInterface interface { Options(options ClientReadChangesOptions) SdkClientReadChangesRequestInterface Body(body ClientReadChangesRequest) SdkClientReadChangesRequestInterface Execute() (*ClientReadChangesResponse, error) GetStoreIdOverride() *string GetContext() _context.Context GetBody() *ClientReadChangesRequest GetOptions() *ClientReadChangesOptions }
type SdkClientReadLatestAuthorizationModelRequest ¶
type SdkClientReadLatestAuthorizationModelRequest struct { Client OpenFgaClient // contains filtered or unexported fields }
/ ReadLatestAuthorizationModel
func (*SdkClientReadLatestAuthorizationModelRequest) Execute ¶
func (request *SdkClientReadLatestAuthorizationModelRequest) Execute() (*ClientReadAuthorizationModelResponse, error)
func (*SdkClientReadLatestAuthorizationModelRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientReadLatestAuthorizationModelRequest) GetContext() _context.Context
func (*SdkClientReadLatestAuthorizationModelRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientReadLatestAuthorizationModelRequest) GetOptions() *ClientReadLatestAuthorizationModelOptions
func (*SdkClientReadLatestAuthorizationModelRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientReadLatestAuthorizationModelRequest) GetStoreIdOverride() *string
func (*SdkClientReadLatestAuthorizationModelRequest) Options ¶
func (request *SdkClientReadLatestAuthorizationModelRequest) Options(options ClientReadLatestAuthorizationModelOptions) SdkClientReadLatestAuthorizationModelRequestInterface
type SdkClientReadLatestAuthorizationModelRequestInterface ¶ added in v0.2.3
type SdkClientReadLatestAuthorizationModelRequestInterface interface { Options(options ClientReadLatestAuthorizationModelOptions) SdkClientReadLatestAuthorizationModelRequestInterface Execute() (*ClientReadAuthorizationModelResponse, error) GetStoreIdOverride() *string GetContext() _context.Context GetOptions() *ClientReadLatestAuthorizationModelOptions }
type SdkClientReadRequest ¶
type SdkClientReadRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ Read
func (*SdkClientReadRequest) Body ¶
func (request *SdkClientReadRequest) Body(body ClientReadRequest) SdkClientReadRequestInterface
func (*SdkClientReadRequest) Execute ¶
func (request *SdkClientReadRequest) Execute() (*ClientReadResponse, error)
func (*SdkClientReadRequest) GetBody ¶ added in v0.2.3
func (request *SdkClientReadRequest) GetBody() *ClientReadRequest
func (*SdkClientReadRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientReadRequest) GetContext() _context.Context
func (*SdkClientReadRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientReadRequest) GetOptions() *ClientReadOptions
func (*SdkClientReadRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientReadRequest) GetStoreIdOverride() *string
func (*SdkClientReadRequest) Options ¶
func (request *SdkClientReadRequest) Options(options ClientReadOptions) SdkClientReadRequestInterface
type SdkClientReadRequestInterface ¶ added in v0.2.3
type SdkClientReadRequestInterface interface { Options(options ClientReadOptions) SdkClientReadRequestInterface Body(body ClientReadRequest) SdkClientReadRequestInterface Execute() (*ClientReadResponse, error) GetStoreIdOverride() *string GetContext() _context.Context GetBody() *ClientReadRequest GetOptions() *ClientReadOptions }
type SdkClientWriteAssertionsRequest ¶
type SdkClientWriteAssertionsRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ WriteAssertions
func (*SdkClientWriteAssertionsRequest) Body ¶
func (request *SdkClientWriteAssertionsRequest) Body(body ClientWriteAssertionsRequest) SdkClientWriteAssertionsRequestInterface
func (*SdkClientWriteAssertionsRequest) Execute ¶
func (request *SdkClientWriteAssertionsRequest) Execute() (*ClientWriteAssertionsResponse, error)
func (*SdkClientWriteAssertionsRequest) GetAuthorizationModelIdOverride ¶ added in v0.2.3
func (request *SdkClientWriteAssertionsRequest) GetAuthorizationModelIdOverride() *string
func (*SdkClientWriteAssertionsRequest) GetBody ¶ added in v0.2.3
func (request *SdkClientWriteAssertionsRequest) GetBody() *ClientWriteAssertionsRequest
func (*SdkClientWriteAssertionsRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientWriteAssertionsRequest) GetContext() _context.Context
func (*SdkClientWriteAssertionsRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientWriteAssertionsRequest) GetOptions() *ClientWriteAssertionsOptions
func (*SdkClientWriteAssertionsRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientWriteAssertionsRequest) GetStoreIdOverride() *string
func (*SdkClientWriteAssertionsRequest) Options ¶
func (request *SdkClientWriteAssertionsRequest) Options(options ClientWriteAssertionsOptions) SdkClientWriteAssertionsRequestInterface
type SdkClientWriteAssertionsRequestInterface ¶ added in v0.2.3
type SdkClientWriteAssertionsRequestInterface interface { Options(options ClientWriteAssertionsOptions) SdkClientWriteAssertionsRequestInterface Body(body ClientWriteAssertionsRequest) SdkClientWriteAssertionsRequestInterface Execute() (*ClientWriteAssertionsResponse, error) GetAuthorizationModelIdOverride() *string GetStoreIdOverride() *string GetContext() _context.Context GetBody() *ClientWriteAssertionsRequest GetOptions() *ClientWriteAssertionsOptions }
type SdkClientWriteAuthorizationModelRequest ¶
type SdkClientWriteAuthorizationModelRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ WriteAuthorizationModel
func (*SdkClientWriteAuthorizationModelRequest) Execute ¶
func (request *SdkClientWriteAuthorizationModelRequest) Execute() (*ClientWriteAuthorizationModelResponse, error)
func (*SdkClientWriteAuthorizationModelRequest) GetBody ¶ added in v0.2.3
func (request *SdkClientWriteAuthorizationModelRequest) GetBody() *ClientWriteAuthorizationModelRequest
func (*SdkClientWriteAuthorizationModelRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientWriteAuthorizationModelRequest) GetContext() _context.Context
func (*SdkClientWriteAuthorizationModelRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientWriteAuthorizationModelRequest) GetOptions() *ClientWriteAuthorizationModelOptions
func (*SdkClientWriteAuthorizationModelRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientWriteAuthorizationModelRequest) GetStoreIdOverride() *string
func (*SdkClientWriteAuthorizationModelRequest) Options ¶
func (request *SdkClientWriteAuthorizationModelRequest) Options(options ClientWriteAuthorizationModelOptions) SdkClientWriteAuthorizationModelRequestInterface
type SdkClientWriteAuthorizationModelRequestInterface ¶ added in v0.2.3
type SdkClientWriteAuthorizationModelRequestInterface interface { Options(options ClientWriteAuthorizationModelOptions) SdkClientWriteAuthorizationModelRequestInterface Body(body ClientWriteAuthorizationModelRequest) SdkClientWriteAuthorizationModelRequestInterface Execute() (*ClientWriteAuthorizationModelResponse, error) GetStoreIdOverride() *string GetBody() *ClientWriteAuthorizationModelRequest GetOptions() *ClientWriteAuthorizationModelOptions GetContext() _context.Context }
type SdkClientWriteRequest ¶
type SdkClientWriteRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ Write
func (*SdkClientWriteRequest) Body ¶
func (request *SdkClientWriteRequest) Body(body ClientWriteRequest) SdkClientWriteRequestInterface
func (*SdkClientWriteRequest) Execute ¶
func (request *SdkClientWriteRequest) Execute() (*ClientWriteResponse, error)
func (*SdkClientWriteRequest) GetAuthorizationModelIdOverride ¶ added in v0.2.3
func (request *SdkClientWriteRequest) GetAuthorizationModelIdOverride() *string
func (*SdkClientWriteRequest) GetBody ¶ added in v0.2.3
func (request *SdkClientWriteRequest) GetBody() *ClientWriteRequest
func (*SdkClientWriteRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientWriteRequest) GetContext() _context.Context
func (*SdkClientWriteRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientWriteRequest) GetOptions() *ClientWriteOptions
func (*SdkClientWriteRequest) GetStoreIdOverride ¶ added in v0.4.0
func (request *SdkClientWriteRequest) GetStoreIdOverride() *string
func (*SdkClientWriteRequest) Options ¶
func (request *SdkClientWriteRequest) Options(options ClientWriteOptions) SdkClientWriteRequestInterface
type SdkClientWriteRequestInterface ¶ added in v0.2.3
type SdkClientWriteRequestInterface interface { Options(options ClientWriteOptions) SdkClientWriteRequestInterface Body(body ClientWriteRequest) SdkClientWriteRequestInterface Execute() (*ClientWriteResponse, error) GetAuthorizationModelIdOverride() *string GetStoreIdOverride() *string GetContext() _context.Context GetOptions() *ClientWriteOptions GetBody() *ClientWriteRequest }
type SdkClientWriteTuplesRequest ¶
type SdkClientWriteTuplesRequest struct { Client *OpenFgaClient // contains filtered or unexported fields }
/ WriteTuples
func (*SdkClientWriteTuplesRequest) Body ¶
func (request *SdkClientWriteTuplesRequest) Body(body ClientWriteTuplesBody) SdkClientWriteTuplesRequestInterface
func (*SdkClientWriteTuplesRequest) Execute ¶
func (request *SdkClientWriteTuplesRequest) Execute() (*ClientWriteResponse, error)
func (*SdkClientWriteTuplesRequest) GetBody ¶ added in v0.2.3
func (request *SdkClientWriteTuplesRequest) GetBody() *ClientWriteTuplesBody
func (*SdkClientWriteTuplesRequest) GetContext ¶ added in v0.2.3
func (request *SdkClientWriteTuplesRequest) GetContext() _context.Context
func (*SdkClientWriteTuplesRequest) GetOptions ¶ added in v0.2.3
func (request *SdkClientWriteTuplesRequest) GetOptions() *ClientWriteOptions
func (*SdkClientWriteTuplesRequest) Options ¶
func (request *SdkClientWriteTuplesRequest) Options(options ClientWriteOptions) SdkClientWriteTuplesRequestInterface
type SdkClientWriteTuplesRequestInterface ¶ added in v0.2.3
type SdkClientWriteTuplesRequestInterface interface { Options(options ClientWriteOptions) SdkClientWriteTuplesRequestInterface Body(body ClientWriteTuplesBody) SdkClientWriteTuplesRequestInterface Execute() (*ClientWriteResponse, error) GetContext() _context.Context GetBody() *ClientWriteTuplesBody GetOptions() *ClientWriteOptions }
type TransactionOptions ¶
type TransactionOptions struct { // If set to true will disable running in transaction mode (transaction mode means everything is sent in a single transaction to the server) Disable bool `json:"disable,omitempty"` // When transaction mode is disabled, the requests are chunked and sent separately and each chunk is a transaction (default = 1) MaxPerChunk int32 `json:"max_per_chunk,omitempty"` // Number of requests to issue in parallel MaxParallelRequests int32 `json:"max_parallel_requests,omitempty"` }