This repository has been archived by the owner on May 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Class interface for cluster and ns classes
- Loading branch information
1 parent
3019df2
commit c26a8ae
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package v1beta1 | ||
|
||
// GetName returns the class's name. | ||
func (c *ClusterServiceClass) GetName() string { | ||
return c.Name | ||
} | ||
|
||
// GetName returns the class's name. | ||
func (c *ServiceClass) GetName() string { | ||
return c.Name | ||
} | ||
|
||
// GetExternalName returns the class's external name. | ||
func (c *ClusterServiceClass) GetExternalName() string { | ||
return c.Spec.ExternalName | ||
} | ||
|
||
// GetExternalName returns the class's external name. | ||
func (c *ServiceClass) GetExternalName() string { | ||
return c.Spec.ExternalName | ||
} | ||
|
||
// GetDescription returns the class description. | ||
func (c *ClusterServiceClass) GetDescription() string { | ||
return c.Spec.Description | ||
} | ||
|
||
// GetDescription returns the class description. | ||
func (c *ServiceClass) GetDescription() string { | ||
return c.Spec.Description | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters