Documentation
¶
Index ¶
Constants ¶
View Source
const ( //ActionDelete delete action ActionDelete = "delete" //ActionMove move action ActionMove = "move" //Action notify ActionNotify = "notify" )
View Source
const DefaultRegion = "us-central1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Action string //empty Delete,Move
URL string `json:",omitempty"`
Message string `json:",omitempty"`
Title string `json:",omitempty"`
Body interface{} `json:",omitempty"`
Channels []string `json:",omitempty"`
Credentials *auth.Credentials `json:",omitempty"`
}
Action represents an action
type Context ¶
type Context struct {
context.Context
Error error
Name string
RelativePath string
SourceURL string
}
Context represents job context
type Notify ¶
type Notify func(ctx context.Context, request *NotifyRequest) error
Notify represents notify function
type NotifyRequest ¶
type NotifyRequest struct {
Channels []string
From string
Title string
Message string
Filename string
Body interface{}
*auth.Credentials
BodyType string
}
NotifyRequest represents a notify request
func (*NotifyRequest) Init ¶
func (r *NotifyRequest) Init(location, projectID string) error
Load initializes request
func (*NotifyRequest) Validate ¶
func (r *NotifyRequest) Validate() error
Validate checks if request is valid
Click to show internal directories.
Click to hide internal directories.