Skip to content

Commit

Permalink
Remove Patch function
Browse files Browse the repository at this point in the history
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
  • Loading branch information
sergenyalcin committed Nov 1, 2022
1 parent af088a6 commit 9006a51
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions pkg/migration/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,6 @@ func (ft *FileSystemTarget) Put(o UnstructuredWithMetadata) error {
return nil
}

// Patch patches an existing file in filesystem
func (ft *FileSystemTarget) Patch(o UnstructuredWithMetadata) error {
// no-op
return nil
}

// Delete deletes a file from filesystem
func (ft *FileSystemTarget) Delete(o UnstructuredWithMetadata) error {
return ft.afero.Remove(o.Metadata.Path)
Expand Down
1 change: 0 additions & 1 deletion pkg/migration/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ type Source interface {

type Target interface {
Put(o UnstructuredWithMetadata) error
Patch(o UnstructuredWithMetadata) error
Delete(o UnstructuredWithMetadata) error
}

0 comments on commit 9006a51

Please sign in to comment.