cleaning up

mine
derailed 2020-01-04 16:24:55 -07:00
parent 7a6bdc1d74
commit 92214ed3ee
1 changed files with 5 additions and 5 deletions

View File

@ -16,16 +16,16 @@ type NonResource struct {
} }
// Init initializes the resource. // Init initializes the resource.
func (g *NonResource) Init(f Factory, gvr client.GVR) { func (n *NonResource) Init(f Factory, gvr client.GVR) {
g.Factory, g.gvr = f, gvr n.Factory, n.gvr = f, gvr
} }
// GVR returns a gvr. // GVR returns a gvr.
func (g *NonResource) GVR() string { func (n *NonResource) GVR() string {
return g.gvr.String() return n.gvr.String()
} }
// Get returns the given resource. // Get returns the given resource.
func (c *NonResource) Get(context.Context, string) (runtime.Object, error) { func (n *NonResource) Get(context.Context, string) (runtime.Object, error) {
return nil, fmt.Errorf("NYI!") return nil, fmt.Errorf("NYI!")
} }