mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
fix names in comments
This commit is contained in:
parent
0d7b53a201
commit
5f210c6473
@ -32,7 +32,7 @@ type DiscoveryInterface interface {
|
|||||||
ServerResourcesInterface
|
ServerResourcesInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
// GroupsInterface has methods for obtaining supported groups on the API server
|
// ServerGroupsInterface has methods for obtaining supported groups on the API server
|
||||||
type ServerGroupsInterface interface {
|
type ServerGroupsInterface interface {
|
||||||
// ServerGroups returns the supported groups, with information like supported versions and the
|
// ServerGroups returns the supported groups, with information like supported versions and the
|
||||||
// preferred version.
|
// preferred version.
|
||||||
@ -79,7 +79,7 @@ func (d *DiscoveryClient) get(url string) (resp *http.Response, err error) {
|
|||||||
return d.httpClient.Do(req)
|
return d.httpClient.Do(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
// APIGroups returns the supported groups, with information like supported versions and the
|
// ServerGroups returns the supported groups, with information like supported versions and the
|
||||||
// preferred version.
|
// preferred version.
|
||||||
func (d *DiscoveryClient) ServerGroups() (apiGroupList *unversioned.APIGroupList, err error) {
|
func (d *DiscoveryClient) ServerGroups() (apiGroupList *unversioned.APIGroupList, err error) {
|
||||||
// Get the groupVersions exposed at /api
|
// Get the groupVersions exposed at /api
|
||||||
@ -114,7 +114,7 @@ func (d *DiscoveryClient) ServerGroups() (apiGroupList *unversioned.APIGroupList
|
|||||||
return apiGroupList, nil
|
return apiGroupList, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// APIResourcesForGroup returns the supported resources for a group and version.
|
// ServerResourcesForGroupVersion returns the supported resources for a group and version.
|
||||||
func (d *DiscoveryClient) ServerResourcesForGroupVersion(groupVersion string) (resources *unversioned.APIResourceList, err error) {
|
func (d *DiscoveryClient) ServerResourcesForGroupVersion(groupVersion string) (resources *unversioned.APIResourceList, err error) {
|
||||||
url := d.baseURL
|
url := d.baseURL
|
||||||
if groupVersion == "v1" {
|
if groupVersion == "v1" {
|
||||||
@ -134,7 +134,7 @@ func (d *DiscoveryClient) ServerResourcesForGroupVersion(groupVersion string) (r
|
|||||||
return resources, nil
|
return resources, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// APIResources returns the supported resources for all groups and versions.
|
// ServerResources returns the supported resources for all groups and versions.
|
||||||
func (d *DiscoveryClient) ServerResources() (map[string]*unversioned.APIResourceList, error) {
|
func (d *DiscoveryClient) ServerResources() (map[string]*unversioned.APIResourceList, error) {
|
||||||
apiGroups, err := d.ServerGroups()
|
apiGroups, err := d.ServerGroups()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user