library

package module
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: LGPL-3.0 Imports: 5 Imported by: 3

README

fg-nucleus-library

Fulgens Nucleus' library separated out to prevent versioning issues

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StorageService = uuid.MustParse("00000000-0000-0000-0000-000000000003")
	OAuthService   = uuid.MustParse("00000000-0000-0000-0000-000000000004")
)

Functions

func GetOAuthHostname added in v1.1.0

func GetOAuthHostname(information *library.ServiceInitializationInformation) (string, error)

func GetPublicKey added in v1.1.0

func GetPublicKey(information *library.ServiceInitializationInformation) (ed25519.PublicKey, error)

Types

type File added in v1.0.1

type File struct {
	Name   string            `validate:"required"`
	User   uuid.UUID         `validate:"required"`
	Reader *io.LimitedReader // Only used for write operations
}

type OAuthInformation

type OAuthInformation struct {
	Token       string   `json:"token"`
	Name        string   `json:"name"`
	RedirectUri string   `json:"redirectUri"`
	KeyShareUri string   `json:"keyShareUri"`
	Scopes      []string `json:"scopes"`
}

type OAuthResponse

type OAuthResponse struct {
	AppID     string `json:"appId"`
	SecretKey string `json:"secretKey"`
}

func InitializeOAuth added in v1.1.0

func InitializeOAuth(oauth OAuthInformation, information *library.ServiceInitializationInformation) (oauthResponse OAuthResponse, pk ed25519.PublicKey, hostname string, err error)

func OAuthSignup added in v1.1.0

type Quota added in v1.0.4

type Quota struct {
	User  uuid.UUID `validate:"required"`
	Bytes int64     `validate:"required"`
}

Jump to

Keyboard shortcuts

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