mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-30 07:08:51 +00:00
Rename asRuntime* -> asClient*
For the avoidance of misdirection. Signed-off-by: Michael Bridgen <michael@weave.works>
This commit is contained in:
parent
d03280a12f
commit
cafce536bb
10 changed files with 24 additions and 24 deletions
|
|
@ -35,14 +35,14 @@ type apiType struct {
|
|||
// use values of the wrapper with `client.Client`, which only deals
|
||||
// with types that have been added to the schema.
|
||||
type adapter interface {
|
||||
asRuntimeObject() client.Object
|
||||
asClientObject() client.Object
|
||||
}
|
||||
|
||||
// listAdapater is the analogue to adapter, but for lists; the
|
||||
// controller runtime distinguishes between methods dealing with
|
||||
// objects and lists.
|
||||
type listAdapter interface {
|
||||
asRuntimeList() client.ObjectList
|
||||
asClientList() client.ObjectList
|
||||
len() int
|
||||
}
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ type universalAdapter struct {
|
|||
obj client.Object
|
||||
}
|
||||
|
||||
func (c universalAdapter) asRuntimeObject() client.Object {
|
||||
func (c universalAdapter) asClientObject() client.Object {
|
||||
return c.obj
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue