models

package
v0.6.0-alpha.1.pre.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 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"
)

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

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 {

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

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

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 PatchAction

type PatchAction string

PatchAction patch action

swagger:model patchAction

func (PatchAction) ContextValidate

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

ContextValidate validates this patch action based on context it is used

func (PatchAction) Validate

func (m PatchAction) Validate(formats strfmt.Registry) error

Validate validates this patch action

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

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 Subject

type Subject string

Subject subject

swagger:model subject

func (Subject) ContextValidate

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

ContextValidate validates this subject based on context it is used

func (Subject) Validate

func (m Subject) Validate(formats strfmt.Registry) error

Validate validates this subject

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