mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-04-05 01:06:49 -04:00
Changed comments to match with interfaces method description
This commit is contained in:
parent
026ba54961
commit
22bd92a390
1 changed files with 4 additions and 2 deletions
|
|
@ -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 ""
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue