mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Changed comments to match with interfaces method description
This commit is contained in:
parent
026ba54961
commit
22bd92a390
@ -51,7 +51,8 @@ func (r *LogREST) New() runtime.Object {
|
|||||||
return &api.Pod{}
|
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 {
|
func (r *LogREST) ProducesMIMETypes(verb string) []string {
|
||||||
// Since the default list does not include "plain/text", we need to
|
// Since the default list does not include "plain/text", we need to
|
||||||
// explicitly override ProducesMIMETypes, so that it gets added 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{} {
|
func (r *LogREST) ProducesObject(verb string) interface{} {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user