Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Region string `mapstructure:"SKPR_COGNITO_TO_DASHBOARD_REGION"` ClientID string `mapstructure:"SKPR_COGNITO_TO_DASHBOARD_CLIENT_ID"` Host string `mapstructure:"SKPR_COGNITO_TO_DASHBOARD_HOST"` Scope []string `mapstructure:"SKPR_COGNITO_TO_DASHBOARD_SCOPE"` Callback string `mapstructure:"SKPR_COGNITO_TO_DASHBOARD_CALLBACK"` IdentityPool string `mapstructure:"SKPR_COGNITO_TO_DASHBOARD_IDENTITY_POOL"` IdentityProvider string `mapstructure:"SKPR_COGNITO_TO_DASHBOARD_IDENTITY_PROVIDER"` SessionDuration int `mapstructure:"SKPR_COGNITO_TO_DASHBOARD_SESSION_DURATION"` StorageRetention time.Duration `mapstructure:"SKPR_COGNITO_TO_DASHBOARD_STORAGE_RETENTION"` AllowedListPath string `mapstructure:"SKPR_COGNITO_TO_DASHBOARD_ALLOWED_LIST_PATH"` }
func LoadConfig ¶
LoadConfig reads configuration from file or environment variables.
type DashboardServer ¶
type DashboardServer struct {
// contains filtered or unexported fields
}
func NewDashboardServer ¶
func NewDashboardServer(ctx context.Context, config Config, cognito credentials.CognitoClient, storage StorageClient) *DashboardServer
func (*DashboardServer) Callback ¶
func (s *DashboardServer) Callback(c *gin.Context)
func (*DashboardServer) GoTo ¶
func (s *DashboardServer) GoTo(c *gin.Context)
func (*DashboardServer) Readyz ¶
func (s *DashboardServer) Readyz(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.