Skip to content

Commit

Permalink
chore: delete the redundant patcher interface (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkYuan committed Feb 28, 2024
1 parent 4e35474 commit a5d9ee1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/modules/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,9 @@ type Generator interface {
Generate(intent *v1.Intent) error
}

// Patcher is the interface that wraps the Patch method.
type Patcher interface {
Patch(resources map[string][]*v1.Resource) error
}

// NewGeneratorFunc is a function that returns a Generator.
type NewGeneratorFunc func() (Generator, error)

// NewPatcherFunc is a function that returns a Patcher.
type NewPatcherFunc func() (Patcher, error)

// GeneratorRequest defines the request of generators.
type GeneratorRequest struct {
// Project represents the project name
Expand Down

0 comments on commit a5d9ee1

Please sign in to comment.