models

package
v0.0.0-...-7b7c10a Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorization

type Authorization struct {

	// id
	ID string `json:"id,omitempty"`

	// requesting party
	// Required: true
	RequestingParty *string `json:"requestingParty"`

	// scope
	// Required: true
	Scope *AuthorizationScope `json:"scope"`

	// zcap
	Zcap string `json:"zcap,omitempty"`
}

Authorization authorization

swagger:model Authorization

func (*Authorization) ContextValidate

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

ContextValidate validate this authorization based on the context it is used

func (*Authorization) MarshalBinary

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

MarshalBinary interface implementation

func (Authorization) MarshalJSON

func (m Authorization) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*Authorization) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Authorization) UnmarshalJSON

func (m *Authorization) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*Authorization) Validate

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

Validate validates this authorization

type AuthorizationScope

type AuthorizationScope struct {

	// action
	// Required: true
	Action []string `json:"action"`

	// resource ID
	// Required: true
	ResourceID *string `json:"resourceID"`

	// resource type
	// Required: true
	ResourceType *string `json:"resourceType"`
	// contains filtered or unexported fields
}

AuthorizationScope authorization scope

swagger:model AuthorizationScope

func (*AuthorizationScope) Caveats

func (m *AuthorizationScope) Caveats() []Caveat

Caveats gets the caveats of this base type

func (*AuthorizationScope) ContextValidate

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

ContextValidate validate this authorization scope based on the context it is used

func (*AuthorizationScope) MarshalBinary

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

MarshalBinary interface implementation

func (AuthorizationScope) MarshalJSON

func (m AuthorizationScope) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*AuthorizationScope) SetCaveats

func (m *AuthorizationScope) SetCaveats(val []Caveat)

SetCaveats sets the caveats of this base type

func (*AuthorizationScope) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AuthorizationScope) UnmarshalJSON

func (m *AuthorizationScope) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*AuthorizationScope) Validate

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

Validate validates this authorization scope

type Caveat

type Caveat interface {
	runtime.Validatable
	runtime.ContextValidatable

	// type
	// Required: true
	Type() string
	SetType(string)
}

Caveat caveat

swagger:discriminator Caveat type

func UnmarshalCaveat

func UnmarshalCaveat(reader io.Reader, consumer runtime.Consumer) (Caveat, error)

UnmarshalCaveat unmarshals polymorphic Caveat

func UnmarshalCaveatSlice

func UnmarshalCaveatSlice(reader io.Reader, consumer runtime.Consumer) ([]Caveat, error)

UnmarshalCaveatSlice unmarshals polymorphic slices of Caveat

type Comparison

type Comparison struct {

	// result
	Result bool `json:"result,omitempty"`
}

Comparison TODO - "comparison" does not sound apt as a name

swagger:model Comparison

func (*Comparison) ContextValidate

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

ContextValidate validates this comparison based on context it is used

func (*Comparison) MarshalBinary

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

MarshalBinary interface implementation

func (*Comparison) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Comparison) Validate

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

Validate validates this comparison

type ComparisonRequest

type ComparisonRequest struct {
	// contains filtered or unexported fields
}

ComparisonRequest comparison request

swagger:model ComparisonRequest

func (*ComparisonRequest) ContextValidate

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

ContextValidate validate this comparison request based on the context it is used

func (*ComparisonRequest) MarshalBinary

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

MarshalBinary interface implementation

func (ComparisonRequest) MarshalJSON

func (m ComparisonRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ComparisonRequest) Op

func (m *ComparisonRequest) Op() Operator

Op gets the op of this base type

func (*ComparisonRequest) SetOp

func (m *ComparisonRequest) SetOp(val Operator)

SetOp sets the op of this base type

func (*ComparisonRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ComparisonRequest) UnmarshalJSON

func (m *ComparisonRequest) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ComparisonRequest) Validate

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

Validate validates this comparison request

type DocQuery

type DocQuery struct {

	// doc ID
	// Required: true
	DocID *string `json:"docID"`

	// path
	Path string `json:"path,omitempty"`

	// upstream auth
	// Required: true
	UpstreamAuth *DocQueryAO1UpstreamAuth `json:"upstreamAuth"`

	// vault ID
	// Required: true
	VaultID *string `json:"vaultID"`
	// contains filtered or unexported fields
}

DocQuery doc query

swagger:model DocQuery

func (*DocQuery) ContextValidate

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

ContextValidate validate this doc query based on the context it is used

func (*DocQuery) ID

func (m *DocQuery) ID() string

ID gets the id of this subtype

func (*DocQuery) MarshalBinary

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

MarshalBinary interface implementation

func (DocQuery) MarshalJSON

func (m DocQuery) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*DocQuery) SetID

func (m *DocQuery) SetID(val string)

SetID sets the id of this subtype

func (*DocQuery) SetType

func (m *DocQuery) SetType(val string)

SetType sets the type of this subtype

func (*DocQuery) Type

func (m *DocQuery) Type() string

Type gets the type of this subtype

func (*DocQuery) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DocQuery) UnmarshalJSON

func (m *DocQuery) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*DocQuery) Validate

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

Validate validates this doc query

type DocQueryAO1UpstreamAuth

type DocQueryAO1UpstreamAuth struct {

	// edv
	// Required: true
	Edv *UpstreamAuthorization `json:"edv"`

	// kms
	// Required: true
	Kms *UpstreamAuthorization `json:"kms"`
}

DocQueryAO1UpstreamAuth doc query a o1 upstream auth

swagger:model DocQueryAO1UpstreamAuth

func (*DocQueryAO1UpstreamAuth) ContextValidate

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

ContextValidate validate this doc query a o1 upstream auth based on the context it is used

func (*DocQueryAO1UpstreamAuth) MarshalBinary

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

MarshalBinary interface implementation

func (*DocQueryAO1UpstreamAuth) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DocQueryAO1UpstreamAuth) Validate

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

Validate validates this doc query a o1 upstream auth

type EqOp

type EqOp struct {
	// contains filtered or unexported fields
}

EqOp eq op

swagger:model EqOp

func (*EqOp) Args

func (m *EqOp) Args() []Query

Args gets the args of this subtype

func (*EqOp) ContextValidate

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

ContextValidate validate this eq op based on the context it is used

func (*EqOp) MarshalBinary

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

MarshalBinary interface implementation

func (EqOp) MarshalJSON

func (m EqOp) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*EqOp) SetArgs

func (m *EqOp) SetArgs(val []Query)

SetArgs sets the args of this subtype

func (*EqOp) SetType

func (m *EqOp) SetType(val string)

SetType sets the type of this subtype

func (*EqOp) Type

func (m *EqOp) Type() string

Type gets the type of this subtype

func (*EqOp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EqOp) UnmarshalJSON

func (m *EqOp) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*EqOp) Validate

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

Validate validates this eq op

type Error

type Error struct {

	// err message
	ErrMessage string `json:"errMessage,omitempty"`
}

Error error

swagger:model Error

func (*Error) ContextValidate

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

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

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

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Error) Validate

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

Validate validates this error

type ExpiryCaveat

type ExpiryCaveat struct {

	// Duration (in seconds) for which this authorization will remain valid.
	Duration int64 `json:"duration,omitempty"`
}

ExpiryCaveat expiry caveat

swagger:model ExpiryCaveat

func (*ExpiryCaveat) ContextValidate

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

ContextValidate validate this expiry caveat based on the context it is used

func (*ExpiryCaveat) MarshalBinary

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

MarshalBinary interface implementation

func (ExpiryCaveat) MarshalJSON

func (m ExpiryCaveat) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ExpiryCaveat) SetType

func (m *ExpiryCaveat) SetType(val string)

SetType sets the type of this subtype

func (*ExpiryCaveat) Type

func (m *ExpiryCaveat) Type() string

Type gets the type of this subtype

func (*ExpiryCaveat) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExpiryCaveat) UnmarshalJSON

func (m *ExpiryCaveat) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ExpiryCaveat) Validate

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

Validate validates this expiry caveat

type ExtractionResponse

type ExtractionResponse []*ExtractionResponseItems0

ExtractionResponse extraction response

swagger:model ExtractionResponse

func (ExtractionResponse) ContextValidate

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

ContextValidate validate this extraction response based on the context it is used

func (ExtractionResponse) Validate

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

Validate validates this extraction response

type ExtractionResponseItems0

type ExtractionResponseItems0 struct {

	// document
	Document interface{} `json:"document,omitempty"`

	// id
	ID string `json:"id,omitempty"`
}

ExtractionResponseItems0 extraction response items0

swagger:model ExtractionResponseItems0

func (*ExtractionResponseItems0) ContextValidate

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

ContextValidate validates this extraction response items0 based on context it is used

func (*ExtractionResponseItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*ExtractionResponseItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExtractionResponseItems0) Validate

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

Validate validates this extraction response items0

type Operator

type Operator interface {
	runtime.Validatable
	runtime.ContextValidatable

	// type
	// Required: true
	Type() string
	SetType(string)
}

Operator operator

swagger:discriminator Operator type

func UnmarshalOperator

func UnmarshalOperator(reader io.Reader, consumer runtime.Consumer) (Operator, error)

UnmarshalOperator unmarshals polymorphic Operator

func UnmarshalOperatorSlice

func UnmarshalOperatorSlice(reader io.Reader, consumer runtime.Consumer) ([]Operator, error)

UnmarshalOperatorSlice unmarshals polymorphic slices of Operator

type Profile

type Profile struct {

	// controller
	// Required: true
	Controller *string `json:"controller"`

	// id
	ID string `json:"id,omitempty"`

	// zcap
	Zcap string `json:"zcap,omitempty"`
}

Profile profile

swagger:model Profile

func (*Profile) ContextValidate

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

ContextValidate validates this profile based on context it is used

func (*Profile) MarshalBinary

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

MarshalBinary interface implementation

func (*Profile) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Profile) Validate

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

Validate validates this profile

type Query

type Query interface {
	runtime.Validatable
	runtime.ContextValidatable

	// id
	ID() string
	SetID(string)

	// type
	// Required: true
	Type() string
	SetType(string)
}

Query query

swagger:discriminator Query type

func UnmarshalQuery

func UnmarshalQuery(reader io.Reader, consumer runtime.Consumer) (Query, error)

UnmarshalQuery unmarshals polymorphic Query

func UnmarshalQuerySlice

func UnmarshalQuerySlice(reader io.Reader, consumer runtime.Consumer) ([]Query, error)

UnmarshalQuerySlice unmarshals polymorphic slices of Query

type RefQuery

type RefQuery struct {

	// ref
	// Required: true
	Ref *string `json:"ref"`
	// contains filtered or unexported fields
}

RefQuery ref query

swagger:model RefQuery

func (*RefQuery) ContextValidate

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

ContextValidate validate this ref query based on the context it is used

func (*RefQuery) ID

func (m *RefQuery) ID() string

ID gets the id of this subtype

func (*RefQuery) MarshalBinary

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

MarshalBinary interface implementation

func (RefQuery) MarshalJSON

func (m RefQuery) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*RefQuery) SetID

func (m *RefQuery) SetID(val string)

SetID sets the id of this subtype

func (*RefQuery) SetType

func (m *RefQuery) SetType(val string)

SetType sets the type of this subtype

func (*RefQuery) Type

func (m *RefQuery) Type() string

Type gets the type of this subtype

func (*RefQuery) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RefQuery) UnmarshalJSON

func (m *RefQuery) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*RefQuery) Validate

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

Validate validates this ref query

type UpstreamAuthorization

type UpstreamAuthorization struct {

	// base URL
	BaseURL string `json:"baseURL,omitempty"`

	// zcap
	Zcap string `json:"zcap,omitempty"`
}

UpstreamAuthorization upstream authorization

swagger:model UpstreamAuthorization

func (*UpstreamAuthorization) ContextValidate

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

ContextValidate validates this upstream authorization based on context it is used

func (*UpstreamAuthorization) MarshalBinary

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

MarshalBinary interface implementation

func (*UpstreamAuthorization) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpstreamAuthorization) Validate

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

Validate validates this upstream authorization

Jump to

Keyboard shortcuts

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