Skip to content

Commit

Permalink
chore(deps): updates
Browse files Browse the repository at this point in the history
  • Loading branch information
morlay committed Oct 15, 2024
1 parent af0207c commit 4ed36f4
Show file tree
Hide file tree
Showing 12 changed files with 112 additions and 102 deletions.
2 changes: 1 addition & 1 deletion cmd/example/apis/org/org__get.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net/http"
"time"

"errors"
"github.com/octohelm/courier/pkg/statuserror"
"github.com/pkg/errors"

"github.com/octohelm/courier/pkg/courierhttp"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/example/apis/org/zz_generated.enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ package org
import (
bytes "bytes"
driver "database/sql/driver"
errors "errors"
fmt "fmt"

enumeration "github.com/octohelm/storage/pkg/enumeration"
pkgerrors "github.com/pkg/errors"
)

var InvalidType = pkgerrors.New("invalid Type")
var InvalidType = errors.New("invalid Type")

func (Type) EnumValues() []any {
return []any{
Expand Down
13 changes: 13 additions & 0 deletions cmd/example/apis/org/zz_generated.operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package org

import (
courier "github.com/octohelm/courier/pkg/courier"
statuserror "github.com/octohelm/courier/pkg/statuserror"
)

func init() {
Expand All @@ -19,6 +20,7 @@ func (*CreateOrg) ResponseContent() any {
func (*CreateOrg) ResponseData() *courier.NoContent {
return new(courier.NoContent)
}

func init() {
R.Register(courier.NewRouter(&DeleteOrg{}))
}
Expand All @@ -30,6 +32,7 @@ func (*DeleteOrg) ResponseContent() any {
func (*DeleteOrg) ResponseData() *courier.NoContent {
return new(courier.NoContent)
}

func init() {
R.Register(courier.NewRouter(&GetOrg{}))
}
Expand All @@ -41,6 +44,16 @@ func (*GetOrg) ResponseContent() any {
func (*GetOrg) ResponseData() *Detail {
return new(Detail)
}
func (*GetOrg) ResponseErrors() []error {
return []error{
&(statuserror.ErrorResponse{
Code: 500,
Key: "statuserror.statusError",
Msg: "{key}{ code={statusCode}, msg={err} }",
}),
}
}

func init() {
R.Register(courier.NewRouter(&ListOrg{}))
}
Expand Down
51 changes: 25 additions & 26 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,33 @@ go 1.23.2

require (
cuelang.org/go v0.10.0
github.com/andybalholm/brotli v1.1.0
github.com/andybalholm/brotli v1.1.1
github.com/fatih/color v1.17.0
github.com/felixge/httpsnoop v1.0.4
github.com/go-courier/logr v0.3.0
github.com/go-json-experiment/json v0.0.0-20240815175050-ebd3a8989ca1
github.com/innoai-tech/openapi-playground v0.0.0-20240909062817-20f99d67805e
github.com/octohelm/courier v0.0.0-20241008041414-e633deec2772
github.com/octohelm/gengo v0.0.0-20241008032243-cafe22171bd5
github.com/octohelm/storage v0.0.0-20241001040821-7d2a5c055f67
github.com/octohelm/x v0.0.0-20240904081416-42a1ee2d28a9
github.com/pkg/errors v0.9.1
github.com/innoai-tech/openapi-playground v0.0.0-20240920071141-a9f087bad00f
github.com/octohelm/courier v0.0.0-20241015075216-73c8ee334551
github.com/octohelm/gengo v0.0.0-20241014043309-2344b8632080
github.com/octohelm/storage v0.0.0-20241014040055-4f454a8d6947
github.com/octohelm/x v0.0.0-20241011014327-0fcf864c84d6
github.com/prometheus/client_golang v1.20.4
github.com/prometheus/prometheus v0.54.1
github.com/robfig/cron/v3 v3.0.1
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
go.opentelemetry.io/contrib/propagators/b3 v1.30.0
go.opentelemetry.io/otel v1.30.0
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.30.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.30.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.30.0
go.opentelemetry.io/otel/exporters/prometheus v0.52.0
go.opentelemetry.io/otel/log v0.6.0
go.opentelemetry.io/otel/metric v1.30.0
go.opentelemetry.io/otel/sdk v1.30.0
go.opentelemetry.io/otel/sdk/log v0.6.0
go.opentelemetry.io/otel/sdk/metric v1.30.0
go.opentelemetry.io/otel/trace v1.30.0
go.opentelemetry.io/contrib/propagators/b3 v1.31.0
go.opentelemetry.io/otel v1.31.0
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.31.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.31.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.31.0
go.opentelemetry.io/otel/exporters/prometheus v0.53.0
go.opentelemetry.io/otel/log v0.7.0
go.opentelemetry.io/otel/metric v1.31.0
go.opentelemetry.io/otel/sdk v1.31.0
go.opentelemetry.io/otel/sdk/log v0.7.0
go.opentelemetry.io/otel/sdk/metric v1.31.0
go.opentelemetry.io/otel/trace v1.31.0
golang.org/x/net v0.30.0
golang.org/x/sync v0.8.0
)
Expand All @@ -42,7 +41,7 @@ require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cockroachdb/apd/v3 v3.2.1 // indirect
github.com/dennwc/varint v1.0.0 // indirect
github.com/edsrzf/mmap-go v1.1.0 // indirect
github.com/edsrzf/mmap-go v1.2.0 // indirect
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb // indirect
github.com/go-kit/log v0.2.1 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
Expand All @@ -54,24 +53,24 @@ require (
github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/juju/ansiterm v1.0.0 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/klauspost/compress v1.17.11 // indirect
github.com/lunixbochs/vtclean v1.0.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/onsi/gomega v1.34.2 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.59.1 // indirect
github.com/prometheus/common v0.60.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
go.uber.org/atomic v1.11.0 // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/text v0.19.0 // indirect
golang.org/x/tools v0.26.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/grpc v1.66.1 // indirect
google.golang.org/protobuf v1.34.2 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20241007155032-5fefd90f89a9 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9 // indirect
google.golang.org/grpc v1.67.1 // indirect
google.golang.org/protobuf v1.35.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 4ed36f4

Please sign in to comment.