Skip to content

Commit

Permalink
fix(docs): update API docs
Browse files Browse the repository at this point in the history
fix: dockerfile - typo in ordering

+semver: feature
  • Loading branch information
dnitsch committed Feb 13, 2023
1 parent 2c99d20 commit a2f0e73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY ./ ./

RUN go mod vendor

RUN go CGO_ENABLED=0 build -mod=readonly \
RUN CGO_ENABLED=0 go build -mod=readonly \
-ldflags="-s -w -X \"github.com/dnitsch/reststrategy/controller/cmd/controller.Version=${VERSION}\" -X \"github.com/dnitsch/reststrategy/controller/cmd/controller.Revision=${REVISION}\" -extldflags -static" \
-o dist/controller ./cmd

Expand Down
5 changes: 3 additions & 2 deletions seeder/seeder.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,15 @@ func FindDeletePostStrategyFunc(ctx context.Context, action *Action, rest *Seede
return rest.FindDeletePost(ctx, action)
}

// FindPostStrategyFunc strategy calls a GET endpoint and if item ***FOUND it does NOT do a POST***
// FindPostStrategyFunc strategy calls a GET endpoint and expects a list of items to match against a
// FilterPathExpre and if item ***FOUND*** it does _NOT_ do a ***POST***
// this strategy should be used sparingly and only in cases where the service REST implementation
// does not support an update of existing item.
func FindPostStrategyFunc(ctx context.Context, action *Action, rest *SeederImpl) error {
return rest.FindPost(ctx, action)
}

// FindPostStrategyFunc strategy calls a GET endpoint and if item ***FOUND it does NOT do a POST***
// GetPostStrategyFunc strategy calls a GET endpoint by an ID and if item ***FOUND*** it does _NOT_ do a ***POST***
// this strategy should be used sparingly and only in cases where the service REST implementation
// does not support an update of existing item.
func GetPostStrategyFunc(ctx context.Context, action *Action, rest *SeederImpl) error {
Expand Down

0 comments on commit a2f0e73

Please sign in to comment.