Documentation ¶
Index ¶
- Variables
- func IsBuildEnvirnonment() bool
- func NewBucket(name string, permissions ...BucketPermission) (storage.Bucket, error)
- func NewCollection(name string, permissions ...CollectionPermission) (documents.CollectionRef, error)
- func NewQueue(name string, permissions ...QueuePermission) (queues.Queue, error)
- func NewSchedule(name, rate string, handlers ...faas.EventMiddleware) error
- func Run() error
- type Api
- type BucketPermission
- type CollectionPermission
- type Manager
- type QueuePermission
- type Route
- type Starter
- type Topic
- type TopicPermission
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BucketEverything []BucketPermission = []BucketPermission{BucketReading, BucketWriting, BucketDeleting}
)
View Source
var (
CollectionEverything []CollectionPermission = []CollectionPermission{CollectionReading, CollectionWriting, CollectionDeleting}
)
View Source
var (
QueueEverything []QueuePermission = []QueuePermission{QueueSending, QueueReceving}
)
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 NewSchedule ¶
func NewSchedule(name, rate string, handlers ...faas.EventMiddleware) 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) }
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) NewQueue(name string, permissions ...QueuePermission) (queues.Queue, error) NewSchedule(name, rate string, handlers ...faas.EventMiddleware) error NewTopic(name string, permissions ...TopicPermission) (Topic, error) }
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) }
type TopicPermission ¶
type TopicPermission string
const (
TopicPublishing TopicPermission = "publishing"
)
Click to show internal directories.
Click to hide internal directories.