with public interfaces

This commit is contained in:
Kasper Juul Hermansen 2022-09-13 21:15:32 +02:00
parent 559fb41571
commit c7e773be93
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
5 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,5 @@
package main
func main() {
}

View File

@ -0,0 +1,4 @@
module write_a_readme
go 1.19

View 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

View File

@ -0,0 +1 @@
package main

6
pkg/actions/interface.go Normal file
View 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