resources

package
v0.9.0-rc.18 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func IsBuildEnvirnonment

func IsBuildEnvirnonment() bool

func NewBucket

func NewBucket(name string, permissions ...BucketPermission) (storage.Bucket, error)

func NewCollection

func NewCollection(name string, permissions ...CollectionPermission) (documents.CollectionRef, error)

func NewQueue

func NewQueue(name string, permissions ...QueuePermission) (queues.Queue, error)

func NewSchedule

func NewSchedule(name, rate string, handlers ...faas.EventMiddleware) error

func NewSecret

func NewSecret(name string, permissions ...SecretPermission) (secrets.SecretRef, error)

func Run

func Run() error

Types

type Api

type Api interface {
	Get(string, ...faas.HttpMiddleware)
	Put(string, ...faas.HttpMiddleware)
	Patch(string, ...faas.HttpMiddleware)
	Post(string, ...faas.HttpMiddleware)
	Delete(string, ...faas.HttpMiddleware)
	Options(string, ...faas.HttpMiddleware)
}

func NewApi

func NewApi(name string) Api

type BucketPermission

type BucketPermission string
const (
	BucketReading  BucketPermission = "reading"
	BucketWriting  BucketPermission = "writing"
	BucketDeleting BucketPermission = "deleting"
)

type CollectionPermission

type CollectionPermission string
const (
	CollectionReading  CollectionPermission = "reading"
	CollectionWriting  CollectionPermission = "writing"
	CollectionDeleting CollectionPermission = "deleting"
)

type Manager

type Manager interface {
	Run() error
	NewApi(name string) Api
	NewBucket(name string, permissions ...BucketPermission) (storage.Bucket, error)
	NewCollection(name string, permissions ...CollectionPermission) (documents.CollectionRef, error)
	NewSecret(name string, permissions ...SecretPermission) (secrets.SecretRef, error)
	NewQueue(name string, permissions ...QueuePermission) (queues.Queue, error)
	NewSchedule(name, rate string, handlers ...faas.EventMiddleware) error
	NewTopic(name string, permissions ...TopicPermission) (Topic, error)
}

func New

func New() Manager

type QueuePermission

type QueuePermission string
const (
	QueueSending  QueuePermission = "sending"
	QueueReceving QueuePermission = "receiving"
)

type Route

type Route interface {
	Get(handler ...faas.HttpMiddleware)
	Patch(handler ...faas.HttpMiddleware)
	Put(handler ...faas.HttpMiddleware)
	Post(handler ...faas.HttpMiddleware)
	Delete(handler ...faas.HttpMiddleware)
	Options(handler ...faas.HttpMiddleware)
}

func NewRoute

func NewRoute(apiName, apiPath string) Route

type SecretPermission

type SecretPermission string
const (
	SecretReading SecretPermission = "reading"
	SecretWriting SecretPermission = "writing"
)

type Starter

type Starter interface {
	Start() error
}

type Topic

type Topic interface {
	events.Topic
	Subscribe(...faas.EventMiddleware)
}

func NewTopic

func NewTopic(name string, permissions ...TopicPermission) (Topic, error)

type TopicPermission

type TopicPermission string
const (
	TopicPublishing TopicPermission = "publishing"
)

Jump to

Keyboard shortcuts

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