query

package
v0.0.0-...-f54f16c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SortOrder_name = map[int32]string{
		0: "ASC",
		1: "DESC",
	}
	SortOrder_value = map[string]int32{
		"ASC":  0,
		"DESC": 1,
	}
)

Enum value maps for SortOrder.

View Source
var File_external_common_query_parameters_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Filter

type Filter struct {

	// Field to filter on.
	Key string `protobuf:"bytes,20,opt,name=key,proto3" json:"key,omitempty"`
	// Include matches for this filter.(boolean)
	// `true` (default) *includes* all nodes that match this filter.
	// `false` *excludes* all nodes that match this filter.
	Exclude bool `protobuf:"varint,22,opt,name=exclude,proto3" json:"exclude,omitempty"`
	// Field values to filter on.
	Values []string `protobuf:"bytes,23,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Filter) Descriptor deprecated

func (*Filter) Descriptor() ([]byte, []int)

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetExclude

func (x *Filter) GetExclude() bool

func (*Filter) GetKey

func (x *Filter) GetKey() string

func (*Filter) GetValues

func (x *Filter) GetValues() []string

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect

func (x *Filter) ProtoReflect() protoreflect.Message

func (*Filter) Reset

func (x *Filter) Reset()

func (*Filter) String

func (x *Filter) String() string

type Kv

type Kv struct {

	// Tag key.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Tag value.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Kv) Descriptor deprecated

func (*Kv) Descriptor() ([]byte, []int)

Deprecated: Use Kv.ProtoReflect.Descriptor instead.

func (*Kv) GetKey

func (x *Kv) GetKey() string

func (*Kv) GetValue

func (x *Kv) GetValue() string

func (*Kv) ProtoMessage

func (*Kv) ProtoMessage()

func (*Kv) ProtoReflect

func (x *Kv) ProtoReflect() protoreflect.Message

func (*Kv) Reset

func (x *Kv) Reset()

func (*Kv) String

func (x *Kv) String() string

type Pagination

type Pagination struct {

	// Page number of the results to return.
	Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	// Amount of results to include per page.
	Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*Pagination) Descriptor deprecated

func (*Pagination) Descriptor() ([]byte, []int)

Deprecated: Use Pagination.ProtoReflect.Descriptor instead.

func (*Pagination) GetPage

func (x *Pagination) GetPage() int32

func (*Pagination) GetSize

func (x *Pagination) GetSize() int32

func (*Pagination) ProtoMessage

func (*Pagination) ProtoMessage()

func (*Pagination) ProtoReflect

func (x *Pagination) ProtoReflect() protoreflect.Message

func (*Pagination) Reset

func (x *Pagination) Reset()

func (*Pagination) String

func (x *Pagination) String() string

type SortOrder

type SortOrder int32
const (
	SortOrder_ASC  SortOrder = 0
	SortOrder_DESC SortOrder = 1
)

func (SortOrder) Descriptor

func (SortOrder) Descriptor() protoreflect.EnumDescriptor

func (SortOrder) Enum

func (x SortOrder) Enum() *SortOrder

func (SortOrder) EnumDescriptor deprecated

func (SortOrder) EnumDescriptor() ([]byte, []int)

Deprecated: Use SortOrder.Descriptor instead.

func (SortOrder) Number

func (x SortOrder) Number() protoreflect.EnumNumber

func (SortOrder) String

func (x SortOrder) String() string

func (SortOrder) Type

type Sorting

type Sorting struct {

	// Field to sort the list results on.
	Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	// Order the results should be returned in.
	Order SortOrder `protobuf:"varint,2,opt,name=order,proto3,enum=chef.automate.api.common.query.SortOrder" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*Sorting) Descriptor deprecated

func (*Sorting) Descriptor() ([]byte, []int)

Deprecated: Use Sorting.ProtoReflect.Descriptor instead.

func (*Sorting) GetField

func (x *Sorting) GetField() string

func (*Sorting) GetOrder

func (x *Sorting) GetOrder() SortOrder

func (*Sorting) ProtoMessage

func (*Sorting) ProtoMessage()

func (*Sorting) ProtoReflect

func (x *Sorting) ProtoReflect() protoreflect.Message

func (*Sorting) Reset

func (x *Sorting) Reset()

func (*Sorting) String

func (x *Sorting) String() string

type Suggestion

type Suggestion struct {

	// Field for which suggestions are being returned.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Text to search on for the type value.
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// Filters to be applied to the results.
	Filter []string `protobuf:"bytes,3,rep,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*Suggestion) Descriptor deprecated

func (*Suggestion) Descriptor() ([]byte, []int)

Deprecated: Use Suggestion.ProtoReflect.Descriptor instead.

func (*Suggestion) GetFilter

func (x *Suggestion) GetFilter() []string

func (*Suggestion) GetText

func (x *Suggestion) GetText() string

func (*Suggestion) GetType

func (x *Suggestion) GetType() string

func (*Suggestion) ProtoMessage

func (*Suggestion) ProtoMessage()

func (*Suggestion) ProtoReflect

func (x *Suggestion) ProtoReflect() protoreflect.Message

func (*Suggestion) Reset

func (x *Suggestion) Reset()

func (*Suggestion) String

func (x *Suggestion) String() string

Jump to

Keyboard shortcuts

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