read

package
v0.6.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 *GetCheckBadRequestBody
}
GetCheckBadRequest describes a response with status code 400, with default header values.

The standard error format

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() *GetCheckBadRequestBody

type GetCheckBadRequestBody

type GetCheckBadRequestBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// details
	Details []interface{} `json:"details"`

	// message
	Message string `json:"message,omitempty"`

	// reason
	Reason string `json:"reason,omitempty"`

	// request
	Request string `json:"request,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

GetCheckBadRequestBody get check bad request body swagger:model GetCheckBadRequestBody

func (*GetCheckBadRequestBody) ContextValidate

func (o *GetCheckBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get check bad request body based on context it is used

func (*GetCheckBadRequestBody) MarshalBinary

func (o *GetCheckBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetCheckBadRequestBody) UnmarshalBinary

func (o *GetCheckBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetCheckBadRequestBody) Validate

func (o *GetCheckBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this get check bad request body

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 *GetCheckInternalServerErrorBody
}
GetCheckInternalServerError describes a response with status code 500, with default header values.

The standard error format

func NewGetCheckInternalServerError

func NewGetCheckInternalServerError() *GetCheckInternalServerError

NewGetCheckInternalServerError creates a GetCheckInternalServerError with default headers values

func (*GetCheckInternalServerError) Error

func (*GetCheckInternalServerError) GetPayload

type GetCheckInternalServerErrorBody

type GetCheckInternalServerErrorBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// details
	Details []interface{} `json:"details"`

	// message
	Message string `json:"message,omitempty"`

	// reason
	Reason string `json:"reason,omitempty"`

	// request
	Request string `json:"request,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

GetCheckInternalServerErrorBody get check internal server error body swagger:model GetCheckInternalServerErrorBody

func (*GetCheckInternalServerErrorBody) ContextValidate

func (o *GetCheckInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get check internal server error body based on context it is used

func (*GetCheckInternalServerErrorBody) MarshalBinary

func (o *GetCheckInternalServerErrorBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetCheckInternalServerErrorBody) UnmarshalBinary

func (o *GetCheckInternalServerErrorBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetCheckInternalServerErrorBody) Validate

Validate validates this get check internal server error body

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 {

	/* Namespace.

	   Namespace of the Relation Tuple
	*/
	Namespace string

	/* Object.

	   Object of the Relation Tuple
	*/
	Object string

	/* Relation.

	   Relation of the Relation Tuple
	*/
	Relation string

	/* Subject.

	     Subject of the Relation Tuple

	The subject follows the subject string encoding format.
	*/
	Subject *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) 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) SetSubject

func (o *GetCheckParams) SetSubject(subject *string)

SetSubject adds the subject 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) 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) WithSubject

func (o *GetCheckParams) WithSubject(subject *string) *GetCheckParams

WithSubject adds the subject 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 *GetExpandBadRequestBody
}
GetExpandBadRequest describes a response with status code 400, with default header values.

The standard error format

func NewGetExpandBadRequest

func NewGetExpandBadRequest() *GetExpandBadRequest

NewGetExpandBadRequest creates a GetExpandBadRequest with default headers values

func (*GetExpandBadRequest) Error

func (o *GetExpandBadRequest) Error() string

func (*GetExpandBadRequest) GetPayload

type GetExpandBadRequestBody

type GetExpandBadRequestBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// details
	Details []interface{} `json:"details"`

	// message
	Message string `json:"message,omitempty"`

	// reason
	Reason string `json:"reason,omitempty"`

	// request
	Request string `json:"request,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

GetExpandBadRequestBody get expand bad request body swagger:model GetExpandBadRequestBody

func (*GetExpandBadRequestBody) ContextValidate

func (o *GetExpandBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get expand bad request body based on context it is used

func (*GetExpandBadRequestBody) MarshalBinary

func (o *GetExpandBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetExpandBadRequestBody) UnmarshalBinary

func (o *GetExpandBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetExpandBadRequestBody) Validate

func (o *GetExpandBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this get expand bad request body

type GetExpandInternalServerError

type GetExpandInternalServerError struct {
	Payload *GetExpandInternalServerErrorBody
}
GetExpandInternalServerError describes a response with status code 500, with default header values.

The standard error format

func NewGetExpandInternalServerError

func NewGetExpandInternalServerError() *GetExpandInternalServerError

NewGetExpandInternalServerError creates a GetExpandInternalServerError with default headers values

func (*GetExpandInternalServerError) Error

func (*GetExpandInternalServerError) GetPayload

type GetExpandInternalServerErrorBody

type GetExpandInternalServerErrorBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// details
	Details []interface{} `json:"details"`

	// message
	Message string `json:"message,omitempty"`

	// reason
	Reason string `json:"reason,omitempty"`

	// request
	Request string `json:"request,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

GetExpandInternalServerErrorBody get expand internal server error body swagger:model GetExpandInternalServerErrorBody

func (*GetExpandInternalServerErrorBody) ContextValidate

func (o *GetExpandInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get expand internal server error body based on context it is used

func (*GetExpandInternalServerErrorBody) MarshalBinary

func (o *GetExpandInternalServerErrorBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetExpandInternalServerErrorBody) UnmarshalBinary

func (o *GetExpandInternalServerErrorBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetExpandInternalServerErrorBody) Validate

Validate validates this get expand internal server error body

type GetExpandNotFound

type GetExpandNotFound struct {
	Payload *GetExpandNotFoundBody
}
GetExpandNotFound describes a response with status code 404, with default header values.

The standard error format

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() *GetExpandNotFoundBody

type GetExpandNotFoundBody

type GetExpandNotFoundBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// details
	Details []interface{} `json:"details"`

	// message
	Message string `json:"message,omitempty"`

	// reason
	Reason string `json:"reason,omitempty"`

	// request
	Request string `json:"request,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

GetExpandNotFoundBody get expand not found body swagger:model GetExpandNotFoundBody

func (*GetExpandNotFoundBody) ContextValidate

func (o *GetExpandNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get expand not found body based on context it is used

func (*GetExpandNotFoundBody) MarshalBinary

func (o *GetExpandNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetExpandNotFoundBody) UnmarshalBinary

func (o *GetExpandNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetExpandNotFoundBody) Validate

func (o *GetExpandNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this get expand not found body

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 Relation Tuple
	*/
	Namespace string

	/* Object.

	   Object of the Relation Tuple
	*/
	Object string

	/* Relation.

	   Relation of the Relation Tuple
	*/
	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 *GetRelationTuplesInternalServerErrorBody
}
GetRelationTuplesInternalServerError describes a response with status code 500, with default header values.

The standard error format

func NewGetRelationTuplesInternalServerError

func NewGetRelationTuplesInternalServerError() *GetRelationTuplesInternalServerError

NewGetRelationTuplesInternalServerError creates a GetRelationTuplesInternalServerError with default headers values

func (*GetRelationTuplesInternalServerError) Error

func (*GetRelationTuplesInternalServerError) GetPayload

type GetRelationTuplesInternalServerErrorBody

type GetRelationTuplesInternalServerErrorBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// details
	Details []interface{} `json:"details"`

	// message
	Message string `json:"message,omitempty"`

	// reason
	Reason string `json:"reason,omitempty"`

	// request
	Request string `json:"request,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

GetRelationTuplesInternalServerErrorBody get relation tuples internal server error body swagger:model GetRelationTuplesInternalServerErrorBody

func (*GetRelationTuplesInternalServerErrorBody) ContextValidate

ContextValidate validates this get relation tuples internal server error body based on context it is used

func (*GetRelationTuplesInternalServerErrorBody) MarshalBinary

func (o *GetRelationTuplesInternalServerErrorBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetRelationTuplesInternalServerErrorBody) UnmarshalBinary

func (o *GetRelationTuplesInternalServerErrorBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetRelationTuplesInternalServerErrorBody) Validate

Validate validates this get relation tuples internal server error body

type GetRelationTuplesNotFound

type GetRelationTuplesNotFound struct {
	Payload *GetRelationTuplesNotFoundBody
}
GetRelationTuplesNotFound describes a response with status code 404, with default header values.

The standard error format

func NewGetRelationTuplesNotFound

func NewGetRelationTuplesNotFound() *GetRelationTuplesNotFound

NewGetRelationTuplesNotFound creates a GetRelationTuplesNotFound with default headers values

func (*GetRelationTuplesNotFound) Error

func (o *GetRelationTuplesNotFound) Error() string

func (*GetRelationTuplesNotFound) GetPayload

type GetRelationTuplesNotFoundBody

type GetRelationTuplesNotFoundBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// details
	Details []interface{} `json:"details"`

	// message
	Message string `json:"message,omitempty"`

	// reason
	Reason string `json:"reason,omitempty"`

	// request
	Request string `json:"request,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

GetRelationTuplesNotFoundBody get relation tuples not found body swagger:model GetRelationTuplesNotFoundBody

func (*GetRelationTuplesNotFoundBody) ContextValidate

func (o *GetRelationTuplesNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get relation tuples not found body based on context it is used

func (*GetRelationTuplesNotFoundBody) MarshalBinary

func (o *GetRelationTuplesNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetRelationTuplesNotFoundBody) UnmarshalBinary

func (o *GetRelationTuplesNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetRelationTuplesNotFoundBody) Validate

func (o *GetRelationTuplesNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this get relation tuples not found body

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

type GetRelationTuplesParams

type GetRelationTuplesParams struct {

	// Namespace.
	Namespace string

	// Object.
	Object *string

	// PageSize.
	//
	// Format: int64
	PageSize *int64

	// PageToken.
	PageToken *string

	// Relation.
	Relation *string

	// Subject.
	Subject *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) SetSubject

func (o *GetRelationTuplesParams) SetSubject(subject *string)

SetSubject adds the subject 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

WithContext adds the context to the get relation tuples params

func (*GetRelationTuplesParams) WithDefaults

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) WithSubject

func (o *GetRelationTuplesParams) WithSubject(subject *string) *GetRelationTuplesParams

WithSubject adds the subject to the get relation tuples params

func (*GetRelationTuplesParams) WithTimeout

WithTimeout adds the timeout to the get relation tuples params

func (*GetRelationTuplesParams) WriteToRequest

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 *PostCheckBadRequestBody
}
PostCheckBadRequest describes a response with status code 400, with default header values.

The standard error format

func NewPostCheckBadRequest

func NewPostCheckBadRequest() *PostCheckBadRequest

NewPostCheckBadRequest creates a PostCheckBadRequest with default headers values

func (*PostCheckBadRequest) Error

func (o *PostCheckBadRequest) Error() string

func (*PostCheckBadRequest) GetPayload

type PostCheckBadRequestBody

type PostCheckBadRequestBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// details
	Details []interface{} `json:"details"`

	// message
	Message string `json:"message,omitempty"`

	// reason
	Reason string `json:"reason,omitempty"`

	// request
	Request string `json:"request,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

PostCheckBadRequestBody post check bad request body swagger:model PostCheckBadRequestBody

func (*PostCheckBadRequestBody) ContextValidate

func (o *PostCheckBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post check bad request body based on context it is used

func (*PostCheckBadRequestBody) MarshalBinary

func (o *PostCheckBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostCheckBadRequestBody) UnmarshalBinary

func (o *PostCheckBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostCheckBadRequestBody) Validate

func (o *PostCheckBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this post check bad request body

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 *PostCheckInternalServerErrorBody
}
PostCheckInternalServerError describes a response with status code 500, with default header values.

The standard error format

func NewPostCheckInternalServerError

func NewPostCheckInternalServerError() *PostCheckInternalServerError

NewPostCheckInternalServerError creates a PostCheckInternalServerError with default headers values

func (*PostCheckInternalServerError) Error

func (*PostCheckInternalServerError) GetPayload

type PostCheckInternalServerErrorBody

type PostCheckInternalServerErrorBody struct {

	// code
	Code int64 `json:"code,omitempty"`

	// details
	Details []interface{} `json:"details"`

	// message
	Message string `json:"message,omitempty"`

	// reason
	Reason string `json:"reason,omitempty"`

	// request
	Request string `json:"request,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

PostCheckInternalServerErrorBody post check internal server error body swagger:model PostCheckInternalServerErrorBody

func (*PostCheckInternalServerErrorBody) ContextValidate

func (o *PostCheckInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post check internal server error body based on context it is used

func (*PostCheckInternalServerErrorBody) MarshalBinary

func (o *PostCheckInternalServerErrorBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostCheckInternalServerErrorBody) UnmarshalBinary

func (o *PostCheckInternalServerErrorBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostCheckInternalServerErrorBody) Validate

Validate validates this post check internal server error body

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.InternalRelationTuple

	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) SetPayload

func (o *PostCheckParams) SetPayload(payload *models.InternalRelationTuple)

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) WithPayload

func (o *PostCheckParams) WithPayload(payload *models.InternalRelationTuple) *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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL