app

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App struct

func NewApp

func NewApp() *App

NewApp creates a new App application struct

func (*App) Connect

func (a *App) Connect(s config.S3Settings) error

func (*App) DownloadFile added in v0.1.1

func (a *App) DownloadFile(key string) error

func (*App) DownloadFolder added in v0.1.1

func (a *App) DownloadFolder(prefix string) error

func (*App) GetConfig

func (a *App) GetConfig() (config.Config, error)

func (*App) List

func (a *App) List(prefix string) (s3.List, error)

func (*App) Startup

func (a *App) Startup(ctx context.Context)

Startup is called when the app starts. The context is saved, so we can call the runtime methods

func (*App) UploadFile

func (a *App) UploadFile(prefix string) error

func (*App) UploadFolder

func (a *App) UploadFolder(prefix string) error

type S3Settings

type S3Settings struct {
	BaseUrl    string `json:"base_url"`
	Region     string `json:"region"`
	Bucket     string `json:"bucket"`
	AccessKey  string `json:"access_key"`
	SecretKey  string `json:"secret_key"`
	PathStyle  bool   `json:"path_style"`
	DisableSSL bool   `json:"disable_ssl"`
}

Jump to

Keyboard shortcuts

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