Documentation
¶
Index ¶
- type Client
- func (a *Client) GetCheck(params *GetCheckParams, opts ...ClientOption) (*GetCheckOK, error)
- func (a *Client) GetExpand(params *GetExpandParams, opts ...ClientOption) (*GetExpandOK, error)
- func (a *Client) GetRelationTuples(params *GetRelationTuplesParams, opts ...ClientOption) (*GetRelationTuplesOK, error)
- func (a *Client) PostCheck(params *PostCheckParams, opts ...ClientOption) (*PostCheckOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetCheckBadRequest
- type GetCheckForbidden
- type GetCheckInternalServerError
- type GetCheckOK
- type GetCheckParams
- func (o *GetCheckParams) SetContext(ctx context.Context)
- func (o *GetCheckParams) SetDefaults()
- func (o *GetCheckParams) SetHTTPClient(client *http.Client)
- func (o *GetCheckParams) SetMaxDepth(maxDepth *int64)
- func (o *GetCheckParams) SetNamespace(namespace *string)
- func (o *GetCheckParams) SetObject(object *string)
- func (o *GetCheckParams) SetRelation(relation *string)
- func (o *GetCheckParams) SetSubjectID(subjectID *string)
- func (o *GetCheckParams) SetSubjectSetNamespace(subjectSetNamespace *string)
- func (o *GetCheckParams) SetSubjectSetObject(subjectSetObject *string)
- func (o *GetCheckParams) SetSubjectSetRelation(subjectSetRelation *string)
- func (o *GetCheckParams) SetTimeout(timeout time.Duration)
- func (o *GetCheckParams) WithContext(ctx context.Context) *GetCheckParams
- func (o *GetCheckParams) WithDefaults() *GetCheckParams
- func (o *GetCheckParams) WithHTTPClient(client *http.Client) *GetCheckParams
- func (o *GetCheckParams) WithMaxDepth(maxDepth *int64) *GetCheckParams
- func (o *GetCheckParams) WithNamespace(namespace *string) *GetCheckParams
- func (o *GetCheckParams) WithObject(object *string) *GetCheckParams
- func (o *GetCheckParams) WithRelation(relation *string) *GetCheckParams
- func (o *GetCheckParams) WithSubjectID(subjectID *string) *GetCheckParams
- func (o *GetCheckParams) WithSubjectSetNamespace(subjectSetNamespace *string) *GetCheckParams
- func (o *GetCheckParams) WithSubjectSetObject(subjectSetObject *string) *GetCheckParams
- func (o *GetCheckParams) WithSubjectSetRelation(subjectSetRelation *string) *GetCheckParams
- func (o *GetCheckParams) WithTimeout(timeout time.Duration) *GetCheckParams
- func (o *GetCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCheckReader
- type GetExpandBadRequest
- type GetExpandInternalServerError
- type GetExpandNotFound
- type GetExpandOK
- type GetExpandParams
- func (o *GetExpandParams) SetContext(ctx context.Context)
- func (o *GetExpandParams) SetDefaults()
- func (o *GetExpandParams) SetHTTPClient(client *http.Client)
- func (o *GetExpandParams) SetMaxDepth(maxDepth *int64)
- func (o *GetExpandParams) SetNamespace(namespace string)
- func (o *GetExpandParams) SetObject(object string)
- func (o *GetExpandParams) SetRelation(relation string)
- func (o *GetExpandParams) SetTimeout(timeout time.Duration)
- func (o *GetExpandParams) WithContext(ctx context.Context) *GetExpandParams
- func (o *GetExpandParams) WithDefaults() *GetExpandParams
- func (o *GetExpandParams) WithHTTPClient(client *http.Client) *GetExpandParams
- func (o *GetExpandParams) WithMaxDepth(maxDepth *int64) *GetExpandParams
- func (o *GetExpandParams) WithNamespace(namespace string) *GetExpandParams
- func (o *GetExpandParams) WithObject(object string) *GetExpandParams
- func (o *GetExpandParams) WithRelation(relation string) *GetExpandParams
- func (o *GetExpandParams) WithTimeout(timeout time.Duration) *GetExpandParams
- func (o *GetExpandParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetExpandReader
- type GetRelationTuplesInternalServerError
- type GetRelationTuplesNotFound
- type GetRelationTuplesOK
- type GetRelationTuplesParams
- func NewGetRelationTuplesParams() *GetRelationTuplesParams
- func NewGetRelationTuplesParamsWithContext(ctx context.Context) *GetRelationTuplesParams
- func NewGetRelationTuplesParamsWithHTTPClient(client *http.Client) *GetRelationTuplesParams
- func NewGetRelationTuplesParamsWithTimeout(timeout time.Duration) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) SetContext(ctx context.Context)
- func (o *GetRelationTuplesParams) SetDefaults()
- func (o *GetRelationTuplesParams) SetHTTPClient(client *http.Client)
- func (o *GetRelationTuplesParams) SetNamespace(namespace *string)
- func (o *GetRelationTuplesParams) SetObject(object *string)
- func (o *GetRelationTuplesParams) SetPageSize(pageSize *int64)
- func (o *GetRelationTuplesParams) SetPageToken(pageToken *string)
- func (o *GetRelationTuplesParams) SetRelation(relation *string)
- func (o *GetRelationTuplesParams) SetSubjectID(subjectID *string)
- func (o *GetRelationTuplesParams) SetSubjectSetNamespace(subjectSetNamespace *string)
- func (o *GetRelationTuplesParams) SetSubjectSetObject(subjectSetObject *string)
- func (o *GetRelationTuplesParams) SetSubjectSetRelation(subjectSetRelation *string)
- func (o *GetRelationTuplesParams) SetTimeout(timeout time.Duration)
- func (o *GetRelationTuplesParams) WithContext(ctx context.Context) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithDefaults() *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithHTTPClient(client *http.Client) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithNamespace(namespace *string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithObject(object *string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithPageSize(pageSize *int64) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithPageToken(pageToken *string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithRelation(relation *string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithSubjectID(subjectID *string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithSubjectSetNamespace(subjectSetNamespace *string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithSubjectSetObject(subjectSetObject *string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithSubjectSetRelation(subjectSetRelation *string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithTimeout(timeout time.Duration) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRelationTuplesReader
- type PostCheckBadRequest
- type PostCheckForbidden
- type PostCheckInternalServerError
- type PostCheckOK
- type PostCheckParams
- func (o *PostCheckParams) SetContext(ctx context.Context)
- func (o *PostCheckParams) SetDefaults()
- func (o *PostCheckParams) SetHTTPClient(client *http.Client)
- func (o *PostCheckParams) SetMaxDepth(maxDepth *int64)
- func (o *PostCheckParams) SetPayload(payload *models.RelationQuery)
- func (o *PostCheckParams) SetTimeout(timeout time.Duration)
- func (o *PostCheckParams) WithContext(ctx context.Context) *PostCheckParams
- func (o *PostCheckParams) WithDefaults() *PostCheckParams
- func (o *PostCheckParams) WithHTTPClient(client *http.Client) *PostCheckParams
- func (o *PostCheckParams) WithMaxDepth(maxDepth *int64) *PostCheckParams
- func (o *PostCheckParams) WithPayload(payload *models.RelationQuery) *PostCheckParams
- func (o *PostCheckParams) WithTimeout(timeout time.Duration) *PostCheckParams
- func (o *PostCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostCheckReader
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
}
Client for read API
func (*Client) GetCheck ¶
func (a *Client) GetCheck(params *GetCheckParams, opts ...ClientOption) (*GetCheckOK, error)
GetCheck checks a relation tuple
To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
func (*Client) GetExpand ¶
func (a *Client) GetExpand(params *GetExpandParams, opts ...ClientOption) (*GetExpandOK, error)
GetExpand expands a relation tuple
Use this endpoint to expand a relation tuple.
func (*Client) GetRelationTuples ¶
func (a *Client) GetRelationTuples(params *GetRelationTuplesParams, opts ...ClientOption) (*GetRelationTuplesOK, error)
GetRelationTuples queries relation tuples
Get all relation tuples that match the query. Only the namespace field is required.
func (*Client) PostCheck ¶
func (a *Client) PostCheck(params *PostCheckParams, opts ...ClientOption) (*PostCheckOK, error)
PostCheck checks a relation tuple
To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetCheck(params *GetCheckParams, opts ...ClientOption) (*GetCheckOK, error) GetExpand(params *GetExpandParams, opts ...ClientOption) (*GetExpandOK, error) GetRelationTuples(params *GetRelationTuplesParams, opts ...ClientOption) (*GetRelationTuplesOK, error) PostCheck(params *PostCheckParams, opts ...ClientOption) (*PostCheckOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new read API client.
type GetCheckBadRequest ¶
type GetCheckBadRequest struct {
Payload *models.GenericError
}
GetCheckBadRequest describes a response with status code 400, with default header values.
genericError
func NewGetCheckBadRequest ¶
func NewGetCheckBadRequest() *GetCheckBadRequest
NewGetCheckBadRequest creates a GetCheckBadRequest with default headers values
func (*GetCheckBadRequest) Error ¶
func (o *GetCheckBadRequest) Error() string
func (*GetCheckBadRequest) GetPayload ¶
func (o *GetCheckBadRequest) GetPayload() *models.GenericError
type GetCheckForbidden ¶
type GetCheckForbidden struct {
Payload *models.GetCheckResponse
}
GetCheckForbidden describes a response with status code 403, with default header values.
getCheckResponse
func NewGetCheckForbidden ¶
func NewGetCheckForbidden() *GetCheckForbidden
NewGetCheckForbidden creates a GetCheckForbidden with default headers values
func (*GetCheckForbidden) Error ¶
func (o *GetCheckForbidden) Error() string
func (*GetCheckForbidden) GetPayload ¶
func (o *GetCheckForbidden) GetPayload() *models.GetCheckResponse
type GetCheckInternalServerError ¶
type GetCheckInternalServerError struct {
Payload *models.GenericError
}
GetCheckInternalServerError describes a response with status code 500, with default header values.
genericError
func NewGetCheckInternalServerError ¶
func NewGetCheckInternalServerError() *GetCheckInternalServerError
NewGetCheckInternalServerError creates a GetCheckInternalServerError with default headers values
func (*GetCheckInternalServerError) Error ¶
func (o *GetCheckInternalServerError) Error() string
func (*GetCheckInternalServerError) GetPayload ¶
func (o *GetCheckInternalServerError) GetPayload() *models.GenericError
type GetCheckOK ¶
type GetCheckOK struct {
Payload *models.GetCheckResponse
}
GetCheckOK describes a response with status code 200, with default header values.
getCheckResponse
func NewGetCheckOK ¶
func NewGetCheckOK() *GetCheckOK
NewGetCheckOK creates a GetCheckOK with default headers values
func (*GetCheckOK) Error ¶
func (o *GetCheckOK) Error() string
func (*GetCheckOK) GetPayload ¶
func (o *GetCheckOK) GetPayload() *models.GetCheckResponse
type GetCheckParams ¶
type GetCheckParams struct { // MaxDepth. // // Format: int64 MaxDepth *int64 /* Namespace. Namespace of the Relation Tuple */ Namespace *string /* Object. Object of the Relation Tuple */ Object *string /* Relation. Relation of the Relation Tuple */ Relation *string /* SubjectID. SubjectID of the Relation Tuple */ SubjectID *string /* SubjectSetNamespace. Namespace of the Subject Set */ SubjectSetNamespace *string /* SubjectSetObject. Object of the Subject Set */ SubjectSetObject *string /* SubjectSetRelation. Relation of the Subject Set */ SubjectSetRelation *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCheckParams contains all the parameters to send to the API endpoint
for the get check operation. Typically these are written to a http.Request.
func NewGetCheckParams ¶
func NewGetCheckParams() *GetCheckParams
NewGetCheckParams creates a new GetCheckParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetCheckParamsWithContext ¶
func NewGetCheckParamsWithContext(ctx context.Context) *GetCheckParams
NewGetCheckParamsWithContext creates a new GetCheckParams object with the ability to set a context for a request.
func NewGetCheckParamsWithHTTPClient ¶
func NewGetCheckParamsWithHTTPClient(client *http.Client) *GetCheckParams
NewGetCheckParamsWithHTTPClient creates a new GetCheckParams object with the ability to set a custom HTTPClient for a request.
func NewGetCheckParamsWithTimeout ¶
func NewGetCheckParamsWithTimeout(timeout time.Duration) *GetCheckParams
NewGetCheckParamsWithTimeout creates a new GetCheckParams object with the ability to set a timeout on a request.
func (*GetCheckParams) SetContext ¶
func (o *GetCheckParams) SetContext(ctx context.Context)
SetContext adds the context to the get check params
func (*GetCheckParams) SetDefaults ¶
func (o *GetCheckParams) SetDefaults()
SetDefaults hydrates default values in the get check params (not the query body).
All values with no default are reset to their zero value.
func (*GetCheckParams) SetHTTPClient ¶
func (o *GetCheckParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get check params
func (*GetCheckParams) SetMaxDepth ¶
func (o *GetCheckParams) SetMaxDepth(maxDepth *int64)
SetMaxDepth adds the maxDepth to the get check params
func (*GetCheckParams) SetNamespace ¶
func (o *GetCheckParams) SetNamespace(namespace *string)
SetNamespace adds the namespace to the get check params
func (*GetCheckParams) SetObject ¶
func (o *GetCheckParams) SetObject(object *string)
SetObject adds the object to the get check params
func (*GetCheckParams) SetRelation ¶
func (o *GetCheckParams) SetRelation(relation *string)
SetRelation adds the relation to the get check params
func (*GetCheckParams) SetSubjectID ¶
func (o *GetCheckParams) SetSubjectID(subjectID *string)
SetSubjectID adds the subjectId to the get check params
func (*GetCheckParams) SetSubjectSetNamespace ¶
func (o *GetCheckParams) SetSubjectSetNamespace(subjectSetNamespace *string)
SetSubjectSetNamespace adds the subjectSetNamespace to the get check params
func (*GetCheckParams) SetSubjectSetObject ¶
func (o *GetCheckParams) SetSubjectSetObject(subjectSetObject *string)
SetSubjectSetObject adds the subjectSetObject to the get check params
func (*GetCheckParams) SetSubjectSetRelation ¶
func (o *GetCheckParams) SetSubjectSetRelation(subjectSetRelation *string)
SetSubjectSetRelation adds the subjectSetRelation to the get check params
func (*GetCheckParams) SetTimeout ¶
func (o *GetCheckParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get check params
func (*GetCheckParams) WithContext ¶
func (o *GetCheckParams) WithContext(ctx context.Context) *GetCheckParams
WithContext adds the context to the get check params
func (*GetCheckParams) WithDefaults ¶
func (o *GetCheckParams) WithDefaults() *GetCheckParams
WithDefaults hydrates default values in the get check params (not the query body).
All values with no default are reset to their zero value.
func (*GetCheckParams) WithHTTPClient ¶
func (o *GetCheckParams) WithHTTPClient(client *http.Client) *GetCheckParams
WithHTTPClient adds the HTTPClient to the get check params
func (*GetCheckParams) WithMaxDepth ¶
func (o *GetCheckParams) WithMaxDepth(maxDepth *int64) *GetCheckParams
WithMaxDepth adds the maxDepth to the get check params
func (*GetCheckParams) WithNamespace ¶
func (o *GetCheckParams) WithNamespace(namespace *string) *GetCheckParams
WithNamespace adds the namespace to the get check params
func (*GetCheckParams) WithObject ¶
func (o *GetCheckParams) WithObject(object *string) *GetCheckParams
WithObject adds the object to the get check params
func (*GetCheckParams) WithRelation ¶
func (o *GetCheckParams) WithRelation(relation *string) *GetCheckParams
WithRelation adds the relation to the get check params
func (*GetCheckParams) WithSubjectID ¶
func (o *GetCheckParams) WithSubjectID(subjectID *string) *GetCheckParams
WithSubjectID adds the subjectID to the get check params
func (*GetCheckParams) WithSubjectSetNamespace ¶
func (o *GetCheckParams) WithSubjectSetNamespace(subjectSetNamespace *string) *GetCheckParams
WithSubjectSetNamespace adds the subjectSetNamespace to the get check params
func (*GetCheckParams) WithSubjectSetObject ¶
func (o *GetCheckParams) WithSubjectSetObject(subjectSetObject *string) *GetCheckParams
WithSubjectSetObject adds the subjectSetObject to the get check params
func (*GetCheckParams) WithSubjectSetRelation ¶
func (o *GetCheckParams) WithSubjectSetRelation(subjectSetRelation *string) *GetCheckParams
WithSubjectSetRelation adds the subjectSetRelation to the get check params
func (*GetCheckParams) WithTimeout ¶
func (o *GetCheckParams) WithTimeout(timeout time.Duration) *GetCheckParams
WithTimeout adds the timeout to the get check params
func (*GetCheckParams) WriteToRequest ¶
func (o *GetCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCheckReader ¶
type GetCheckReader struct {
// contains filtered or unexported fields
}
GetCheckReader is a Reader for the GetCheck structure.
func (*GetCheckReader) ReadResponse ¶
func (o *GetCheckReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetExpandBadRequest ¶
type GetExpandBadRequest struct {
Payload *models.GenericError
}
GetExpandBadRequest describes a response with status code 400, with default header values.
genericError
func NewGetExpandBadRequest ¶
func NewGetExpandBadRequest() *GetExpandBadRequest
NewGetExpandBadRequest creates a GetExpandBadRequest with default headers values
func (*GetExpandBadRequest) Error ¶
func (o *GetExpandBadRequest) Error() string
func (*GetExpandBadRequest) GetPayload ¶
func (o *GetExpandBadRequest) GetPayload() *models.GenericError
type GetExpandInternalServerError ¶
type GetExpandInternalServerError struct {
Payload *models.GenericError
}
GetExpandInternalServerError describes a response with status code 500, with default header values.
genericError
func NewGetExpandInternalServerError ¶
func NewGetExpandInternalServerError() *GetExpandInternalServerError
NewGetExpandInternalServerError creates a GetExpandInternalServerError with default headers values
func (*GetExpandInternalServerError) Error ¶
func (o *GetExpandInternalServerError) Error() string
func (*GetExpandInternalServerError) GetPayload ¶
func (o *GetExpandInternalServerError) GetPayload() *models.GenericError
type GetExpandNotFound ¶
type GetExpandNotFound struct {
Payload *models.GenericError
}
GetExpandNotFound describes a response with status code 404, with default header values.
genericError
func NewGetExpandNotFound ¶
func NewGetExpandNotFound() *GetExpandNotFound
NewGetExpandNotFound creates a GetExpandNotFound with default headers values
func (*GetExpandNotFound) Error ¶
func (o *GetExpandNotFound) Error() string
func (*GetExpandNotFound) GetPayload ¶
func (o *GetExpandNotFound) GetPayload() *models.GenericError
type GetExpandOK ¶
type GetExpandOK struct {
Payload *models.ExpandTree
}
GetExpandOK describes a response with status code 200, with default header values.
expandTree
func NewGetExpandOK ¶
func NewGetExpandOK() *GetExpandOK
NewGetExpandOK creates a GetExpandOK with default headers values
func (*GetExpandOK) Error ¶
func (o *GetExpandOK) Error() string
func (*GetExpandOK) GetPayload ¶
func (o *GetExpandOK) GetPayload() *models.ExpandTree
type GetExpandParams ¶
type GetExpandParams struct { // MaxDepth. // // Format: int64 MaxDepth *int64 /* Namespace. Namespace of the Subject Set */ Namespace string /* Object. Object of the Subject Set */ Object string /* Relation. Relation of the Subject Set */ Relation string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetExpandParams contains all the parameters to send to the API endpoint
for the get expand operation. Typically these are written to a http.Request.
func NewGetExpandParams ¶
func NewGetExpandParams() *GetExpandParams
NewGetExpandParams creates a new GetExpandParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetExpandParamsWithContext ¶
func NewGetExpandParamsWithContext(ctx context.Context) *GetExpandParams
NewGetExpandParamsWithContext creates a new GetExpandParams object with the ability to set a context for a request.
func NewGetExpandParamsWithHTTPClient ¶
func NewGetExpandParamsWithHTTPClient(client *http.Client) *GetExpandParams
NewGetExpandParamsWithHTTPClient creates a new GetExpandParams object with the ability to set a custom HTTPClient for a request.
func NewGetExpandParamsWithTimeout ¶
func NewGetExpandParamsWithTimeout(timeout time.Duration) *GetExpandParams
NewGetExpandParamsWithTimeout creates a new GetExpandParams object with the ability to set a timeout on a request.
func (*GetExpandParams) SetContext ¶
func (o *GetExpandParams) SetContext(ctx context.Context)
SetContext adds the context to the get expand params
func (*GetExpandParams) SetDefaults ¶
func (o *GetExpandParams) SetDefaults()
SetDefaults hydrates default values in the get expand params (not the query body).
All values with no default are reset to their zero value.
func (*GetExpandParams) SetHTTPClient ¶
func (o *GetExpandParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get expand params
func (*GetExpandParams) SetMaxDepth ¶
func (o *GetExpandParams) SetMaxDepth(maxDepth *int64)
SetMaxDepth adds the maxDepth to the get expand params
func (*GetExpandParams) SetNamespace ¶
func (o *GetExpandParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get expand params
func (*GetExpandParams) SetObject ¶
func (o *GetExpandParams) SetObject(object string)
SetObject adds the object to the get expand params
func (*GetExpandParams) SetRelation ¶
func (o *GetExpandParams) SetRelation(relation string)
SetRelation adds the relation to the get expand params
func (*GetExpandParams) SetTimeout ¶
func (o *GetExpandParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get expand params
func (*GetExpandParams) WithContext ¶
func (o *GetExpandParams) WithContext(ctx context.Context) *GetExpandParams
WithContext adds the context to the get expand params
func (*GetExpandParams) WithDefaults ¶
func (o *GetExpandParams) WithDefaults() *GetExpandParams
WithDefaults hydrates default values in the get expand params (not the query body).
All values with no default are reset to their zero value.
func (*GetExpandParams) WithHTTPClient ¶
func (o *GetExpandParams) WithHTTPClient(client *http.Client) *GetExpandParams
WithHTTPClient adds the HTTPClient to the get expand params
func (*GetExpandParams) WithMaxDepth ¶
func (o *GetExpandParams) WithMaxDepth(maxDepth *int64) *GetExpandParams
WithMaxDepth adds the maxDepth to the get expand params
func (*GetExpandParams) WithNamespace ¶
func (o *GetExpandParams) WithNamespace(namespace string) *GetExpandParams
WithNamespace adds the namespace to the get expand params
func (*GetExpandParams) WithObject ¶
func (o *GetExpandParams) WithObject(object string) *GetExpandParams
WithObject adds the object to the get expand params
func (*GetExpandParams) WithRelation ¶
func (o *GetExpandParams) WithRelation(relation string) *GetExpandParams
WithRelation adds the relation to the get expand params
func (*GetExpandParams) WithTimeout ¶
func (o *GetExpandParams) WithTimeout(timeout time.Duration) *GetExpandParams
WithTimeout adds the timeout to the get expand params
func (*GetExpandParams) WriteToRequest ¶
func (o *GetExpandParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetExpandReader ¶
type GetExpandReader struct {
// contains filtered or unexported fields
}
GetExpandReader is a Reader for the GetExpand structure.
func (*GetExpandReader) ReadResponse ¶
func (o *GetExpandReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRelationTuplesInternalServerError ¶
type GetRelationTuplesInternalServerError struct {
Payload *models.GenericError
}
GetRelationTuplesInternalServerError describes a response with status code 500, with default header values.
genericError
func NewGetRelationTuplesInternalServerError ¶
func NewGetRelationTuplesInternalServerError() *GetRelationTuplesInternalServerError
NewGetRelationTuplesInternalServerError creates a GetRelationTuplesInternalServerError with default headers values
func (*GetRelationTuplesInternalServerError) Error ¶
func (o *GetRelationTuplesInternalServerError) Error() string
func (*GetRelationTuplesInternalServerError) GetPayload ¶
func (o *GetRelationTuplesInternalServerError) GetPayload() *models.GenericError
type GetRelationTuplesNotFound ¶
type GetRelationTuplesNotFound struct {
Payload *models.GenericError
}
GetRelationTuplesNotFound describes a response with status code 404, with default header values.
genericError
func NewGetRelationTuplesNotFound ¶
func NewGetRelationTuplesNotFound() *GetRelationTuplesNotFound
NewGetRelationTuplesNotFound creates a GetRelationTuplesNotFound with default headers values
func (*GetRelationTuplesNotFound) Error ¶
func (o *GetRelationTuplesNotFound) Error() string
func (*GetRelationTuplesNotFound) GetPayload ¶
func (o *GetRelationTuplesNotFound) GetPayload() *models.GenericError
type GetRelationTuplesOK ¶
type GetRelationTuplesOK struct {
Payload *models.GetRelationTuplesResponse
}
GetRelationTuplesOK describes a response with status code 200, with default header values.
getRelationTuplesResponse
func NewGetRelationTuplesOK ¶
func NewGetRelationTuplesOK() *GetRelationTuplesOK
NewGetRelationTuplesOK creates a GetRelationTuplesOK with default headers values
func (*GetRelationTuplesOK) Error ¶
func (o *GetRelationTuplesOK) Error() string
func (*GetRelationTuplesOK) GetPayload ¶
func (o *GetRelationTuplesOK) GetPayload() *models.GetRelationTuplesResponse
type GetRelationTuplesParams ¶
type GetRelationTuplesParams struct { /* Namespace. Namespace of the Relation Tuple */ Namespace *string /* Object. Object of the Relation Tuple */ Object *string // PageSize. // // Format: int64 PageSize *int64 // PageToken. PageToken *string /* Relation. Relation of the Relation Tuple */ Relation *string /* SubjectID. SubjectID of the Relation Tuple */ SubjectID *string /* SubjectSetNamespace. Namespace of the Subject Set */ SubjectSetNamespace *string /* SubjectSetObject. Object of the Subject Set */ SubjectSetObject *string /* SubjectSetRelation. Relation of the Subject Set */ SubjectSetRelation *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRelationTuplesParams contains all the parameters to send to the API endpoint
for the get relation tuples operation. Typically these are written to a http.Request.
func NewGetRelationTuplesParams ¶
func NewGetRelationTuplesParams() *GetRelationTuplesParams
NewGetRelationTuplesParams creates a new GetRelationTuplesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRelationTuplesParamsWithContext ¶
func NewGetRelationTuplesParamsWithContext(ctx context.Context) *GetRelationTuplesParams
NewGetRelationTuplesParamsWithContext creates a new GetRelationTuplesParams object with the ability to set a context for a request.
func NewGetRelationTuplesParamsWithHTTPClient ¶
func NewGetRelationTuplesParamsWithHTTPClient(client *http.Client) *GetRelationTuplesParams
NewGetRelationTuplesParamsWithHTTPClient creates a new GetRelationTuplesParams object with the ability to set a custom HTTPClient for a request.
func NewGetRelationTuplesParamsWithTimeout ¶
func NewGetRelationTuplesParamsWithTimeout(timeout time.Duration) *GetRelationTuplesParams
NewGetRelationTuplesParamsWithTimeout creates a new GetRelationTuplesParams object with the ability to set a timeout on a request.
func (*GetRelationTuplesParams) SetContext ¶
func (o *GetRelationTuplesParams) SetContext(ctx context.Context)
SetContext adds the context to the get relation tuples params
func (*GetRelationTuplesParams) SetDefaults ¶
func (o *GetRelationTuplesParams) SetDefaults()
SetDefaults hydrates default values in the get relation tuples params (not the query body).
All values with no default are reset to their zero value.
func (*GetRelationTuplesParams) SetHTTPClient ¶
func (o *GetRelationTuplesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get relation tuples params
func (*GetRelationTuplesParams) SetNamespace ¶
func (o *GetRelationTuplesParams) SetNamespace(namespace *string)
SetNamespace adds the namespace to the get relation tuples params
func (*GetRelationTuplesParams) SetObject ¶
func (o *GetRelationTuplesParams) SetObject(object *string)
SetObject adds the object to the get relation tuples params
func (*GetRelationTuplesParams) SetPageSize ¶
func (o *GetRelationTuplesParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the get relation tuples params
func (*GetRelationTuplesParams) SetPageToken ¶
func (o *GetRelationTuplesParams) SetPageToken(pageToken *string)
SetPageToken adds the pageToken to the get relation tuples params
func (*GetRelationTuplesParams) SetRelation ¶
func (o *GetRelationTuplesParams) SetRelation(relation *string)
SetRelation adds the relation to the get relation tuples params
func (*GetRelationTuplesParams) SetSubjectID ¶
func (o *GetRelationTuplesParams) SetSubjectID(subjectID *string)
SetSubjectID adds the subjectId to the get relation tuples params
func (*GetRelationTuplesParams) SetSubjectSetNamespace ¶
func (o *GetRelationTuplesParams) SetSubjectSetNamespace(subjectSetNamespace *string)
SetSubjectSetNamespace adds the subjectSetNamespace to the get relation tuples params
func (*GetRelationTuplesParams) SetSubjectSetObject ¶
func (o *GetRelationTuplesParams) SetSubjectSetObject(subjectSetObject *string)
SetSubjectSetObject adds the subjectSetObject to the get relation tuples params
func (*GetRelationTuplesParams) SetSubjectSetRelation ¶
func (o *GetRelationTuplesParams) SetSubjectSetRelation(subjectSetRelation *string)
SetSubjectSetRelation adds the subjectSetRelation to the get relation tuples params
func (*GetRelationTuplesParams) SetTimeout ¶
func (o *GetRelationTuplesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get relation tuples params
func (*GetRelationTuplesParams) WithContext ¶
func (o *GetRelationTuplesParams) WithContext(ctx context.Context) *GetRelationTuplesParams
WithContext adds the context to the get relation tuples params
func (*GetRelationTuplesParams) WithDefaults ¶
func (o *GetRelationTuplesParams) WithDefaults() *GetRelationTuplesParams
WithDefaults hydrates default values in the get relation tuples params (not the query body).
All values with no default are reset to their zero value.
func (*GetRelationTuplesParams) WithHTTPClient ¶
func (o *GetRelationTuplesParams) WithHTTPClient(client *http.Client) *GetRelationTuplesParams
WithHTTPClient adds the HTTPClient to the get relation tuples params
func (*GetRelationTuplesParams) WithNamespace ¶
func (o *GetRelationTuplesParams) WithNamespace(namespace *string) *GetRelationTuplesParams
WithNamespace adds the namespace to the get relation tuples params
func (*GetRelationTuplesParams) WithObject ¶
func (o *GetRelationTuplesParams) WithObject(object *string) *GetRelationTuplesParams
WithObject adds the object to the get relation tuples params
func (*GetRelationTuplesParams) WithPageSize ¶
func (o *GetRelationTuplesParams) WithPageSize(pageSize *int64) *GetRelationTuplesParams
WithPageSize adds the pageSize to the get relation tuples params
func (*GetRelationTuplesParams) WithPageToken ¶
func (o *GetRelationTuplesParams) WithPageToken(pageToken *string) *GetRelationTuplesParams
WithPageToken adds the pageToken to the get relation tuples params
func (*GetRelationTuplesParams) WithRelation ¶
func (o *GetRelationTuplesParams) WithRelation(relation *string) *GetRelationTuplesParams
WithRelation adds the relation to the get relation tuples params
func (*GetRelationTuplesParams) WithSubjectID ¶
func (o *GetRelationTuplesParams) WithSubjectID(subjectID *string) *GetRelationTuplesParams
WithSubjectID adds the subjectID to the get relation tuples params
func (*GetRelationTuplesParams) WithSubjectSetNamespace ¶
func (o *GetRelationTuplesParams) WithSubjectSetNamespace(subjectSetNamespace *string) *GetRelationTuplesParams
WithSubjectSetNamespace adds the subjectSetNamespace to the get relation tuples params
func (*GetRelationTuplesParams) WithSubjectSetObject ¶
func (o *GetRelationTuplesParams) WithSubjectSetObject(subjectSetObject *string) *GetRelationTuplesParams
WithSubjectSetObject adds the subjectSetObject to the get relation tuples params
func (*GetRelationTuplesParams) WithSubjectSetRelation ¶
func (o *GetRelationTuplesParams) WithSubjectSetRelation(subjectSetRelation *string) *GetRelationTuplesParams
WithSubjectSetRelation adds the subjectSetRelation to the get relation tuples params
func (*GetRelationTuplesParams) WithTimeout ¶
func (o *GetRelationTuplesParams) WithTimeout(timeout time.Duration) *GetRelationTuplesParams
WithTimeout adds the timeout to the get relation tuples params
func (*GetRelationTuplesParams) WriteToRequest ¶
func (o *GetRelationTuplesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRelationTuplesReader ¶
type GetRelationTuplesReader struct {
// contains filtered or unexported fields
}
GetRelationTuplesReader is a Reader for the GetRelationTuples structure.
func (*GetRelationTuplesReader) ReadResponse ¶
func (o *GetRelationTuplesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostCheckBadRequest ¶
type PostCheckBadRequest struct {
Payload *models.GenericError
}
PostCheckBadRequest describes a response with status code 400, with default header values.
genericError
func NewPostCheckBadRequest ¶
func NewPostCheckBadRequest() *PostCheckBadRequest
NewPostCheckBadRequest creates a PostCheckBadRequest with default headers values
func (*PostCheckBadRequest) Error ¶
func (o *PostCheckBadRequest) Error() string
func (*PostCheckBadRequest) GetPayload ¶
func (o *PostCheckBadRequest) GetPayload() *models.GenericError
type PostCheckForbidden ¶
type PostCheckForbidden struct {
Payload *models.GetCheckResponse
}
PostCheckForbidden describes a response with status code 403, with default header values.
getCheckResponse
func NewPostCheckForbidden ¶
func NewPostCheckForbidden() *PostCheckForbidden
NewPostCheckForbidden creates a PostCheckForbidden with default headers values
func (*PostCheckForbidden) Error ¶
func (o *PostCheckForbidden) Error() string
func (*PostCheckForbidden) GetPayload ¶
func (o *PostCheckForbidden) GetPayload() *models.GetCheckResponse
type PostCheckInternalServerError ¶
type PostCheckInternalServerError struct {
Payload *models.GenericError
}
PostCheckInternalServerError describes a response with status code 500, with default header values.
genericError
func NewPostCheckInternalServerError ¶
func NewPostCheckInternalServerError() *PostCheckInternalServerError
NewPostCheckInternalServerError creates a PostCheckInternalServerError with default headers values
func (*PostCheckInternalServerError) Error ¶
func (o *PostCheckInternalServerError) Error() string
func (*PostCheckInternalServerError) GetPayload ¶
func (o *PostCheckInternalServerError) GetPayload() *models.GenericError
type PostCheckOK ¶
type PostCheckOK struct {
Payload *models.GetCheckResponse
}
PostCheckOK describes a response with status code 200, with default header values.
getCheckResponse
func NewPostCheckOK ¶
func NewPostCheckOK() *PostCheckOK
NewPostCheckOK creates a PostCheckOK with default headers values
func (*PostCheckOK) Error ¶
func (o *PostCheckOK) Error() string
func (*PostCheckOK) GetPayload ¶
func (o *PostCheckOK) GetPayload() *models.GetCheckResponse
type PostCheckParams ¶
type PostCheckParams struct { // Payload. Payload *models.RelationQuery // MaxDepth. // // Format: int64 MaxDepth *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostCheckParams contains all the parameters to send to the API endpoint
for the post check operation. Typically these are written to a http.Request.
func NewPostCheckParams ¶
func NewPostCheckParams() *PostCheckParams
NewPostCheckParams creates a new PostCheckParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostCheckParamsWithContext ¶
func NewPostCheckParamsWithContext(ctx context.Context) *PostCheckParams
NewPostCheckParamsWithContext creates a new PostCheckParams object with the ability to set a context for a request.
func NewPostCheckParamsWithHTTPClient ¶
func NewPostCheckParamsWithHTTPClient(client *http.Client) *PostCheckParams
NewPostCheckParamsWithHTTPClient creates a new PostCheckParams object with the ability to set a custom HTTPClient for a request.
func NewPostCheckParamsWithTimeout ¶
func NewPostCheckParamsWithTimeout(timeout time.Duration) *PostCheckParams
NewPostCheckParamsWithTimeout creates a new PostCheckParams object with the ability to set a timeout on a request.
func (*PostCheckParams) SetContext ¶
func (o *PostCheckParams) SetContext(ctx context.Context)
SetContext adds the context to the post check params
func (*PostCheckParams) SetDefaults ¶
func (o *PostCheckParams) SetDefaults()
SetDefaults hydrates default values in the post check params (not the query body).
All values with no default are reset to their zero value.
func (*PostCheckParams) SetHTTPClient ¶
func (o *PostCheckParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post check params
func (*PostCheckParams) SetMaxDepth ¶
func (o *PostCheckParams) SetMaxDepth(maxDepth *int64)
SetMaxDepth adds the maxDepth to the post check params
func (*PostCheckParams) SetPayload ¶
func (o *PostCheckParams) SetPayload(payload *models.RelationQuery)
SetPayload adds the payload to the post check params
func (*PostCheckParams) SetTimeout ¶
func (o *PostCheckParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post check params
func (*PostCheckParams) WithContext ¶
func (o *PostCheckParams) WithContext(ctx context.Context) *PostCheckParams
WithContext adds the context to the post check params
func (*PostCheckParams) WithDefaults ¶
func (o *PostCheckParams) WithDefaults() *PostCheckParams
WithDefaults hydrates default values in the post check params (not the query body).
All values with no default are reset to their zero value.
func (*PostCheckParams) WithHTTPClient ¶
func (o *PostCheckParams) WithHTTPClient(client *http.Client) *PostCheckParams
WithHTTPClient adds the HTTPClient to the post check params
func (*PostCheckParams) WithMaxDepth ¶
func (o *PostCheckParams) WithMaxDepth(maxDepth *int64) *PostCheckParams
WithMaxDepth adds the maxDepth to the post check params
func (*PostCheckParams) WithPayload ¶
func (o *PostCheckParams) WithPayload(payload *models.RelationQuery) *PostCheckParams
WithPayload adds the payload to the post check params
func (*PostCheckParams) WithTimeout ¶
func (o *PostCheckParams) WithTimeout(timeout time.Duration) *PostCheckParams
WithTimeout adds the timeout to the post check params
func (*PostCheckParams) WriteToRequest ¶
func (o *PostCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostCheckReader ¶
type PostCheckReader struct {
// contains filtered or unexported fields
}
PostCheckReader is a Reader for the PostCheck structure.
func (*PostCheckReader) ReadResponse ¶
func (o *PostCheckReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.