5b3941a425
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
16 lines
422 B
Go
16 lines
422 B
Go
package ak
|
|
|
|
import (
|
|
"goauthentik.io/outpost/pkg/client/outposts"
|
|
"goauthentik.io/outpost/pkg/models"
|
|
)
|
|
|
|
func (a *APIController) Update() ([]*models.ProxyOutpostConfig, error) {
|
|
providers, err := a.Client.Outposts.OutpostsProxyList(outposts.NewOutpostsProxyListParams(), a.Auth)
|
|
if err != nil {
|
|
a.logger.WithError(err).Error("Failed to fetch providers")
|
|
return nil, err
|
|
}
|
|
return providers.Payload.Results, nil
|
|
}
|