models

package
v0.7.0-alpha.0.pre.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
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

func (m *ExpandTree) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ExpandTree) Validate

func (m *ExpandTree) Validate(formats strfmt.Registry) error

Validate validates this expand tree

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

func (m *GetCheckResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*GetCheckResponse) Validate

func (m *GetCheckResponse) Validate(formats strfmt.Registry) error

Validate validates this get check response

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

func (*GetRelationTuplesResponse) Validate

func (m *GetRelationTuplesResponse) Validate(formats strfmt.Registry) error

Validate validates this get relation tuples response

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

func (m *HealthNotReadyStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*HealthNotReadyStatus) Validate

func (m *HealthNotReadyStatus) Validate(formats strfmt.Registry) error

Validate validates this health not ready status

type HealthStatus

type HealthStatus struct {

	// Status always contains "ok".
	Status string `json:"status,omitempty"`
}

HealthStatus health status

swagger:model healthStatus

func (*HealthStatus) ContextValidate

func (m *HealthStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*HealthStatus) Validate

func (m *HealthStatus) Validate(formats strfmt.Registry) error

Validate validates this health status

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

func (m *InternalRelationTuple) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*InternalRelationTuple) Validate

func (m *InternalRelationTuple) Validate(formats strfmt.Registry) error

Validate validates this internal relation tuple

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

func (m *PatchDelta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*PatchDelta) Validate

func (m *PatchDelta) Validate(formats strfmt.Registry) error

Validate validates this patch delta

type RelationQuery

type RelationQuery struct {

	// Namespace of the Relation Tuple
	// Required: true
	Namespace *string `json:"namespace"`

	// 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

func (m *RelationQuery) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*RelationQuery) Validate

func (m *RelationQuery) Validate(formats strfmt.Registry) error

Validate validates this relation query

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

func (m *SubjectSet) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*SubjectSet) Validate

func (m *SubjectSet) Validate(formats strfmt.Registry) error

Validate validates this subject set

type Version

type Version struct {

	// Version is the service's version.
	Version string `json:"version,omitempty"`
}

Version version

swagger:model version

func (*Version) ContextValidate

func (m *Version) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this version based on context it is used

func (*Version) MarshalBinary

func (m *Version) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Version) UnmarshalBinary

func (m *Version) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Version) Validate

func (m *Version) Validate(formats strfmt.Registry) error

Validate validates this version

Jump to

Keyboard shortcuts

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