uc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(ctx context.Context, cmd BootstrapCommand) error

func Configure

func Configure()

func CreateBucket

func CreateBucket(ctx context.Context, name string) (*bucket.Bucket, error)

func CreateObject

func CreateObject(ctx context.Context, b *bucket.Bucket, cmd object.CreateCommand) (*object.Object, error)

func DeleteObject

func DeleteObject(ctx context.Context, b *bucket.Bucket, o *object.Object) error

func IsBootstrapped

func IsBootstrapped(ctx context.Context) (bool, error)

func Login

func Login(ctx context.Context, cmd LoginCommand) (*user.User, string, error)

Login logs in a user. Returns the user and a session token on success

func ReconcileBucket

func ReconcileBucket(ctx context.Context, b *bucket.Bucket) error

Types

type BootstrapCommand

type BootstrapCommand struct {
	Email                string
	Password             string
	PasswordConfirmation string
}

func (BootstrapCommand) Validate

func (c BootstrapCommand) Validate() error

type LoginCommand

type LoginCommand struct {
	IpAddress string
	Email     string
	Password  string
}

Jump to

Keyboard shortcuts

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