Documentation
¶
Index ¶
- Constants
- type ExpandTree
- type GenericError
- 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 PatchDelta
- type RelationQuery
- type Subject
- type SubjectSet
- type UUID
- 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" )
const ( // PatchDeltaActionInsert captures enum value "insert" PatchDeltaActionInsert string = "insert" // PatchDeltaActionDelete captures enum value "delete" PatchDeltaActionDelete string = "delete" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpandTree ¶
type ExpandTree struct {
// children
Children []*ExpandTree `json:"children"`
// subject id
SubjectID string `json:"subject_id,omitempty"`
// subject set
SubjectSet *SubjectSet `json:"subject_set,omitempty"`
// 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 GenericError ¶
type GenericError 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"`
}
GenericError The standard error format
swagger:model genericError
func (*GenericError) ContextValidate ¶
ContextValidate validates this generic error based on context it is used
func (*GenericError) MarshalBinary ¶
func (m *GenericError) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GenericError) UnmarshalBinary ¶
func (m *GenericError) 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 {
// The opaque token to provide in a subsequent request
// to get the next page. It is the empty string iff this is
// the last page.
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
// Required: true
Namespace *string `json:"namespace"`
// Object of the Relation Tuple
// Required: true
Object *string `json:"object"`
// Relation of the Relation Tuple
// Required: true
Relation *string `json:"relation"`
// SubjectID of the Relation Tuple
//
// Either SubjectSet or SubjectID are required.
SubjectID string `json:"subject_id,omitempty"`
// subject set
SubjectSet *SubjectSet `json:"subject_set,omitempty"`
}
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 PatchDelta ¶
type PatchDelta struct {
// action
// Enum: [insert delete]
Action string `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 RelationQuery ¶
type RelationQuery struct {
// Namespace of the Relation Tuple
Namespace string `json:"namespace,omitempty"`
// Object of the Relation Tuple
Object string `json:"object,omitempty"`
// Relation of the Relation Tuple
Relation string `json:"relation,omitempty"`
// SubjectID of the Relation Tuple
//
// Either SubjectSet or SubjectID can be provided.
SubjectID string `json:"subject_id,omitempty"`
// subject set
SubjectSet *SubjectSet `json:"subject_set,omitempty"`
}
RelationQuery relation query
swagger:model RelationQuery
func (*RelationQuery) ContextValidate ¶
ContextValidate validate this relation query based on the context it is used
func (*RelationQuery) MarshalBinary ¶
func (m *RelationQuery) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RelationQuery) UnmarshalBinary ¶
func (m *RelationQuery) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SubjectSet ¶
type SubjectSet struct {
// Namespace of the Subject Set
// Required: true
Namespace *string `json:"namespace"`
// Object of the Subject Set
// Required: true
Object *string `json:"object"`
// Relation of the Subject Set
// Required: true
Relation *string `json:"relation"`
}
SubjectSet subject set
swagger:model SubjectSet
func (*SubjectSet) ContextValidate ¶
ContextValidate validates this subject set based on context it is used
func (*SubjectSet) MarshalBinary ¶
func (m *SubjectSet) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SubjectSet) UnmarshalBinary ¶
func (m *SubjectSet) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UUID ¶
UUID UUID
swagger:model UUID
func (UUID) ContextValidate ¶
ContextValidate validates this UUID 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