api

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Voki *voki.Voki
}

func New

func New(client *http.Client, host, key string, port int, protocol string) (*API, error)

func NewFromViper added in v0.37.0

func NewFromViper(client *http.Client) (api *API, err error)

NewFromViper returns a pointer to a new API object, provided the configuration options are managed by https://git.agecem.com/agecem/agecem-org/config

func (*API) ListBuckets added in v0.31.4

func (a *API) ListBuckets() (response apiresponse.V1BucketsGET, err error)

func (*API) Seed added in v0.40.0

func (a *API) Seed() (response apiresponse.V1SeedPOST, err error)

func (*API) UploadDocument

func (a *API) UploadDocument(bucket string, file_header *multipart.FileHeader) (apiresponse.V1DocumentPOST, error)

func (*API) UploadDocuments added in v1.1.0

func (a *API) UploadDocuments(bucketName string, fileHeaders ...*multipart.FileHeader) (response apiresponse.V1DocumentsPOST, err error)

Jump to

Keyboard shortcuts

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