models

package
v0.0.0-...-87ce47b Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2017 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// FactFilterOperatorEq captures enum value "=="
	FactFilterOperatorEq string = "=="
	// FactFilterOperatorRe captures enum value "=~"
	FactFilterOperatorRe string = "=~"
	// FactFilterOperatorNrBang captures enum value "!="
	FactFilterOperatorNrBang string = "!="
	// FactFilterOperatorGe captures enum value ">="
	FactFilterOperatorGe string = ">="
	// FactFilterOperatorGt captures enum value ">"
	FactFilterOperatorGt string = ">"
	// FactFilterOperatorLe captures enum value "<="
	FactFilterOperatorLe string = "<="
	// FactFilterOperatorLt captures enum value "<"
	FactFilterOperatorLt string = "<"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentsFilter

type AgentsFilter []WordOrRegex

AgentsFilter agents filter swagger:model agentsFilter

func (AgentsFilter) Validate

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

Validate validates this agents filter

type ClassesFilter

type ClassesFilter []WordOrRegex

ClassesFilter classes filter swagger:model classesFilter

func (ClassesFilter) Validate

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

Validate validates this classes filter

type CollectiveFilter

type CollectiveFilter struct {
	Word
}

CollectiveFilter collective filter swagger:model collectiveFilter

func (*CollectiveFilter) MarshalBinary

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

MarshalBinary interface implementation

func (CollectiveFilter) MarshalJSON

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

MarshalJSON marshals this object to a JSON structure

func (*CollectiveFilter) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CollectiveFilter) UnmarshalJSON

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

UnmarshalJSON unmarshals this object from a JSON structure

func (*CollectiveFilter) Validate

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

Validate validates this collective filter

type DiscoveryRequest

type DiscoveryRequest struct {

	// agents
	Agents AgentsFilter `json:"agents"`

	// classes
	Classes ClassesFilter `json:"classes"`

	// collective
	Collective CollectiveFilter `json:"collective,omitempty"`

	// facts
	Facts FactsFilter `json:"facts"`

	// identities
	Identities IdentitiesFilter `json:"identities"`

	// PQL Query
	// Min Length: 1
	Query string `json:"query,omitempty"`
}

DiscoveryRequest discovery request swagger:model discoveryRequest

func (*DiscoveryRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*DiscoveryRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DiscoveryRequest) Validate

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

Validate validates this discovery request

type DiscoverySuccessModel

type DiscoverySuccessModel struct {

	// HTTP Status Code
	Code int64 `json:"code,omitempty"`

	// nodes
	Nodes []string `json:"nodes"`
}

DiscoverySuccessModel discovery success model swagger:model discoverySuccessModel

func (*DiscoverySuccessModel) MarshalBinary

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

MarshalBinary interface implementation

func (*DiscoverySuccessModel) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DiscoverySuccessModel) Validate

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

Validate validates this discovery success model

type ErrorModel

type ErrorModel struct {

	// HTTP Status Code
	Code int64 `json:"code,omitempty"`

	// Short description of the problem
	Message string `json:"message,omitempty"`
}

ErrorModel error model swagger:model errorModel

func (*ErrorModel) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorModel) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorModel) Validate

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

Validate validates this error model

type FactFilter

type FactFilter struct {

	// fact
	// Required: true
	Fact Word `json:"fact"`

	// operator
	// Required: true
	Operator *string `json:"operator"`

	// value
	// Required: true
	Value WordOrRegex `json:"value"`
}

FactFilter fact filter swagger:model factFilter

func (*FactFilter) MarshalBinary

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

MarshalBinary interface implementation

func (*FactFilter) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*FactFilter) Validate

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

Validate validates this fact filter

type FactsFilter

type FactsFilter []*FactFilter

FactsFilter facts filter swagger:model factsFilter

func (FactsFilter) Validate

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

Validate validates this facts filter

type IdentitiesFilter

type IdentitiesFilter []WordOrRegex

IdentitiesFilter identities filter swagger:model identitiesFilter

func (IdentitiesFilter) Validate

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

Validate validates this identities filter

type Set

type Set struct {

	// nodes
	Nodes []string `json:"nodes"`

	// query
	// Required: true
	// Min Length: 1
	Query *string `json:"query"`

	// set
	// Required: true
	Set Word `json:"set"`
}

Set set swagger:model set

func (*Set) MarshalBinary

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

MarshalBinary interface implementation

func (*Set) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Set) Validate

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

Validate validates this set

type Sets

type Sets struct {

	// HTTP Status Code
	Code int64 `json:"code,omitempty"`

	// sets
	Sets []Word `json:"sets"`
}

Sets sets swagger:model sets

func (*Sets) MarshalBinary

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

MarshalBinary interface implementation

func (*Sets) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Sets) Validate

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

Validate validates this sets

type SuccessModel

type SuccessModel struct {

	// HTTP Status Code
	Code int64 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

SuccessModel success model swagger:model successModel

func (*SuccessModel) MarshalBinary

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

MarshalBinary interface implementation

func (*SuccessModel) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SuccessModel) Validate

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

Validate validates this success model

type Word

type Word string

Word word swagger:model word

func (Word) Validate

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

Validate validates this word

type WordOrRegex

type WordOrRegex string

WordOrRegex word or regex swagger:model wordOrRegex

func (WordOrRegex) Validate

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

Validate validates this word or regex

Jump to

Keyboard shortcuts

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