mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Fix a compile error.
This commit is contained in:
parent
ef7cce5dad
commit
6e7b3fd969
@ -50,14 +50,13 @@ type Status struct {
|
|||||||
// TODO: consider migrating this to go-restful which is a more full-featured version of the same thing.
|
// TODO: consider migrating this to go-restful which is a more full-featured version of the same thing.
|
||||||
type ApiServer struct {
|
type ApiServer struct {
|
||||||
prefix string
|
prefix string
|
||||||
apiName string
|
|
||||||
storage map[string]RESTStorage
|
storage map[string]RESTStorage
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new ApiServer object.
|
// New creates a new ApiServer object.
|
||||||
// 'storage' contains a map of handlers.
|
// 'storage' contains a map of handlers.
|
||||||
// 'prefix' is the hosting path prefix.
|
// 'prefix' is the hosting path prefix.
|
||||||
func New(storage map[string]RESTStorage, prefix, apiName string) *ApiServer {
|
func New(storage map[string]RESTStorage, prefix string) *ApiServer {
|
||||||
return &ApiServer{
|
return &ApiServer{
|
||||||
storage: storage,
|
storage: storage,
|
||||||
prefix: prefix,
|
prefix: prefix,
|
||||||
|
Loading…
Reference in New Issue
Block a user