providers

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2021 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateQueryParameter = "state"
	CodeQueryParameter  = "code"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataProvider

type DataProvider struct {
	app.Compo

	BackendURL string
	IDToken    string
	Children   func(dpcp DataProviderChildrenProps) app.UI
	// contains filtered or unexported fields
}

func (*DataProvider) OnMount

func (c *DataProvider) OnMount(ctx app.Context)

func (*DataProvider) Render

func (c *DataProvider) Render() app.UI

type DataProviderChildrenProps

type DataProviderChildrenProps struct {
	// Config file editor
	ConfigFile    string
	SetConfigFile func(string)

	FormatConfigFile  func()
	RefreshConfigFile func()
	SaveConfigFile    func()

	ConfigFileError       error
	IgnoreConfigFileError func()

	// File explorer
	CurrentPath    string
	SetCurrentPath func(string)

	Index        []os.FileInfo
	RefreshIndex func()
	WriteToPath  func(string, []byte)

	HTTPShareLink url.URL
	TFTPShareLink url.URL
	SharePath     func(string)

	CreatePath      func(string)
	CreateEmptyFile func(string)
	DeletePath      func(string)
	MovePath        func(string, string)
	CopyPath        func(string, string)

	EditPathContents    string
	SetEditPathContents func(string)
	EditPath            func(string)

	WebDAVAddress  url.URL
	WebDAVUsername string
	WebDAVPassword string

	OperationIndex []os.FileInfo

	OperationCurrentPath    string
	OperationSetCurrentPath func(string)

	FileExplorerError        error
	RecoverFileExplorerError func(app.Context)
	IgnoreFileExplorerError  func()

	Events []Event

	EventsError        error
	RecoverEventsError func(app.Context)
	IgnoreEventsError  func()

	// Metadata
	UseAdvertisedIP    bool
	SetUseAdvertisedIP func(bool)

	UseAdvertisedIPForWebDAV    bool
	SetUseAdvertisedIPForWebDAV func(bool)

	SetUseHTTPS func(bool)
	SetUseDavs  func(bool)
}

type Event

type Event struct {
	CreatedAt time.Time
	Message   string
}

type IdentityProvider

type IdentityProvider struct {
	app.Compo

	Issuer        string
	ClientID      string
	RedirectURL   string
	HomeURL       string
	Scopes        []string
	StoragePrefix string
	Children      func(IdentityProviderChildrenProps) app.UI
	// contains filtered or unexported fields
}

func (*IdentityProvider) OnMount

func (c *IdentityProvider) OnMount(ctx app.Context)

func (*IdentityProvider) OnNav

func (c *IdentityProvider) OnNav(ctx app.Context)

func (*IdentityProvider) Render

func (c *IdentityProvider) Render() app.UI

type IdentityProviderChildrenProps

type IdentityProviderChildrenProps struct {
	IDToken  string
	UserInfo oidc.UserInfo

	Logout func(ctx app.Context)

	Error   error
	Recover func(ctx app.Context)
}

type SetupProvider

type SetupProvider struct {
	app.Compo

	StoragePrefix       string
	StateQueryParameter string
	CodeQueryParameter  string
	Children            func(SetupProviderChildrenProps) app.UI
	// contains filtered or unexported fields
}

func (*SetupProvider) OnMount

func (c *SetupProvider) OnMount(ctx app.Context)

func (*SetupProvider) Render

func (c *SetupProvider) Render() app.UI

type SetupProviderChildrenProps

type SetupProviderChildrenProps struct {
	BackendURL      string
	OIDCIssuer      string
	OIDCClientID    string
	OIDCRedirectURL string
	Ready           bool

	SetBackendURL,
	SetOIDCIssuer,
	SetOIDCClientID,
	SetOIDCRedirectURL func(string, app.Context)
	ApplyConfig func(app.Context)

	Error error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL