Documentation ¶
Index ¶
- Constants
- type ExpandTree
- type GetCheckResponse
- type GetRelationTuplesResponse
- func (m *GetRelationTuplesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GetRelationTuplesResponse) MarshalBinary() ([]byte, error)
- func (m *GetRelationTuplesResponse) UnmarshalBinary(b []byte) error
- func (m *GetRelationTuplesResponse) Validate(formats strfmt.Registry) error
- type HealthNotReadyStatus
- type HealthStatus
- type InternalRelationTuple
- type PatchAction
- type PatchDelta
- type Subject
- type Version
Constants ¶
const ( // ExpandTreeTypeUnion captures enum value "union" ExpandTreeTypeUnion string = "union" // ExpandTreeTypeExclusion captures enum value "exclusion" ExpandTreeTypeExclusion string = "exclusion" // ExpandTreeTypeIntersection captures enum value "intersection" ExpandTreeTypeIntersection string = "intersection" // ExpandTreeTypeLeaf captures enum value "leaf" ExpandTreeTypeLeaf string = "leaf" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpandTree ¶
type ExpandTree struct { // children Children []*ExpandTree `json:"children"` // subject // Required: true Subject *Subject `json:"subject"` // type // Required: true // Enum: [union exclusion intersection leaf] Type *string `json:"type"` }
ExpandTree expand tree
swagger:model expandTree
func (*ExpandTree) ContextValidate ¶
ContextValidate validate this expand tree based on the context it is used
func (*ExpandTree) MarshalBinary ¶
func (m *ExpandTree) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ExpandTree) UnmarshalBinary ¶
func (m *ExpandTree) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetCheckResponse ¶
type GetCheckResponse struct { // whether the relation tuple is allowed // Required: true Allowed *bool `json:"allowed"` }
GetCheckResponse Represents the response for a check request.
The content of the allowed field is mirrored in the HTTP status code.
swagger:model getCheckResponse
func (*GetCheckResponse) ContextValidate ¶
ContextValidate validates this get check response based on context it is used
func (*GetCheckResponse) MarshalBinary ¶
func (m *GetCheckResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetCheckResponse) UnmarshalBinary ¶
func (m *GetCheckResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRelationTuplesResponse ¶
type GetRelationTuplesResponse struct { // is last page IsLastPage bool `json:"is_last_page,omitempty"` // next page token NextPageToken string `json:"next_page_token,omitempty"` // relation tuples RelationTuples []*InternalRelationTuple `json:"relation_tuples"` }
GetRelationTuplesResponse get relation tuples response
swagger:model getRelationTuplesResponse
func (*GetRelationTuplesResponse) ContextValidate ¶
func (m *GetRelationTuplesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get relation tuples response based on the context it is used
func (*GetRelationTuplesResponse) MarshalBinary ¶
func (m *GetRelationTuplesResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRelationTuplesResponse) UnmarshalBinary ¶
func (m *GetRelationTuplesResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HealthNotReadyStatus ¶
type HealthNotReadyStatus struct { // Errors contains a list of errors that caused the not ready status. Errors map[string]string `json:"errors,omitempty"` }
HealthNotReadyStatus health not ready status
swagger:model healthNotReadyStatus
func (*HealthNotReadyStatus) ContextValidate ¶
ContextValidate validates this health not ready status based on context it is used
func (*HealthNotReadyStatus) MarshalBinary ¶
func (m *HealthNotReadyStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HealthNotReadyStatus) UnmarshalBinary ¶
func (m *HealthNotReadyStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HealthStatus ¶
type HealthStatus struct { // Status always contains "ok". Status string `json:"status,omitempty"` }
HealthStatus health status
swagger:model healthStatus
func (*HealthStatus) ContextValidate ¶
ContextValidate validates this health status based on context it is used
func (*HealthStatus) MarshalBinary ¶
func (m *HealthStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HealthStatus) UnmarshalBinary ¶
func (m *HealthStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InternalRelationTuple ¶
type InternalRelationTuple struct { // Namespace of the Relation Tuple // // in: query // Required: true Namespace *string `json:"namespace"` // Object of the Relation Tuple // // in: query // Required: true Object *string `json:"object"` // Relation of the Relation Tuple // // in: query // Required: true Relation *string `json:"relation"` // subject // Required: true Subject *Subject `json:"subject"` }
InternalRelationTuple internal relation tuple
swagger:model InternalRelationTuple
func (*InternalRelationTuple) ContextValidate ¶
ContextValidate validate this internal relation tuple based on the context it is used
func (*InternalRelationTuple) MarshalBinary ¶
func (m *InternalRelationTuple) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InternalRelationTuple) UnmarshalBinary ¶
func (m *InternalRelationTuple) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PatchAction ¶
type PatchAction string
PatchAction patch action
swagger:model patchAction
func (PatchAction) ContextValidate ¶
ContextValidate validates this patch action based on context it is used
type PatchDelta ¶
type PatchDelta struct { // action Action PatchAction `json:"action,omitempty"` // relation tuple RelationTuple *InternalRelationTuple `json:"relation_tuple,omitempty"` }
PatchDelta patch delta
swagger:model PatchDelta
func (*PatchDelta) ContextValidate ¶
ContextValidate validate this patch delta based on the context it is used
func (*PatchDelta) MarshalBinary ¶
func (m *PatchDelta) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PatchDelta) UnmarshalBinary ¶
func (m *PatchDelta) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Subject ¶
type Subject string
Subject subject
swagger:model subject
func (Subject) ContextValidate ¶
ContextValidate validates this subject based on context it is used
type Version ¶
type Version struct { // Version is the service's version. Version string `json:"version,omitempty"` }
Version version
swagger:model version
func (*Version) ContextValidate ¶
ContextValidate validates this version based on context it is used
func (*Version) MarshalBinary ¶
MarshalBinary interface implementation
func (*Version) UnmarshalBinary ¶
UnmarshalBinary interface implementation