resources: Rename GetUIDs to UIDs

This is more in line with the style guide for golang.
This commit is contained in:
James Shubin
2017-01-25 14:49:28 -05:00
parent d8c4f78ec1
commit 9421f2cddd
14 changed files with 29 additions and 29 deletions

View File

@@ -37,7 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* [CheckApply - Check and apply resource state](#checkapply)
* [Watch - Detect resource changes](#watch)
* [Compare - Compare resource with another](#compare)
* [GetUIDs - Returns the list of resource UID's](#getuids)
* [UIDs - Returns the list of resource UID's](#uids)
* [AutoEdges - Returns the autoedge interface matcher](#autoedges)
* [CollectPattern - Currently a stub, API will change](#collectpattern)
* [(UnmarshalYAML) - Optional, sets the YAML defaults](#unmarshalyaml)
@@ -412,12 +412,12 @@ func (obj *FooRes) Compare(res Res) bool {
}
```
### GetUIDs
### UIDs
```golang
GetUIDs() []ResUID
UIDs() []ResUID
```
The `GetUIDs` method returns a list of `ResUID` interfaces that represent the
The `UIDs` method returns a list of `ResUID` interfaces that represent the
particular resource uniquely. This is used with the AutoEdges API to determine
if another resource can match a dependency to this one.