Documentation
¶
Index ¶
- Constants
- func Create(req handler.Request, prevModel *Model, currentModel *Model) (handler.ProgressEvent, error)
- func Delete(req handler.Request, prevModel *Model, currentModel *Model) (handler.ProgressEvent, error)
- func List(req handler.Request, prevModel *Model, currentModel *Model) (handler.ProgressEvent, error)
- func Read(req handler.Request, prevModel *Model, currentModel *Model) (handler.ProgressEvent, error)
- func Update(req handler.Request, prevModel *Model, currentModel *Model) (handler.ProgressEvent, error)
- type Model
- type RequestInput
- type Unicorn
Constants ¶
View Source
const APIEndpoint = "https://crudcrud.com/api/<Your API ID>/unicorns"
APIEndpoint is the crudcrud endpoint. You can obtain an endpoint by going to https://crudcrud.com.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(req handler.Request, prevModel *Model, currentModel *Model) (handler.ProgressEvent, error)
Create handles the Create event from the Cloudformation service.
func Delete ¶
func Delete(req handler.Request, prevModel *Model, currentModel *Model) (handler.ProgressEvent, error)
Delete handles the Delete event from the Cloudformation service.
func List ¶
func List(req handler.Request, prevModel *Model, currentModel *Model) (handler.ProgressEvent, error)
List handles the List event from the Cloudformation service.
Types ¶
type Model ¶
type Model struct { UID *string `json:",omitempty"` Name *string `json:",omitempty"` Color *string `json:",omitempty"` }
Model is autogenerated from the json schema
type RequestInput ¶
type RequestInput struct { // Method is the the HTTP request method. Method string // URL is the request URL URL string // Body is the body of the request. Body io.Reader // Action is the Cloudformation resource action // Create, Read, etc... Action string // Model is the resource model. Model *Model }
RequestInput represents the input when making the HTTP request.
Click to show internal directories.
Click to hide internal directories.