with public interfaces
This commit is contained in:
parent
559fb41571
commit
c7e773be93
5
_examples/actions/write_a_readme/actions/action.go
Normal file
5
_examples/actions/write_a_readme/actions/action.go
Normal file
@ -0,0 +1,5 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
|
||||
}
|
4
_examples/actions/write_a_readme/go.mod
Normal file
4
_examples/actions/write_a_readme/go.mod
Normal file
@ -0,0 +1,4 @@
|
||||
module write_a_readme
|
||||
|
||||
go 1.19
|
||||
|
8
_examples/actions/write_a_readme/kraken.yml
Normal file
8
_examples/actions/write_a_readme/kraken.yml
Normal file
@ -0,0 +1,8 @@
|
||||
apiVersion: kraken.front.kjuulh.io/schema/v1
|
||||
name: write-a-readme
|
||||
repositories:
|
||||
- git@git.front.kjuulh.io:kjuulh/kraken-test.git
|
||||
predicates:
|
||||
- predicate.go
|
||||
actions:
|
||||
- action.go
|
1
_examples/actions/write_a_readme/predicates/predicate.go
Normal file
1
_examples/actions/write_a_readme/predicates/predicate.go
Normal file
@ -0,0 +1 @@
|
||||
package main
|
6
pkg/actions/interface.go
Normal file
6
pkg/actions/interface.go
Normal file
@ -0,0 +1,6 @@
|
||||
package actions
|
||||
|
||||
import "context"
|
||||
|
||||
type Predicate func(ctx context.Context, path string) (bool, error)
|
||||
type Action func(ctx context.Context, path string) error
|
Loading…
Reference in New Issue
Block a user