Documentation ¶
Overview ¶
Package query contains a set of APIs for accessing kubernetes objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get gets the specified object and unmarshals the retrieved data into the "into" object. "into" is a sdkTypes.Object that must have "Kind" and "APIVersion" specified in its "TypeMeta" field and "Name" and "Namespace" specified in its "ObjectMeta" field. "opts" configures the Get operation.
When passed With WithGetOptions(o), the specified metav1.GetOptions is set.
func List ¶
func List(namespace string, into sdkTypes.Object, opts ...ListOption) error
List retrieves the specified object list and unmarshals the retrieved data into the "into" object. "namespace" indicates which kubernetes namespace to look for the list of kubernetes objects. "into" is a sdkType.Object that must have "Kind" and "APIVersion" specified in its "TypeMeta" field "opts" configures the List operation.
When passed With WithListOptions(o), the specified metav1.ListOptions is set.
Types ¶
type GetOp ¶
type GetOp struct {
// contains filtered or unexported fields
}
GetOp wraps all the options for Get().
type GetOption ¶
type GetOption func(*GetOp)
GetOption configures GetOp.
func WithGetOptions ¶
func WithGetOptions(metaGetOptions *metav1.GetOptions) GetOption
WithGetOptions sets the metav1.GetOptions for the Get() operation.
type ListOp ¶
type ListOp struct {
// contains filtered or unexported fields
}
ListOp wraps all the options for List.
type ListOption ¶
type ListOption func(*ListOp)
ListOption configures ListOp.
func WithListOptions ¶
func WithListOptions(metaListOptions *metav1.ListOptions) ListOption
WithListOptions sets the metav1.ListOptions for the List() operation.