stash/pkg/session/config.go
2026-02-04 14:56:15 +11:00

18 lines
375 B
Go

package session
import "context"
type ExternalAccessConfig interface {
HasCredentials(ctx context.Context) (bool, error)
GetDangerousAllowPublicWithoutAuth() bool
GetSecurityTripwireAccessedFromPublicInternet() string
IsNewSystem() bool
}
type SessionConfig interface {
GetUsername() string
GetAPIKey() string
GetSessionStoreKey() []byte
GetMaxSessionAge() int
}