Documentation ¶
Index ¶
Constants ¶
View Source
const (
//ServiceID Google Cloud Function Service Id
ServiceID = "gcp/cloudfunctions"
)
Variables ¶
This section is empty.
Functions ¶
func InitRequest ¶
Types ¶
type CallRequest ¶
CallRequest represents a call request
func (*CallRequest) Validate ¶
func (r *CallRequest) Validate() error
Validate checks if request was valid
type CtxClient ¶
type CtxClient struct { *gcp.AbstractClient // contains filtered or unexported fields }
CtxClient represents context client
func (*CtxClient) SetService ¶
type DeleteRequest ¶
DeleteRequest represents delete function requests
func (*DeleteRequest) Validate ¶
func (r *DeleteRequest) Validate() error
Validate checks if request was valid
type DeleteResponse ¶
type DeleteResponse struct { Operation string Meta interface{} }
DeleteResponse represents delete response
type DeployRequest ¶
type DeployRequest struct { cloudfunctions.CloudFunction `yaml:",inline" json:",inline"` Source *location.Resource Public bool `description:"set this flag to make function public"` Members []string `description:"members with roles/cloudfunctions.invoker role"` Region string Retry bool }
DeployRequest represents deploy request
func (*DeployRequest) Validate ¶
func (r *DeployRequest) Validate() error
Validate checks if request was valid
type DeployResponse ¶
type DeployResponse struct { Operation string Meta interface{} Function *cloudfunctions.CloudFunction }
DeployResponse represents deploy response
type GetRequest ¶
GetRequest represents get function requests
func (*GetRequest) Validate ¶
func (r *GetRequest) Validate() error
Validate checks if request was valid
type ListRequest ¶
type ListRequest struct {
Region string
}
GetRequest represents list function requests
type ListResponse ¶
type ListResponse struct {
Function []*cloudfunctions.CloudFunction
}
GetRequest represents list function response
Click to show internal directories.
Click to hide internal directories.