From f84196e7254fd37be61a98c0d9e853dbf6238d86 Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Wed, 30 Nov 2016 09:40:58 +0100 Subject: [PATCH] Introduce GetOptions type --- pkg/apis/meta/v1/types.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/apis/meta/v1/types.go b/pkg/apis/meta/v1/types.go index 31c7a8b93b0..996b9ad9589 100644 --- a/pkg/apis/meta/v1/types.go +++ b/pkg/apis/meta/v1/types.go @@ -75,6 +75,16 @@ type ExportOptions struct { Exact bool `json:"exact" protobuf:"varint,2,opt,name=exact"` } +// GetOptions is the standard query options to the standard REST get call. +type GetOptions struct { + TypeMeta `json:",inline"` + // When specified: + // - if unset, then the result is returned from remote storage based on quorum-read flag; + // - if it's 0, then we simply return what we currently have in cache, no guarantee; + // - if set to non zero, then the result is at least as fresh as given rv. + ResourceVersion string `json:"resourceVersion,omitempty"` +} + // Status is a return value for calls that don't return other objects. type Status struct { TypeMeta `json:",inline"`