mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-13 13:06:03 +00:00
Update godoc to match
Kubernetes-commit: 3e5f904c89619bd158b241a31255541967fc99b4
This commit is contained in:
parent
1b8a363f59
commit
16f41facbc
@ -157,22 +157,26 @@ func NewConfig() *Config {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewConfig is a convenience function that returns a new Config object with non-nil maps
|
// NewContext is a convenience function that returns a new Context
|
||||||
|
// object with non-nil maps
|
||||||
func NewContext() *Context {
|
func NewContext() *Context {
|
||||||
return &Context{Extensions: make(map[string]runtime.Object)}
|
return &Context{Extensions: make(map[string]runtime.Object)}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewConfig is a convenience function that returns a new Config object with non-nil maps
|
// NewCluster is a convenience function that returns a new Cluster
|
||||||
|
// object with non-nil maps
|
||||||
func NewCluster() *Cluster {
|
func NewCluster() *Cluster {
|
||||||
return &Cluster{Extensions: make(map[string]runtime.Object)}
|
return &Cluster{Extensions: make(map[string]runtime.Object)}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewConfig is a convenience function that returns a new Config object with non-nil maps
|
// NewAuthInfo is a convenience function that returns a new AuthInfo
|
||||||
|
// object with non-nil maps
|
||||||
func NewAuthInfo() *AuthInfo {
|
func NewAuthInfo() *AuthInfo {
|
||||||
return &AuthInfo{Extensions: make(map[string]runtime.Object)}
|
return &AuthInfo{Extensions: make(map[string]runtime.Object)}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewConfig is a convenience function that returns a new Config object with non-nil maps
|
// NewPreferences is a convenience function that returns a new
|
||||||
|
// Preferences object with non-nil maps
|
||||||
func NewPreferences() *Preferences {
|
func NewPreferences() *Preferences {
|
||||||
return &Preferences{Extensions: make(map[string]runtime.Object)}
|
return &Preferences{Extensions: make(map[string]runtime.Object)}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user