models

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOryAccessControlPolicyRoleMembersBody

type AddOryAccessControlPolicyRoleMembersBody struct {

	// The members to be added.
	Members []string `json:"members"`
}

AddOryAccessControlPolicyRoleMembersBody add ory access control policy role members body

swagger:model addOryAccessControlPolicyRoleMembersBody

func (*AddOryAccessControlPolicyRoleMembersBody) MarshalBinary

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

MarshalBinary interface implementation

func (*AddOryAccessControlPolicyRoleMembersBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddOryAccessControlPolicyRoleMembersBody) Validate

Validate validates this add ory access control policy role members body

type AuthorizationResult

type AuthorizationResult struct {

	// Allowed is true if the request should be allowed and false otherwise.
	// Required: true
	Allowed *bool `json:"allowed"`
}

AuthorizationResult AuthorizationResult is the result of an access control decision. It contains the decision outcome.

swagger:model authorizationResult

func (*AuthorizationResult) MarshalBinary

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

MarshalBinary interface implementation

func (*AuthorizationResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AuthorizationResult) Validate

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

Validate validates this authorization result

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

type OryAccessControlPolicy struct {

	// Actions is an array representing all the actions this ORY Access Policy applies to.
	Actions []string `json:"actions"`

	// Conditions represents a keyed object of conditions under which this ORY Access Policy is active.
	Conditions map[string]interface{} `json:"conditions,omitempty"`

	// Description is an optional, human-readable description.
	Description string `json:"description,omitempty"`

	// Effect is the effect of this ORY Access Policy. It can be "allow" or "deny".
	Effect string `json:"effect,omitempty"`

	// ID is the unique identifier of the ORY Access Policy. It is used to query, update, and remove the ORY Access Policy.
	ID string `json:"id,omitempty"`

	// Resources is an array representing all the resources this ORY Access Policy applies to.
	Resources []string `json:"resources"`

	// Subjects is an array representing all the subjects this ORY Access Policy applies to.
	Subjects []string `json:"subjects"`
}

OryAccessControlPolicy oryAccessControlPolicy specifies an ORY Access Policy document.

swagger:model oryAccessControlPolicy

func (*OryAccessControlPolicy) MarshalBinary

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

MarshalBinary interface implementation

func (*OryAccessControlPolicy) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OryAccessControlPolicy) Validate

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

Validate validates this ory access control policy

type OryAccessControlPolicyAllowedInput

type OryAccessControlPolicyAllowedInput struct {

	// Action is the action that is requested on the resource.
	Action string `json:"action,omitempty"`

	// Context is the request's environmental context.
	Context map[string]interface{} `json:"context,omitempty"`

	// Resource is the resource that access is requested to.
	Resource string `json:"resource,omitempty"`

	// Subject is the subject that is requesting access.
	Subject string `json:"subject,omitempty"`
}

OryAccessControlPolicyAllowedInput Input for checking if a request is allowed or not.

swagger:model oryAccessControlPolicyAllowedInput

func (*OryAccessControlPolicyAllowedInput) MarshalBinary

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

MarshalBinary interface implementation

func (*OryAccessControlPolicyAllowedInput) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OryAccessControlPolicyAllowedInput) Validate

Validate validates this ory access control policy allowed input

type OryAccessControlPolicyRole

type OryAccessControlPolicyRole struct {

	// ID is the role's unique id.
	ID string `json:"id,omitempty"`

	// Members is who belongs to the role.
	Members []string `json:"members"`
}

OryAccessControlPolicyRole oryAccessControlPolicyRole represents a group of users that share the same role. A role could be an administrator, a moderator, a regular user or some other sort of role.

swagger:model oryAccessControlPolicyRole

func (*OryAccessControlPolicyRole) MarshalBinary

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

MarshalBinary interface implementation

func (*OryAccessControlPolicyRole) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OryAccessControlPolicyRole) Validate

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

Validate validates this ory access control policy role

type Version

type Version struct {

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

Version version

swagger:model version

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