mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-09 20:57:44 +00:00
updated gosdk package
This commit is contained in:
@@ -41,8 +41,8 @@ func NewConfigureCmd() *cobra.Command {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.Flags().StringVarP(&ClientID, "ClientID", "id", "", "The client id to use for PAT authentication")
|
cmd.Flags().StringVarP(&ClientID, "ClientID", "i", "", "The client id to use for PAT authentication")
|
||||||
cmd.Flags().StringVarP(&ClientSecret, "ClientSecret", "secret", "", "The client secret to use for PAT authentication")
|
cmd.Flags().StringVarP(&ClientSecret, "ClientSecret", "s", "", "The client secret to use for PAT authentication")
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Expected number of subcommands to `sp` root command
|
// Expected number of subcommands to `sail` root command
|
||||||
const (
|
const (
|
||||||
numRootSubcommands = 8
|
numRootSubcommands = 8
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ package spconfig
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
sailpointbetasdk "github.com/sailpoint-oss/golang-sdk/sdk-output/beta"
|
sailpointbetasdk "github.com/sailpoint-oss/golang-sdk/beta"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/log"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/log"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/spconfig"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/spconfig"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
sailpointbetasdk "github.com/sailpoint-oss/golang-sdk/sdk-output/beta"
|
sailpointbetasdk "github.com/sailpoint-oss/golang-sdk/beta"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/spconfig"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/spconfig"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
sailpointsdk "github.com/sailpoint-oss/golang-sdk/sdk-output/v3"
|
sailpointsdk "github.com/sailpoint-oss/golang-sdk/v3"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/log"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/log"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/sdk"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/sdk"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
sailpointsdk "github.com/sailpoint-oss/golang-sdk/sdk-output/v3"
|
sailpointsdk "github.com/sailpoint-oss/golang-sdk/v3"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"attributes":{"substring":"admin_"},"name":"XWwLDi","type":"indexOf"}
|
{"attributes":{"substring":"admin_"},"name":"yMJGoM","type":"indexOf"}
|
||||||
@@ -1 +1 @@
|
|||||||
{"attributes":{"substring":"WxrnOBHyejgSKnPpgnSchJpe"},"id":"a6697db7-d561-4967-a89a-9fe4ae161374","name":"XWwLDi","type":"indexOf"}
|
{"attributes":{"substring":"zTUAQzRDhgXebafXAiTqFGWY"},"id":"9d599cf5-2d04-4978-9a7d-47c4c118b80b","name":"yMJGoM","type":"indexOf"}
|
||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
sailpointsdk "github.com/sailpoint-oss/golang-sdk/sdk-output/v3"
|
sailpointsdk "github.com/sailpoint-oss/golang-sdk/v3"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/log"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/log"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/sdk"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/sdk"
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -15,7 +15,7 @@ require (
|
|||||||
github.com/mitchellh/mapstructure v1.5.0
|
github.com/mitchellh/mapstructure v1.5.0
|
||||||
github.com/olekukonko/tablewriter v0.0.5
|
github.com/olekukonko/tablewriter v0.0.5
|
||||||
github.com/pkg/sftp v1.13.5
|
github.com/pkg/sftp v1.13.5
|
||||||
github.com/sailpoint-oss/golang-sdk/sdk-output v0.0.0-20230224194642-0d426c36b905
|
github.com/sailpoint-oss/golang-sdk v1.0.1
|
||||||
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
|
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
|
||||||
github.com/spf13/cobra v1.6.1
|
github.com/spf13/cobra v1.6.1
|
||||||
github.com/spf13/pflag v1.0.5
|
github.com/spf13/pflag v1.0.5
|
||||||
|
|||||||
26
go.sum
26
go.sum
@@ -52,7 +52,6 @@ github.com/aymanbagabas/go-osc52 v1.2.1/go.mod h1:zT8H+Rk4VSabYN90pWyugflM3ZhpTZ
|
|||||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||||
github.com/charmbracelet/bubbles v0.15.0 h1:c5vZ3woHV5W2b8YZI1q7v4ZNQaPetfHuoHzx+56Z6TI=
|
github.com/charmbracelet/bubbles v0.15.0 h1:c5vZ3woHV5W2b8YZI1q7v4ZNQaPetfHuoHzx+56Z6TI=
|
||||||
github.com/charmbracelet/bubbles v0.15.0/go.mod h1:Y7gSFbBzlMpUDR/XM9MhZI374Q+1p1kluf1uLl8iK74=
|
github.com/charmbracelet/bubbles v0.15.0/go.mod h1:Y7gSFbBzlMpUDR/XM9MhZI374Q+1p1kluf1uLl8iK74=
|
||||||
github.com/charmbracelet/bubbletea v0.23.1 h1:CYdteX1wCiCzKNUlwm25ZHBIc1GXlYFyUIte8WPvhck=
|
|
||||||
github.com/charmbracelet/bubbletea v0.23.1/go.mod h1:JAfGK/3/pPKHTnAS8JIE2u9f61BjWTQY57RbT25aMXU=
|
github.com/charmbracelet/bubbletea v0.23.1/go.mod h1:JAfGK/3/pPKHTnAS8JIE2u9f61BjWTQY57RbT25aMXU=
|
||||||
github.com/charmbracelet/bubbletea v0.23.2 h1:vuUJ9HJ7b/COy4I30e8xDVQ+VRDUEFykIjryPfgsdps=
|
github.com/charmbracelet/bubbletea v0.23.2 h1:vuUJ9HJ7b/COy4I30e8xDVQ+VRDUEFykIjryPfgsdps=
|
||||||
github.com/charmbracelet/bubbletea v0.23.2/go.mod h1:FaP3WUivcTM0xOKNmhciz60M6I+weYLF76mr1JyI7sM=
|
github.com/charmbracelet/bubbletea v0.23.2/go.mod h1:FaP3WUivcTM0xOKNmhciz60M6I+weYLF76mr1JyI7sM=
|
||||||
@@ -81,8 +80,6 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m
|
|||||||
github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po=
|
github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po=
|
||||||
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
|
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
|
||||||
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||||
github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
|
|
||||||
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
|
|
||||||
github.com/fatih/color v1.14.1 h1:qfhVLaG5s+nCROl1zJsZRxFeYrHLqWroPOQ8BWiNb4w=
|
github.com/fatih/color v1.14.1 h1:qfhVLaG5s+nCROl1zJsZRxFeYrHLqWroPOQ8BWiNb4w=
|
||||||
github.com/fatih/color v1.14.1/go.mod h1:2oHN61fhTpgcxD3TSWCgKDiH1+x4OiDVVGH8WlgGZGg=
|
github.com/fatih/color v1.14.1/go.mod h1:2oHN61fhTpgcxD3TSWCgKDiH1+x4OiDVVGH8WlgGZGg=
|
||||||
github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE=
|
github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE=
|
||||||
@@ -93,8 +90,6 @@ github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2
|
|||||||
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||||
github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4=
|
github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4=
|
||||||
github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs=
|
github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs=
|
||||||
github.com/gocarina/gocsv v0.0.0-20230123225133-763e25b40669 h1:MvZzCA/mduVWoBSVKJeMdv+AqXQmZZ8i6p8889ejt/Y=
|
|
||||||
github.com/gocarina/gocsv v0.0.0-20230123225133-763e25b40669/go.mod h1:5YoVOkjYAQumqlV356Hj3xeYh4BdZuLE0/nRkf2NKkI=
|
|
||||||
github.com/gocarina/gocsv v0.0.0-20230223115542-dc4ee9de5fe2 h1:7YY24YwanM5Fvt1/6LCZzWcjH5pL9w2MlUj/8a3GVUk=
|
github.com/gocarina/gocsv v0.0.0-20230223115542-dc4ee9de5fe2 h1:7YY24YwanM5Fvt1/6LCZzWcjH5pL9w2MlUj/8a3GVUk=
|
||||||
github.com/gocarina/gocsv v0.0.0-20230223115542-dc4ee9de5fe2/go.mod h1:5YoVOkjYAQumqlV356Hj3xeYh4BdZuLE0/nRkf2NKkI=
|
github.com/gocarina/gocsv v0.0.0-20230223115542-dc4ee9de5fe2/go.mod h1:5YoVOkjYAQumqlV356Hj3xeYh4BdZuLE0/nRkf2NKkI=
|
||||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
||||||
@@ -193,10 +188,8 @@ github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69
|
|||||||
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
|
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
|
||||||
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
|
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
|
||||||
github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
|
github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
|
||||||
github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
|
|
||||||
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
|
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
|
||||||
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
|
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
|
||||||
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
|
||||||
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
|
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
|
||||||
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
|
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
|
||||||
github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng=
|
github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng=
|
||||||
@@ -220,13 +213,11 @@ github.com/muesli/reflow v0.2.1-0.20210115123740-9e1d0d53df68/go.mod h1:Xk+z4oIW
|
|||||||
github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s=
|
github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s=
|
||||||
github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8=
|
github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8=
|
||||||
github.com/muesli/termenv v0.11.1-0.20220204035834-5ac8409525e0/go.mod h1:Bd5NYQ7pd+SrtBSrSNoBBmXlcY8+Xj4BMJgh8qcZrvs=
|
github.com/muesli/termenv v0.11.1-0.20220204035834-5ac8409525e0/go.mod h1:Bd5NYQ7pd+SrtBSrSNoBBmXlcY8+Xj4BMJgh8qcZrvs=
|
||||||
github.com/muesli/termenv v0.13.0 h1:wK20DRpJdDX8b7Ek2QfhvqhRQFZ237RGRO0RQ/Iqdy0=
|
|
||||||
github.com/muesli/termenv v0.13.0/go.mod h1:sP1+uffeLaEYpyOTb8pLCUctGcGLnoFjSn4YJK5e2bc=
|
github.com/muesli/termenv v0.13.0/go.mod h1:sP1+uffeLaEYpyOTb8pLCUctGcGLnoFjSn4YJK5e2bc=
|
||||||
github.com/muesli/termenv v0.14.0 h1:8x9NFfOe8lmIWK4pgy3IfVEy47f+ppe3tUqdPZG2Uy0=
|
github.com/muesli/termenv v0.14.0 h1:8x9NFfOe8lmIWK4pgy3IfVEy47f+ppe3tUqdPZG2Uy0=
|
||||||
github.com/muesli/termenv v0.14.0/go.mod h1:kG/pF1E7fh949Xhe156crRUrHNyK221IuGO7Ez60Uc8=
|
github.com/muesli/termenv v0.14.0/go.mod h1:kG/pF1E7fh949Xhe156crRUrHNyK221IuGO7Ez60Uc8=
|
||||||
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
|
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
|
||||||
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
|
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
|
||||||
github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
|
|
||||||
github.com/pelletier/go-toml/v2 v2.0.6 h1:nrzqCb7j9cDFj2coyLNLaZuJTLjWjlaz6nvTvIwycIU=
|
github.com/pelletier/go-toml/v2 v2.0.6 h1:nrzqCb7j9cDFj2coyLNLaZuJTLjWjlaz6nvTvIwycIU=
|
||||||
github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek=
|
github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek=
|
||||||
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
|
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
|
||||||
@@ -239,8 +230,6 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
|
|||||||
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||||
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||||
github.com/rivo/uniseg v0.4.3 h1:utMvzDsuh3suAEnhH0RdHmoPbU648o6CvXxTx4SBMOw=
|
|
||||||
github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
|
||||||
github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis=
|
github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis=
|
||||||
github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||||
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||||
@@ -249,14 +238,10 @@ github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/f
|
|||||||
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||||
github.com/sahilm/fuzzy v0.1.0 h1:FzWGaw2Opqyu+794ZQ9SYifWv2EIXpwP4q8dY1kDAwI=
|
github.com/sahilm/fuzzy v0.1.0 h1:FzWGaw2Opqyu+794ZQ9SYifWv2EIXpwP4q8dY1kDAwI=
|
||||||
github.com/sahilm/fuzzy v0.1.0/go.mod h1:VFvziUEIMCrT6A6tw2RFIXPXXmzXbOsSHF0DOI8ZK9Y=
|
github.com/sahilm/fuzzy v0.1.0/go.mod h1:VFvziUEIMCrT6A6tw2RFIXPXXmzXbOsSHF0DOI8ZK9Y=
|
||||||
github.com/sailpoint-oss/golang-sdk/sdk-output v0.0.0-20230222184213-c79ce7b7dd1d h1:P2+wYNXgEZ8r8yW558HvEBkdS5wYKEq6PkRirL1ooT8=
|
github.com/sailpoint-oss/golang-sdk v1.0.1 h1:JFqoW5K7/RkwzqhEnh0bJfcDc5CDAwrf9TxXnYqK/Ho=
|
||||||
github.com/sailpoint-oss/golang-sdk/sdk-output v0.0.0-20230222184213-c79ce7b7dd1d/go.mod h1:IjzpmvcjkXE6o53V2IBdU8AL3Td5a55pK1kNU1hGa94=
|
github.com/sailpoint-oss/golang-sdk v1.0.1/go.mod h1:aMxZu5ieAI89duSsOy/R7+dXwk5EbF6CAEvXt8ivMYw=
|
||||||
github.com/sailpoint-oss/golang-sdk/sdk-output v0.0.0-20230224194642-0d426c36b905 h1:p3i7atLw4qBbQ9YKVtc9BWqZhrvwsrBskmOnyCEMHSY=
|
|
||||||
github.com/sailpoint-oss/golang-sdk/sdk-output v0.0.0-20230224194642-0d426c36b905/go.mod h1:IjzpmvcjkXE6o53V2IBdU8AL3Td5a55pK1kNU1hGa94=
|
|
||||||
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 h1:JIAuq3EEf9cgbU6AtGPK4CTG3Zf6CKMNqf0MHTggAUA=
|
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 h1:JIAuq3EEf9cgbU6AtGPK4CTG3Zf6CKMNqf0MHTggAUA=
|
||||||
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog=
|
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog=
|
||||||
github.com/spf13/afero v1.9.3 h1:41FoI0fD7OR7mGcKE/aOiLkGreyf8ifIOQmJANWogMk=
|
|
||||||
github.com/spf13/afero v1.9.3/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y=
|
|
||||||
github.com/spf13/afero v1.9.4 h1:Sd43wM1IWz/s1aVXdOBkjJvuP8UdyqioeE4AmM0QsBs=
|
github.com/spf13/afero v1.9.4 h1:Sd43wM1IWz/s1aVXdOBkjJvuP8UdyqioeE4AmM0QsBs=
|
||||||
github.com/spf13/afero v1.9.4/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y=
|
github.com/spf13/afero v1.9.4/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y=
|
||||||
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
|
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
|
||||||
@@ -282,8 +267,6 @@ github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKs
|
|||||||
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
|
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
|
||||||
github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8=
|
github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8=
|
||||||
github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0=
|
github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0=
|
||||||
github.com/vbauerster/mpb/v8 v8.1.4 h1:MOcLTIbbAA892wVjRiuFHa1nRlNvifQMDVh12Bq/xIs=
|
|
||||||
github.com/vbauerster/mpb/v8 v8.1.4/go.mod h1:2fRME8lCLU9gwJwghZb1bO9A3Plc8KPeQ/ayGj+Ek4I=
|
|
||||||
github.com/vbauerster/mpb/v8 v8.2.0 h1:zaH0DaIcUoOeItZ/Yy567ZhaPUC3GMhUyHollQDgZvs=
|
github.com/vbauerster/mpb/v8 v8.2.0 h1:zaH0DaIcUoOeItZ/Yy567ZhaPUC3GMhUyHollQDgZvs=
|
||||||
github.com/vbauerster/mpb/v8 v8.2.0/go.mod h1:HEVcHNizbUIg0l4Qwhw0BDvg50zo3CMiWkbz1WUEQ94=
|
github.com/vbauerster/mpb/v8 v8.2.0/go.mod h1:HEVcHNizbUIg0l4Qwhw0BDvg50zo3CMiWkbz1WUEQ94=
|
||||||
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
@@ -305,8 +288,6 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh
|
|||||||
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
|
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
|
||||||
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
||||||
golang.org/x/crypto v0.5.0 h1:U/0M97KRkSFvyD/3FSmdP5W5swImpNgle/EHFhOsQPE=
|
|
||||||
golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU=
|
|
||||||
golang.org/x/crypto v0.6.0 h1:qfktjS5LUO+fFKeJXZ+ikTRijMmljikvG68fpMMruSc=
|
golang.org/x/crypto v0.6.0 h1:qfktjS5LUO+fFKeJXZ+ikTRijMmljikvG68fpMMruSc=
|
||||||
golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58=
|
golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58=
|
||||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
@@ -319,8 +300,6 @@ golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u0
|
|||||||
golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||||
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
|
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
|
||||||
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
|
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
|
||||||
golang.org/x/exp v0.0.0-20230206171751-46f607a40771 h1:xP7rWLUr1e1n2xkK5YB4LI0hPEy3LJC6Wk+D4pGlOJg=
|
|
||||||
golang.org/x/exp v0.0.0-20230206171751-46f607a40771/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
|
|
||||||
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2 h1:Jvc7gsqn21cJHCmAWx0LiimpP18LZmUxkT5Mp7EZ1mI=
|
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2 h1:Jvc7gsqn21cJHCmAWx0LiimpP18LZmUxkT5Mp7EZ1mI=
|
||||||
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
|
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
|
||||||
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
|
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
|
||||||
@@ -419,7 +398,6 @@ golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7w
|
|||||||
golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
|
||||||
golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/fatih/color"
|
"github.com/fatih/color"
|
||||||
sailpoint "github.com/sailpoint-oss/golang-sdk/sdk-output"
|
sailpoint "github.com/sailpoint-oss/golang-sdk"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/log"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/log"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/types"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/types"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
@@ -36,12 +36,12 @@ type Environment struct {
|
|||||||
type CLIConfig struct {
|
type CLIConfig struct {
|
||||||
|
|
||||||
//Standard Variables
|
//Standard Variables
|
||||||
CustomExportTemplatesPath string `mapstructure:"customexporttemplatespath"`
|
ExportTemplatesPath string `mapstructure:"exporttemplatespath"`
|
||||||
CustomSearchTemplatesPath string `mapstructure:"customsearchtemplatespath"`
|
SearchTemplatesPath string `mapstructure:"searchtemplatespath"`
|
||||||
Debug bool `mapstructure:"debug"`
|
Debug bool `mapstructure:"debug"`
|
||||||
AuthType string `mapstructure:"authtype"`
|
AuthType string `mapstructure:"authtype"`
|
||||||
ActiveEnvironment string `mapstructure:"activeenvironment"`
|
ActiveEnvironment string `mapstructure:"activeenvironment"`
|
||||||
Environments map[string]Environment `mapstructure:"environments"`
|
Environments map[string]Environment `mapstructure:"environments"`
|
||||||
|
|
||||||
//Pipline Variables
|
//Pipline Variables
|
||||||
ClientID string `mapstructure:"clientid, omitempty"`
|
ClientID string `mapstructure:"clientid, omitempty"`
|
||||||
@@ -52,19 +52,19 @@ type CLIConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetCustomSearchTemplatePath() string {
|
func GetCustomSearchTemplatePath() string {
|
||||||
return viper.GetString("customsearchtemplatespath")
|
return viper.GetString("searchtemplatespath")
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetCustomExportTemplatePath() string {
|
func GetCustomExportTemplatePath() string {
|
||||||
return viper.GetString("customexporttemplatespath")
|
return viper.GetString("exporttemplatespath")
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetCustomSearchTemplatePath(customsearchtemplatespath string) {
|
func SetCustomSearchTemplatePath(customsearchtemplatespath string) {
|
||||||
viper.Set("customsearchtemplatespath", customsearchtemplatespath)
|
viper.Set("searchtemplatespath", customsearchtemplatespath)
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetCustomExportTemplatePath(customsearchtemplatespath string) {
|
func SetCustomExportTemplatePath(customsearchtemplatespath string) {
|
||||||
viper.Set("customexporttemplatespath", customsearchtemplatespath)
|
viper.Set("exporttemplatespath", customsearchtemplatespath)
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetEnvironments() map[string]interface{} {
|
func GetEnvironments() map[string]interface{} {
|
||||||
@@ -108,8 +108,8 @@ func InitConfig() error {
|
|||||||
viper.SetEnvPrefix("sail")
|
viper.SetEnvPrefix("sail")
|
||||||
|
|
||||||
viper.SetDefault("authtype", "pat")
|
viper.SetDefault("authtype", "pat")
|
||||||
viper.SetDefault("customexporttemplatespath", "")
|
viper.SetDefault("exporttemplatespath", "")
|
||||||
viper.SetDefault("customsearchtemplatespath", "")
|
viper.SetDefault("searchtemplatespath", "")
|
||||||
viper.SetDefault("debug", false)
|
viper.SetDefault("debug", false)
|
||||||
viper.SetDefault("activeenvironment", "default")
|
viper.SetDefault("activeenvironment", "default")
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
|
|
||||||
"github.com/mitchellh/mapstructure"
|
"github.com/mitchellh/mapstructure"
|
||||||
sailpoint "github.com/sailpoint-oss/golang-sdk/sdk-output"
|
sailpoint "github.com/sailpoint-oss/golang-sdk"
|
||||||
sailpointsdk "github.com/sailpoint-oss/golang-sdk/sdk-output/v3"
|
sailpointsdk "github.com/sailpoint-oss/golang-sdk/v3"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/log"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/log"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/output"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/output"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/fatih/color"
|
"github.com/fatih/color"
|
||||||
sailpointbetasdk "github.com/sailpoint-oss/golang-sdk/sdk-output/beta"
|
sailpointbetasdk "github.com/sailpoint-oss/golang-sdk/beta"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/log"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/log"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/output"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/output"
|
||||||
|
|||||||
@@ -27,6 +27,11 @@ func GetSearchTemplates() ([]SearchTemplate, error) {
|
|||||||
templateFiles = append(templateFiles, customTemplates)
|
templateFiles = append(templateFiles, customTemplates)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
envSearchTemplates := os.Getenv("SAIL_SEARCH_TEMPLATES_PATH")
|
||||||
|
if envSearchTemplates != "" {
|
||||||
|
templateFiles = append(templateFiles, envSearchTemplates)
|
||||||
|
}
|
||||||
|
|
||||||
for i := 0; i < len(templateFiles); i++ {
|
for i := 0; i < len(templateFiles); i++ {
|
||||||
templateFile := templateFiles[i]
|
templateFile := templateFiles[i]
|
||||||
|
|
||||||
@@ -87,6 +92,11 @@ func GetExportTemplates() ([]ExportTemplate, error) {
|
|||||||
templateFiles = append(templateFiles, customTemplates)
|
templateFiles = append(templateFiles, customTemplates)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
envExportTemplates := os.Getenv("SAIL_EXPORT_TEMPLATES_PATH")
|
||||||
|
if envExportTemplates != "" {
|
||||||
|
templateFiles = append(templateFiles, envExportTemplates)
|
||||||
|
}
|
||||||
|
|
||||||
if len(templateFiles) > 0 {
|
if len(templateFiles) > 0 {
|
||||||
for i := 0; i < len(templateFiles); i++ {
|
for i := 0; i < len(templateFiles); i++ {
|
||||||
templateFile := templateFiles[i]
|
templateFile := templateFiles[i]
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package templates
|
package templates
|
||||||
|
|
||||||
import (
|
import (
|
||||||
sailpointbetasdk "github.com/sailpoint-oss/golang-sdk/sdk-output/beta"
|
sailpointbetasdk "github.com/sailpoint-oss/golang-sdk/beta"
|
||||||
sailpointsdk "github.com/sailpoint-oss/golang-sdk/sdk-output/v3"
|
sailpointsdk "github.com/sailpoint-oss/golang-sdk/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Template interface {
|
type Template interface {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
sailpoint "github.com/sailpoint-oss/golang-sdk/sdk-output"
|
sailpoint "github.com/sailpoint-oss/golang-sdk"
|
||||||
sailpointsdk "github.com/sailpoint-oss/golang-sdk/sdk-output/v3"
|
sailpointsdk "github.com/sailpoint-oss/golang-sdk/v3"
|
||||||
transmodel "github.com/sailpoint-oss/sailpoint-cli/cmd/transform/model"
|
transmodel "github.com/sailpoint-oss/sailpoint-cli/cmd/transform/model"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
|
||||||
"github.com/sailpoint-oss/sailpoint-cli/internal/sdk"
|
"github.com/sailpoint-oss/sailpoint-cli/internal/sdk"
|
||||||
|
|||||||
1
vendor/github.com/sailpoint-oss/golang-sdk/.gitignore
generated
vendored
Normal file
1
vendor/github.com/sailpoint-oss/golang-sdk/.gitignore
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
api-specs
|
||||||
92
vendor/github.com/sailpoint-oss/golang-sdk/README.md
generated
vendored
Normal file
92
vendor/github.com/sailpoint-oss/golang-sdk/README.md
generated
vendored
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
# golang-sdk
|
||||||
|
|
||||||
|
### Create your project
|
||||||
|
|
||||||
|
```bash
|
||||||
|
go mod init github.com/github-repo-name/projectname
|
||||||
|
```
|
||||||
|
|
||||||
|
### Create sdk.go file and copy the below code into the file
|
||||||
|
|
||||||
|
```go
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
|
||||||
|
sailpoint "github.com/sailpoint-oss/golang-sdk/sdk-output"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
|
||||||
|
ctx := context.TODO()
|
||||||
|
configuration := sailpoint.NewDefaultConfiguration()
|
||||||
|
apiClient := sailpoint.NewAPIClient(configuration)
|
||||||
|
|
||||||
|
resp, r, err := apiClient.V3.AccountsApi.ListAccounts(ctx).Execute()
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "Error when calling `AccountsApi.ListAccount``: %v\n", err)
|
||||||
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||||
|
}
|
||||||
|
// response from `ListAccounts`: []Account
|
||||||
|
fmt.Fprintf(os.Stdout, "First response from `AccountsApi.ListAccount`: %v\n", resp[0].Name)
|
||||||
|
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Create a configuration file or save your configuration as environment variables
|
||||||
|
|
||||||
|
You can create a local configuration file using the [CLI tool](https://github.com/sailpoint-oss/sailpoint-cli#configuration) or you can store your configuration in environment variables
|
||||||
|
- SAIL_BASE_URL
|
||||||
|
- SAIL_CLIENT_ID
|
||||||
|
- SAIL_CLIENT_SECRET
|
||||||
|
|
||||||
|
### Install sdk
|
||||||
|
|
||||||
|
```bash
|
||||||
|
go mod tidy
|
||||||
|
```
|
||||||
|
|
||||||
|
### Run the example
|
||||||
|
|
||||||
|
```bash
|
||||||
|
go run sdk.go
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Handling Pagination
|
||||||
|
|
||||||
|
there is a built in pagination function that can be used to automatically call and collect responses from APIs that support pagination. Use the following syntax to call it:
|
||||||
|
|
||||||
|
```go
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
|
||||||
|
sailpoint "github.com/sailpoint-oss/golang-sdk/sdk-output"
|
||||||
|
// need to import the v3 library so we are aware of the sailpointsdk.Account struct
|
||||||
|
sailpointsdk "github.com/sailpoint-oss/golang-sdk/sdk-output/v3"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
|
||||||
|
ctx := context.TODO()
|
||||||
|
configuration := sailpoint.NewDefaultConfiguration()
|
||||||
|
apiClient := sailpoint.NewAPIClient(configuration)
|
||||||
|
|
||||||
|
// use the paginate function to get 1000 results instead of hitting the normal 250 limit
|
||||||
|
resp, r, err := sailpoint.PaginateWithDefaults[sailpointsdk.Account](apiClient.V3.AccountsApi.ListAccounts(ctx))
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "Error when calling `AccountsApi.ListAccount``: %v\n", err)
|
||||||
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||||
|
}
|
||||||
|
// response from `ListAccounts`: []Account
|
||||||
|
fmt.Fprintf(os.Stdout, "First response from `AccountsApi.ListAccount`: %v\n", resp[0].Name)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
### See more uses of the SDK [here](./examples/sdk.go).
|
||||||
@@ -6,7 +6,7 @@ Use these APIs to interact with the IdentityNow platform to achieve repeatable,
|
|||||||
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
|
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
|
||||||
|
|
||||||
- API version: 3.1.0-beta
|
- API version: 3.1.0-beta
|
||||||
- Package version: 0.1.0
|
- Package version: 1.0.0
|
||||||
- Build package: org.openapitools.codegen.languages.GoClientCodegen
|
- Build package: org.openapitools.codegen.languages.GoClientCodegen
|
||||||
For more information, please visit [https://developer.sailpoint.com/discuss/api-help](https://developer.sailpoint.com/discuss/api-help)
|
For more information, please visit [https://developer.sailpoint.com/discuss/api-help](https://developer.sailpoint.com/discuss/api-help)
|
||||||
|
|
||||||
@@ -349,6 +349,7 @@ type ApiListPersonalAccessTokensRequest struct {
|
|||||||
ctx context.Context
|
ctx context.Context
|
||||||
ApiService *PersonalAccessTokensApiService
|
ApiService *PersonalAccessTokensApiService
|
||||||
ownerId *string
|
ownerId *string
|
||||||
|
filters *string
|
||||||
}
|
}
|
||||||
|
|
||||||
// The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read'
|
// The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read'
|
||||||
@@ -357,6 +358,12 @@ func (r ApiListPersonalAccessTokensRequest) OwnerId(ownerId string) ApiListPerso
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull*
|
||||||
|
func (r ApiListPersonalAccessTokensRequest) Filters(filters string) ApiListPersonalAccessTokensRequest {
|
||||||
|
r.filters = &filters
|
||||||
|
return r
|
||||||
|
}
|
||||||
|
|
||||||
func (r ApiListPersonalAccessTokensRequest) Execute() ([]GetPersonalAccessTokenResponse, *http.Response, error) {
|
func (r ApiListPersonalAccessTokensRequest) Execute() ([]GetPersonalAccessTokenResponse, *http.Response, error) {
|
||||||
return r.ApiService.ListPersonalAccessTokensExecute(r)
|
return r.ApiService.ListPersonalAccessTokensExecute(r)
|
||||||
}
|
}
|
||||||
@@ -400,6 +407,9 @@ func (a *PersonalAccessTokensApiService) ListPersonalAccessTokensExecute(r ApiLi
|
|||||||
if r.ownerId != nil {
|
if r.ownerId != nil {
|
||||||
localVarQueryParams.Add("owner-id", parameterToString(*r.ownerId, ""))
|
localVarQueryParams.Add("owner-id", parameterToString(*r.ownerId, ""))
|
||||||
}
|
}
|
||||||
|
if r.filters != nil {
|
||||||
|
localVarQueryParams.Add("filters", parameterToString(*r.filters, ""))
|
||||||
|
}
|
||||||
// to determine the Content-Type header
|
// to determine the Content-Type header
|
||||||
localVarHTTPContentTypes := []string{}
|
localVarHTTPContentTypes := []string{}
|
||||||
|
|
||||||
@@ -476,7 +476,7 @@ func (c *APIClient) prepareRequest(
|
|||||||
|
|
||||||
// Add the user agent to the request.
|
// Add the user agent to the request.
|
||||||
localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent)
|
localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent)
|
||||||
localVarRequest.Header.Add("X-SailPoint-SDK", "0.1.0")
|
localVarRequest.Header.Add("X-SailPoint-SDK", "1.0.0")
|
||||||
|
|
||||||
if ctx != nil {
|
if ctx != nil {
|
||||||
// add context to the request
|
// add context to the request
|
||||||
@@ -114,7 +114,7 @@ func NewConfiguration(clientId string, clientSecret string, baseURL string, toke
|
|||||||
TokenURL: tokenURL,
|
TokenURL: tokenURL,
|
||||||
Token: token,
|
Token: token,
|
||||||
DefaultHeader: make(map[string]string),
|
DefaultHeader: make(map[string]string),
|
||||||
UserAgent: "OpenAPI-Generator/0.1.0/go",
|
UserAgent: "OpenAPI-Generator/1.0.0/go",
|
||||||
Debug: false,
|
Debug: false,
|
||||||
Servers: ServerConfigurations{
|
Servers: ServerConfigurations{
|
||||||
{
|
{
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user