From 0fe3644dec925dadb72236e9c2c27413425a1733 Mon Sep 17 00:00:00 2001 From: Danny Turcotte Date: Wed, 27 Jan 2021 16:17:34 -0500 Subject: [PATCH] vendors --- go.mod | 2 +- go.sum | 2 + .../gopkg.in/auth0.v5/management/actions.go | 39 +++++++++++++++++++ vendor/modules.txt | 4 +- 4 files changed, 44 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index b74c472b3..7c04a87e3 100644 --- a/go.mod +++ b/go.mod @@ -28,4 +28,4 @@ require ( // replace gopkg.in/auth0.v5 => ../auth0 -replace gopkg.in/auth0.v5 => github.com/go-auth0/auth0 v1.3.1-0.20210127175916-f1d24c8c0f88 +replace gopkg.in/auth0.v5 => github.com/go-auth0/auth0 v1.3.1-0.20210127211619-5163bd1359fc diff --git a/go.sum b/go.sum index f3c17822e..b90aa18d4 100644 --- a/go.sum +++ b/go.sum @@ -91,6 +91,8 @@ github.com/go-auth0/auth0 v1.3.1-0.20210127122814-819354e637e9 h1:/Lolghe1pufQWJ github.com/go-auth0/auth0 v1.3.1-0.20210127122814-819354e637e9/go.mod h1:QQ9fgGj2Wpza15+Ho3mM6amMeKfhzHo2cixcOqdkoKk= github.com/go-auth0/auth0 v1.3.1-0.20210127175916-f1d24c8c0f88 h1:pygD+OcQJTK7vDGzre8nrk+P1GDyLJvGw+NgN+vA08w= github.com/go-auth0/auth0 v1.3.1-0.20210127175916-f1d24c8c0f88/go.mod h1:QQ9fgGj2Wpza15+Ho3mM6amMeKfhzHo2cixcOqdkoKk= +github.com/go-auth0/auth0 v1.3.1-0.20210127211619-5163bd1359fc h1:C+hhVEHYv42COYHm1qaHqN9pcsVocQ0YlUSyXU3owbY= +github.com/go-auth0/auth0 v1.3.1-0.20210127211619-5163bd1359fc/go.mod h1:QQ9fgGj2Wpza15+Ho3mM6amMeKfhzHo2cixcOqdkoKk= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= diff --git a/vendor/gopkg.in/auth0.v5/management/actions.go b/vendor/gopkg.in/auth0.v5/management/actions.go index c5a5b1969..7c30b0658 100644 --- a/vendor/gopkg.in/auth0.v5/management/actions.go +++ b/vendor/gopkg.in/auth0.v5/management/actions.go @@ -18,6 +18,31 @@ type Action struct { // TODO: add required configuration / secrets } +type ActionExecutionResultResponse struct { + Error map[string]string `json:"error,omitempty"` + Logs *string `json:"logs,omitempty"` + Stats map[string]string `json:"stats,omitempty"` +} + +type ActionExecutionResult struct { + ActionName *string `json:"action_name,omitempty"` + BindingID *string `json:"binding_id,omitempty"` + VersionID *string `json:"version_id,omitempty"` + Error map[string]string `json:"error,omitempty"` + Response ActionExecutionResultResponse `json:"response,omitempty"` + + StartedAt *time.Time `json:"started_at,omitempty"` + EndedAt *time.Time `json:"ended_at,omitempty"` +} +type ActionExecution struct { + ID *string `json:"id"` + TriggerID TriggerID `json:"trigger_id"` + Status *string `json:"status"` + CreatedAt *time.Time `json:"created_at"` + UpdatedAt *time.Time `json:"updated_at"` + Results []*ActionExecutionResult `json:"results"` +} + type VersionStatus string const ( @@ -141,6 +166,20 @@ func (m *ActionManager) List(opts ...RequestOption) (c *ActionList, err error) { return } +type ActionExecutionManager struct { + *Management +} + +func newActionExecutionManager(m *Management) *ActionExecutionManager { + return &ActionExecutionManager{m} +} + +func (m *ActionExecutionManager) Read(id string) (*ActionExecution, error) { + var execution ActionExecution + err := m.Request("GET", m.URI("actions", "executions", id), &execution) + return &execution, err +} + type ActionVersionManager struct { *Management } diff --git a/vendor/modules.txt b/vendor/modules.txt index 5e30de075..b4b5dec56 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -178,7 +178,7 @@ google.golang.org/protobuf/reflect/protoreflect google.golang.org/protobuf/reflect/protoregistry google.golang.org/protobuf/runtime/protoiface google.golang.org/protobuf/runtime/protoimpl -# gopkg.in/auth0.v5 v5.8.0 => github.com/go-auth0/auth0 v1.3.1-0.20210127175916-f1d24c8c0f88 +# gopkg.in/auth0.v5 v5.8.0 => github.com/go-auth0/auth0 v1.3.1-0.20210127211619-5163bd1359fc ## explicit gopkg.in/auth0.v5 gopkg.in/auth0.v5/internal/client @@ -189,4 +189,4 @@ gopkg.in/auth0.v5/management # gopkg.in/yaml.v2 v2.2.8 ## explicit gopkg.in/yaml.v2 -# gopkg.in/auth0.v5 => github.com/go-auth0/auth0 v1.3.1-0.20210127175916-f1d24c8c0f88 +# gopkg.in/auth0.v5 => github.com/go-auth0/auth0 v1.3.1-0.20210127211619-5163bd1359fc