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 Plan interface for cluster and ns plans
- Loading branch information
1 parent
c26a8ae
commit c88790b
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 plan's name. | ||
func (p *ClusterServicePlan) GetName() string { | ||
return p.Name | ||
} | ||
|
||
// GetName returns the plan's name. | ||
func (p *ServicePlan) GetName() string { | ||
return p.Name | ||
} | ||
|
||
// GetExternalName returns the plan's external name. | ||
func (p *ClusterServicePlan) GetExternalName() string { | ||
return p.Spec.ExternalName | ||
} | ||
|
||
// GetExternalName returns the plan's external name. | ||
func (p *ServicePlan) GetExternalName() string { | ||
return p.Spec.ExternalName | ||
} | ||
|
||
// GetDescription returns the plan description. | ||
func (p *ClusterServicePlan) GetDescription() string { | ||
return p.Spec.Description | ||
} | ||
|
||
// GetDescription returns the plan description. | ||
func (p *ServicePlan) GetDescription() string { | ||
return p.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