Documentation
¶
Overview ¶
Package v1alpha1 contains ControlPlane resources. +kubebuilder:object:generate=true +groupName=spaces.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Direction
- type GroupQuery
- func (in *GroupQuery) DeepCopy() *GroupQuery
- func (in *GroupQuery) DeepCopyInto(out *GroupQuery)
- func (in *GroupQuery) DeepCopyObject() runtime.Object
- func (q *GroupQuery) Default()
- func (q *GroupQuery) GetSpec() *QuerySpec
- func (q *GroupQuery) SetResponse(response *QueryResponse)
- func (q *GroupQuery) SetSpec(spec *QuerySpec)
- func (c *GroupQuery) ValidateCreate() (errs field.ErrorList)
- type JSON
- type JSONObject
- func (j *JSONObject) DeepCopy() *JSONObject
- func (j *JSONObject) DeepCopyInto(target *JSONObject)
- func (cr *JSONObject) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (j JSONObject) MarshalJSON() ([]byte, error)
- func (_ JSONObject) OpenAPISchemaFormat() string
- func (_ JSONObject) OpenAPISchemaType() []string
- func (cr *JSONObject) SetConditions(c ...xpv1.Condition)
- func (j *JSONObject) String() string
- func (j *JSONObject) UnmarshalJSON(data []byte) error
- type Query
- func (in *Query) DeepCopy() *Query
- func (in *Query) DeepCopyInto(out *Query)
- func (in *Query) DeepCopyObject() runtime.Object
- func (q *Query) Default()
- func (q *Query) GetSpec() *QuerySpec
- func (q *Query) SetResponse(response *QueryResponse)
- func (q *Query) SetSpec(spec *QuerySpec)
- func (c *Query) ValidateCreate() (errs field.ErrorList)
- type QueryCondition
- type QueryFilter
- type QueryFilterControlPlane
- type QueryNestedResources
- type QueryObjects
- type QueryOrder
- type QueryOwner
- type QueryPage
- type QueryRelation
- type QueryResources
- type QueryResponse
- type QueryResponseControlPlane
- type QueryResponseCursor
- type QueryResponseMutablePath
- type QueryResponseObject
- type QueryResponseObjects
- type QueryResponseRelation
- type QuerySpec
- type QueryTopLevelFilter
- type QueryTopLevelResources
- type SpaceQuery
- func (in *SpaceQuery) DeepCopy() *SpaceQuery
- func (in *SpaceQuery) DeepCopyInto(out *SpaceQuery)
- func (in *SpaceQuery) DeepCopyObject() runtime.Object
- func (q *SpaceQuery) Default()
- func (q *SpaceQuery) GetSpec() *QuerySpec
- func (q *SpaceQuery) SetResponse(response *QueryResponse)
- func (q *SpaceQuery) SetSpec(spec *QuerySpec)
- func (c *SpaceQuery) ValidateCreate() (errs field.ErrorList)
Constants ¶
const ( Group = "query.spaces.upbound.io" Version = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( SpacesQueryKind = reflect.TypeOf(SpaceQuery{}).Name() GroupQueryKind = reflect.TypeOf(GroupQuery{}).Name() QueryKind = reflect.TypeOf(Query{}).Name() )
Functions ¶
This section is empty.
Types ¶
type GroupQuery ¶
type GroupQuery struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec *QuerySpec `json:"spec,omitempty"`
Response *QueryResponse `json:"response,omitempty"`
}
GroupQuery represents a query against a group of controlplanes.
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*GroupQuery) DeepCopy ¶
func (in *GroupQuery) DeepCopy() *GroupQuery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupQuery.
func (*GroupQuery) DeepCopyInto ¶
func (in *GroupQuery) DeepCopyInto(out *GroupQuery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GroupQuery) DeepCopyObject ¶
func (in *GroupQuery) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*GroupQuery) Default ¶
func (q *GroupQuery) Default()
func (*GroupQuery) GetSpec ¶
func (q *GroupQuery) GetSpec() *QuerySpec
func (*GroupQuery) SetResponse ¶
func (q *GroupQuery) SetResponse(response *QueryResponse)
func (*GroupQuery) SetSpec ¶
func (q *GroupQuery) SetSpec(spec *QuerySpec)
func (*GroupQuery) ValidateCreate ¶
func (c *GroupQuery) ValidateCreate() (errs field.ErrorList)
type JSON ¶
type JSON struct {
Object interface{} `json:"-"`
}
JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.
+protobuf=true +protobuf.options.marshal=false +protobuf.as=ProtoJSON +protobuf.options.(gogoproto.goproto_stringer)=false +k8s:conversion-gen=false
func (*JSON) DeepCopyInto ¶
func (JSON) MarshalJSON ¶
func (JSON) OpenAPISchemaFormat ¶
OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
func (JSON) OpenAPISchemaType ¶
OpenAPISchemaType is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators
func (*JSON) UnmarshalJSON ¶
type JSONObject ¶
type JSONObject struct {
Object map[string]interface{} `json:"-"`
}
JSONObject represents any valid JSON value of an object. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.
+protobuf=true +protobuf.options.marshal=false +protobuf.as=ProtoJSON +protobuf.options.(gogoproto.goproto_stringer)=false +k8s:conversion-gen=false
func (*JSONObject) DeepCopy ¶
func (j *JSONObject) DeepCopy() *JSONObject
func (*JSONObject) DeepCopyInto ¶
func (j *JSONObject) DeepCopyInto(target *JSONObject)
func (*JSONObject) GetCondition ¶
func (cr *JSONObject) GetCondition(ct xpv1.ConditionType) xpv1.Condition
func (JSONObject) MarshalJSON ¶
func (j JSONObject) MarshalJSON() ([]byte, error)
func (JSONObject) OpenAPISchemaFormat ¶
func (_ JSONObject) OpenAPISchemaFormat() string
OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
func (JSONObject) OpenAPISchemaType ¶
func (_ JSONObject) OpenAPISchemaType() []string
OpenAPISchemaType is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators
func (*JSONObject) SetConditions ¶
func (cr *JSONObject) SetConditions(c ...xpv1.Condition)
func (*JSONObject) String ¶
func (j *JSONObject) String() string
func (*JSONObject) UnmarshalJSON ¶
func (j *JSONObject) UnmarshalJSON(data []byte) error
type Query ¶
type Query struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec *QuerySpec `json:"spec,omitempty"`
Response *QueryResponse `json:"response,omitempty"`
}
Query represents a query against one controlplane, the one with the same name and namespace as the query.
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Query) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Query.
func (*Query) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Query) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Query) SetResponse ¶
func (q *Query) SetResponse(response *QueryResponse)
func (*Query) ValidateCreate ¶
type QueryCondition ¶
type QueryCondition struct {
// type is the type of condition to query.
// Examples: Ready, Synced
//
// +kubebuilder:validation:Required
Type string `json:"type"`
// status is the status of condition to query. This is either True, False
// or Unknown.
//
// +kubebuilder:validation:Required
Status string `json:"status"`
}
A QueryCondition specifies how to query a condition.
func (*QueryCondition) DeepCopy ¶
func (in *QueryCondition) DeepCopy() *QueryCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryCondition.
func (*QueryCondition) DeepCopyInto ¶
func (in *QueryCondition) DeepCopyInto(out *QueryCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryFilter ¶
type QueryFilter struct {
// namespace is the namespace WITHIN a controlplane to query. If empty,
// all namespaces are queried in the given scope.
Namespace string `json:"namespace,omitempty"`
// name is the name of the object to query. If empty, all objects are queried
// in the given scope.
Name string `json:"name,omitempty"`
// group is the API group to query. If empty, all groups are queried in the
// given scope.
Group string `json:"group,omitempty"`
// kind is the API kind to query. If empty, all kinds are queried in the
// given scope. The kind is case-insensitive. The kind also matches plural
// resources.
Kind string `json:"kind,omitempty"`
// categories is a list of categories to query. If empty, all categories are
// queried in the given scope.
// Examples: all, managed, composite, claim
Categories []string `json:"categories,omitempty"`
// conditions is a list of conditions to query. If empty, all conditions are
// queried in the given scope.
Conditions []QueryCondition `json:"conditions,omitempty"`
// owners is a list of owners to query. An object matches if it has at least
// one owner in the list.
Owners []QueryOwner `json:"owners,omitempty"`
// sql is a SQL query to query. If empty, all objects are queried in the
// given scope.
//
// The current object can be referenced by the alias "o".
//
// WARNING: The where clause is highly dependent on the database
// schema and might change at any time. The schema is not documented.
SQL string `json:"sql,omitempty"`
}
A QueryFilter specifies what to filter.
func (*QueryFilter) DeepCopy ¶
func (in *QueryFilter) DeepCopy() *QueryFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryFilter.
func (*QueryFilter) DeepCopyInto ¶
func (in *QueryFilter) DeepCopyInto(out *QueryFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryFilterControlPlane ¶
type QueryFilterControlPlane struct {
// name is the name of the controlplane to query. If empty, all controlplanes
// are queried in the given scope.
Name string `json:"name,omitempty"`
// namespace is the namespace of the controlplane to query. If empty, all
// namespaces are queried in the given scope.
Namespace string `json:"namespace,omitempty"`
}
func (*QueryFilterControlPlane) DeepCopy ¶
func (in *QueryFilterControlPlane) DeepCopy() *QueryFilterControlPlane
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryFilterControlPlane.
func (*QueryFilterControlPlane) DeepCopyInto ¶
func (in *QueryFilterControlPlane) DeepCopyInto(out *QueryFilterControlPlane)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryNestedResources ¶
type QueryNestedResources struct {
QueryResources `json:",inline"`
// filter specifies how to filter the returned objects.
Filter QueryFilter `json:"filter,omitempty"`
}
func (*QueryNestedResources) DeepCopy ¶
func (in *QueryNestedResources) DeepCopy() *QueryNestedResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryNestedResources.
func (*QueryNestedResources) DeepCopyInto ¶
func (in *QueryNestedResources) DeepCopyInto(out *QueryNestedResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryObjects ¶
type QueryObjects struct {
// id specifies whether to return the id of the object. The id is opaque,
// i.e. the format is undefined. It's only valid for comparison within the
// response and as part of the spec.ids field in immediately following queries.
// The format of the id might change between releases.
ID bool `json:"id,omitempty"`
// mutablePath specifies whether to return the mutable path of the object,
// i.e. the path to the object in the controlplane Kubernetes API.
MutablePath bool `json:"mutablePath,omitempty"`
// controlPlane specifies that the controlplane name and namespace of the
// object should be returned.
ControlPlane bool `json:"controlPlane,omitempty"`
// object specifies how to return the object, i.e. a sparse skeleton of
// fields. A value of true means that all descendants of that field should
// be returned. Other primitive values are not allowed. If the type of
// a field does not match the schema (e.g. an array instead of an object),
// the field is ignored.
//
// +kubebuilder:validation:Schemaless
// +kubebuilder:pruning:PreserveUnknownFields
Object *JSON `json:"object,omitempty"`
// relations specifies which relations to query and what to return.
// Relation names are predefined strings relative to the release of
// Spaces.
//
// Examples: owners, descendants, resources, events, or their transitive
// equivalents owners+, descendants+, resources+.
Relations map[string]QueryRelation `json:"relations,omitempty"`
}
A QueryObjects specifies how to return objects.
func (*QueryObjects) DeepCopy ¶
func (in *QueryObjects) DeepCopy() *QueryObjects
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryObjects.
func (*QueryObjects) DeepCopyInto ¶
func (in *QueryObjects) DeepCopyInto(out *QueryObjects)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryOrder ¶
type QueryOrder struct {
// creationTimestamp specifies how to order by creation timestamp.
//
// +kubebuilder:validation:Enum=Asc;Desc
CreationTimestamp Direction `json:"creationTimestamp,omitempty"`
// name specifies how to order by name.
//
// +kubebuilder:validation:Enum=Asc;Desc
Name Direction `json:"name,omitempty"`
// namespace specifies how to order by namespace.
//
// +kubebuilder:validation:Enum=Asc;Desc
Namespace Direction `json:"namespace,omitempty"`
// kind specifies how to order by kind.
//
// +kubebuilder:validation:Enum=Asc;Desc
Kind Direction `json:"kind,omitempty"`
// group specifies how to order by group.
//
// +kubebuilder:validation:Enum=Asc;Desc
Group Direction `json:"group,omitempty"`
// controlPlane specifies how to order by controlplane.
ControlPlane Direction `json:"cluster"`
}
A QueryOrder specifies how to order. Exactly one of the fields must be set.
func (*QueryOrder) DeepCopy ¶
func (in *QueryOrder) DeepCopy() *QueryOrder
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryOrder.
func (*QueryOrder) DeepCopyInto ¶
func (in *QueryOrder) DeepCopyInto(out *QueryOrder)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QueryOrder) Default ¶
func (r *QueryOrder) Default()
type QueryOwner ¶
type QueryOwner struct {
// name is the name of the owner to match.
Group string `json:"group,omitempty"`
// kind is the kind of the owner to match.
Kind string `json:"kind,omitempty"`
// uid is the uid of the owner to match.
UID string `json:"uid,omitempty"`
}
A QueryOwner specifies how to query by owner.
func (*QueryOwner) DeepCopy ¶
func (in *QueryOwner) DeepCopy() *QueryOwner
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryOwner.
func (*QueryOwner) DeepCopyInto ¶
func (in *QueryOwner) DeepCopyInto(out *QueryOwner)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryPage ¶
type QueryPage struct {
// first is the number of the first object to return relative to the cursor.
// If neither first nor cursor is specified, objects are returned from the
// beginning.
First int `json:"first,omitempty"`
// cursor is the cursor of the first object to return. This value is opaque,
// the format cannot be relied on. It is returned by the server in the
// response to a previous query. If neither first nor cursor is specified,
// objects are returned from the beginning.
//
// Note that cursor values are not stable under different orderings.
Cursor string `json:"cursor,omitempty"`
}
A QueryPage specifies how to page.
func (*QueryPage) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryPage.
func (*QueryPage) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryRelation ¶
type QueryRelation struct {
QueryNestedResources `json:",inline"`
}
A QueryRelation specifies how to return objects in a relation.
func (*QueryRelation) DeepCopy ¶
func (in *QueryRelation) DeepCopy() *QueryRelation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryRelation.
func (*QueryRelation) DeepCopyInto ¶
func (in *QueryRelation) DeepCopyInto(out *QueryRelation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryResources ¶
type QueryResources struct {
// count specifies whether to return the number of objects. Note that
// computing the count is expensive and should only be done if necessary.
// Count is the remaining objects that match the query after paging.
Count bool `json:"count,omitempty"`
// objects specifies how to return the objects.
Objects *QueryObjects `json:"objects,omitempty"`
// order specifies how to order the returned objects. The first element
// specifies the primary order, the second element specifies the secondary,
// etc.
Order []QueryOrder `json:"order,omitempty"`
// limit is the maximal number of objects to return. Defaulted to 100.
//
// Note that a limit in a relation subsumes all the children of all parents,
// i.e. a small limit only makes sense if there is only a single parent,
// e.g. selected via spec.IDs.
Limit int `json:"limit,omitempty"`
// Page specifies how to page the returned objects.
Page QueryPage `json:"page,omitempty"`
// Cursor specifies the cursor of the first object to return. This value is
// opaque and is only valid when passed into spec.page.cursor in a subsequent
// query. The format of the cursor might change between releases.
Cursor bool `json:"cursor,omitempty"`
}
func (*QueryResources) DeepCopy ¶
func (in *QueryResources) DeepCopy() *QueryResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryResources.
func (*QueryResources) DeepCopyInto ¶
func (in *QueryResources) DeepCopyInto(out *QueryResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QueryResources) Default ¶
func (r *QueryResources) Default()
type QueryResponse ¶
type QueryResponse struct {
// warnings is a list of warnings that occurred while processing the query.
// The query is still executed, but these warnings indicate problems. It
// is recommended to print these to the user.
Warnings []string `json:"warnings,omitempty"`
QueryResponseObjects `json:",inline"`
}
A QueryResponse is returned by the query server as response to a Query.
func (*QueryResponse) DeepCopy ¶
func (in *QueryResponse) DeepCopy() *QueryResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryResponse.
func (*QueryResponse) DeepCopyInto ¶
func (in *QueryResponse) DeepCopyInto(out *QueryResponse)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryResponseControlPlane ¶
type QueryResponseControlPlane struct {
// name is the name of the controlplane of the object.
Name string `json:"name,omitempty"`
// namespace is the namespace of the controlplane of the object.
Namespace string `json:"namespace,omitempty"`
}
func (*QueryResponseControlPlane) DeepCopy ¶
func (in *QueryResponseControlPlane) DeepCopy() *QueryResponseControlPlane
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryResponseControlPlane.
func (*QueryResponseControlPlane) DeepCopyInto ¶
func (in *QueryResponseControlPlane) DeepCopyInto(out *QueryResponseControlPlane)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryResponseCursor ¶
type QueryResponseCursor struct {
// cursor is the cursor to the next page of results. If empty, there are no more,
Next string `json:"next"`
// page is the page number of the cursor.
Page int `json:"page"`
// pageSize is the number of objects per page, i.e. the limit of the query.
PageSize int `json:"pageSize"`
// position is the position of the first object in the list of matching objects
// at the time the first cursor was created. Due to creation and deletion of
// objects before the cursor this value might be outdated.
Position int `json:"position"`
}
func (*QueryResponseCursor) DeepCopy ¶
func (in *QueryResponseCursor) DeepCopy() *QueryResponseCursor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryResponseCursor.
func (*QueryResponseCursor) DeepCopyInto ¶
func (in *QueryResponseCursor) DeepCopyInto(out *QueryResponseCursor)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryResponseMutablePath ¶
type QueryResponseMutablePath struct {
// basePath is the base URL of the controlplane, i.e. the Kubernetes API
// endpoint.
BasePath string `json:"basePath,omitempty"`
metav1.GroupVersionResource `json:",inline"`
}
func (*QueryResponseMutablePath) DeepCopy ¶
func (in *QueryResponseMutablePath) DeepCopy() *QueryResponseMutablePath
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryResponseMutablePath.
func (*QueryResponseMutablePath) DeepCopyInto ¶
func (in *QueryResponseMutablePath) DeepCopyInto(out *QueryResponseMutablePath)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryResponseObject ¶
type QueryResponseObject struct {
// id indentifies the object. The id is opaque, i.e. the format is
// undefined. It's only valid for comparison within the response and as part
// of the spec.ids field in immediately following queries. The format of the
// id might change between releases.
ID string `json:"id,omitempty"`
// mutablePath is the mutable path of the object, i.e. the path to the
// object in the controlplane Kubernetes API.
MutablePath *QueryResponseMutablePath `json:"mutablePath,omitempty"`
// controlPlane is the name and namespace of the object.
ControlPlane *QueryResponseControlPlane `json:"controlPlane,omitempty"`
// object is the sparse representation of the object.
Object *JSONObject `json:"object,omitempty"`
// errors is the list of errors that occurred while processing the object.
Errors []string `json:"$errors,omitempty"`
// relations is the list of objects related to the object.
Relations map[string]QueryResponseRelation `json:"relations,omitempty"`
}
func (*QueryResponseObject) DeepCopy ¶
func (in *QueryResponseObject) DeepCopy() *QueryResponseObject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryResponseObject.
func (*QueryResponseObject) DeepCopyInto ¶
func (in *QueryResponseObject) DeepCopyInto(out *QueryResponseObject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryResponseObjects ¶
type QueryResponseObjects struct {
// cursor is cursor to the next page of results.
Cursor *QueryResponseCursor `json:"cursor,omitempty"`
// objects is the list of objects returned by the query.
Objects []QueryResponseObject `json:"objects,omitempty"`
// count is the total number of objects that match the query.
Count *int `json:"count,omitempty"`
// incomplete is true if the query was (potentially) limited before all
// matching objects. If a non-empty spec.page.cursor has been used, or
// objects have been skipped through non-zero spec.page.first, this value
// is always true.
Incomplete bool `json:"incomplete,omitempty"`
}
func (*QueryResponseObjects) DeepCopy ¶
func (in *QueryResponseObjects) DeepCopy() *QueryResponseObjects
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryResponseObjects.
func (*QueryResponseObjects) DeepCopyInto ¶
func (in *QueryResponseObjects) DeepCopyInto(out *QueryResponseObjects)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryResponseRelation ¶
type QueryResponseRelation struct {
QueryResponseObjects `json:",inline"`
}
func (*QueryResponseRelation) DeepCopy ¶
func (in *QueryResponseRelation) DeepCopy() *QueryResponseRelation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryResponseRelation.
func (*QueryResponseRelation) DeepCopyInto ¶
func (in *QueryResponseRelation) DeepCopyInto(out *QueryResponseRelation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QuerySpec ¶
type QuerySpec struct {
QueryTopLevelResources `json:",inline"`
}
A QuerySpec specifies what to query.
func (*QuerySpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuerySpec.
func (*QuerySpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryTopLevelFilter ¶
type QueryTopLevelFilter struct {
// controlPlane specifies which controlplanes to query. If empty, all
// controlplanes are queried in the given scope.
ControlPlane QueryFilterControlPlane `json:"controlPlane,omitempty"`
// # ids: ["id1","id2"] # to get objects explicitly by id.
IDs []string `json:"ids,omitempty"`
QueryFilter `json:",inline"`
}
A QueryTopLevelFilter specifies how to filter top level objects. In contrast to QueryFilter, it also specifies which controlplane to query.
func (*QueryTopLevelFilter) DeepCopy ¶
func (in *QueryTopLevelFilter) DeepCopy() *QueryTopLevelFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryTopLevelFilter.
func (*QueryTopLevelFilter) DeepCopyInto ¶
func (in *QueryTopLevelFilter) DeepCopyInto(out *QueryTopLevelFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryTopLevelResources ¶
type QueryTopLevelResources struct {
QueryResources `json:",inline"`
// filter specifies how to filter the returned objects.
Filter QueryTopLevelFilter `json:"filter,omitempty"`
}
A QueryTopLevelResources specifies how to return top level objects.
func (*QueryTopLevelResources) DeepCopy ¶
func (in *QueryTopLevelResources) DeepCopy() *QueryTopLevelResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryTopLevelResources.
func (*QueryTopLevelResources) DeepCopyInto ¶
func (in *QueryTopLevelResources) DeepCopyInto(out *QueryTopLevelResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SpaceQuery ¶
type SpaceQuery struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec *QuerySpec `json:"spec,omitempty"`
Response *QueryResponse `json:"response,omitempty"`
}
SpaceQuery represents a query against all controlplanes.
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SpaceQuery) DeepCopy ¶
func (in *SpaceQuery) DeepCopy() *SpaceQuery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceQuery.
func (*SpaceQuery) DeepCopyInto ¶
func (in *SpaceQuery) DeepCopyInto(out *SpaceQuery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SpaceQuery) DeepCopyObject ¶
func (in *SpaceQuery) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SpaceQuery) Default ¶
func (q *SpaceQuery) Default()
func (*SpaceQuery) GetSpec ¶
func (q *SpaceQuery) GetSpec() *QuerySpec
func (*SpaceQuery) SetResponse ¶
func (q *SpaceQuery) SetResponse(response *QueryResponse)
func (*SpaceQuery) SetSpec ¶
func (q *SpaceQuery) SetSpec(spec *QuerySpec)
func (*SpaceQuery) ValidateCreate ¶
func (c *SpaceQuery) ValidateCreate() (errs field.ErrorList)