From 22bd92a390fc24bd2aed31fefe1e4c9af74a42e1 Mon Sep 17 00:00:00 2001 From: Alexander Zimmermann Date: Thu, 6 Feb 2020 11:48:57 +0100 Subject: [PATCH] Changed comments to match with interfaces method description --- pkg/registry/core/pod/rest/log.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/registry/core/pod/rest/log.go b/pkg/registry/core/pod/rest/log.go index a339206c77c..9eb14ec8bac 100644 --- a/pkg/registry/core/pod/rest/log.go +++ b/pkg/registry/core/pod/rest/log.go @@ -51,7 +51,8 @@ func (r *LogREST) New() runtime.Object { return &api.Pod{} } -// ProducesMIMETypes is LogREST's implementation of the StorageMetadata interface +// ProducesMIMETypes returns a list of the MIME types the specified HTTP verb (GET, POST, DELETE, +// PATCH) can respond with. func (r *LogREST) ProducesMIMETypes(verb string) []string { // Since the default list does not include "plain/text", we need to // explicitly override ProducesMIMETypes, so that it gets added to @@ -61,7 +62,8 @@ func (r *LogREST) ProducesMIMETypes(verb string) []string { } } -// ProducesObject is LogREST's implementation of the StorageMetadata interface +// ProducesObject returns an object the specified HTTP verb respond with. It will overwrite storage object if +// it is not nil. Only the type of the return object matters, the value will be ignored. func (r *LogREST) ProducesObject(verb string) interface{} { return "" }