Documentation
¶
Overview ¶
Package server implements the Epoch HTTP server. Uses gorilla/mux because stdlib ServeMux rejects OCI Distribution route patterns.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FinalizedUpload ¶ added in v0.1.7
type FinalizedUpload struct {
// contains filtered or unexported fields
}
FinalizedUpload owns the tempfile of a finalized upload. Caller must Close it.
func (*FinalizedUpload) Close ¶ added in v0.1.7
func (f *FinalizedUpload) Close() error
Close removes the underlying tempfile and releases resources.
func (*FinalizedUpload) Reader ¶ added in v0.1.7
func (f *FinalizedUpload) Reader() (io.Reader, error)
Reader returns a reader positioned at the start of the upload data.
func (*FinalizedUpload) Size ¶ added in v0.1.7
func (f *FinalizedUpload) Size() int64
Size returns the total byte count of the upload.
type SSOConfig ¶
type SSOConfig struct {
Provider string
ClientID string
ClientSecret string //nolint:gosec // OAuth configuration schema field name
RedirectURI string
AuthorizeURL string
TokenURL string
UserInfoURL string
LogoutURL string
Scopes string
HostedDomains []string // allow-list of Google Workspace domains
CookieSecret []byte
}
SSOConfig holds OAuth/OIDC provider settings for UI authentication.
func LoadSSOConfig ¶
LoadSSOConfig reads SSO provider settings from environment variables.
Click to show internal directories.
Click to hide internal directories.