Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidFile error = errors.New("invalid file") ErrFailedToUploadFile error = errors.New("failed to upload file") ErrFileTooLarge error = errors.New("file too large") ErrFailedToRemoveFile error = errors.New("failed to remove file") )
View Source
var (
ErrDataSourceInvalidURL error = errors.New("invalid url")
)
View Source
var (
ErrFailedToFetchPluiginRepositoryData error = errors.New("failed to fetch repository data")
)
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface { FetchUser(string) (AuthenticatorUser, error) UpdateUser(AuthenticatorUpdateUserParam) (AuthenticatorUser, error) }
type AuthenticatorUser ¶
type Container ¶
type Container struct { Authenticator Authenticator Mailer Mailer PluginRepository PluginRepository DataSource DataSource PluginRegistry PluginRegistry File File Google Google }
type DataSource ¶
type File ¶
type File interface { ReadAsset(context.Context, string) (io.ReadCloser, error) UploadAsset(context.Context, *file.File) (*url.URL, error) RemoveAsset(context.Context, *url.URL) error ReadPluginFile(context.Context, id.PluginID, string) (io.ReadCloser, error) UploadPluginFile(context.Context, id.PluginID, *file.File) error RemovePlugin(context.Context, id.PluginID) error UploadBuiltScene(context.Context, io.Reader, string) error ReadBuiltSceneFile(context.Context, string) (io.ReadCloser, error) MoveBuiltScene(context.Context, string, string) error RemoveBuiltScene(context.Context, string) error }
type PluginRegistry ¶
Click to show internal directories.
Click to hide internal directories.