Skip to content

Commit

Permalink
Add all resource manipulations to the processor
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Oct 23, 2018
1 parent 918d6f5 commit 924a816
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type Storage interface {
CreateResources(resource string, data []map[string]interface{}) error

// Update resources.
UpdateResources(resource string, data []map[string]interface{}, filters []filter.ProcessedFilter) error
UpdateResources(resource string, data map[string]interface{}, filters []filter.ProcessedFilter) error

// Delete resources.
DeleteResources(resource string, filters []filter.ProcessedFilter) error
Expand Down
9 changes: 9 additions & 0 deletions resource/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,13 @@ type Processor interface {

// Retrieve resources.
GetResources(resource string, filters []filter.ProcessedFilter) ([]map[string]interface{}, error)

// Create resources.
CreateResources(resource string, data []map[string]interface{}) error

// Update resources.
UpdateResources(resource string, data map[string]interface{}, filters []filter.ProcessedFilter) error

// Delete resources.
DeleteResources(resource string, filters []filter.ProcessedFilter) error
}

0 comments on commit 924a816

Please sign in to comment.