Documentation ¶
Overview ¶
Package customresource provides functionality to upload Copilot custom resources.
Index ¶
- func Upload(upload UploadFunc, crs []*CustomResource) (map[string]string, error)
- type CustomResource
- func Backend(fs template.Reader) ([]*CustomResource, error)
- func Env(fs template.Reader) ([]*CustomResource, error)
- func LBWS(fs template.Reader) ([]*CustomResource, error)
- func RDWS(fs template.Reader) ([]*CustomResource, error)
- func ScheduledJob(fs template.Reader) ([]*CustomResource, error)
- func Worker(fs template.Reader) ([]*CustomResource, error)
- type UploadFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Upload ¶
func Upload(upload UploadFunc, crs []*CustomResource) (map[string]string, error)
Upload zips all the Files for each CustomResource and uploads the zip files individually to S3. Returns a map of the CustomResource FunctionName to the S3 URL where the zip file is stored.
Types ¶
type CustomResource ¶
type CustomResource struct {
// contains filtered or unexported fields
}
CustomResource represents a CloudFormation custom resource backed by a Lambda function.
func Backend ¶
func Backend(fs template.Reader) ([]*CustomResource, error)
Backend returns the custom resources for a backend service.
func Env ¶
func Env(fs template.Reader) ([]*CustomResource, error)
Env returns the custom resources for an environment.
func LBWS ¶
func LBWS(fs template.Reader) ([]*CustomResource, error)
LBWS returns the custom resources for a load-balanced web service.
func RDWS ¶
func RDWS(fs template.Reader) ([]*CustomResource, error)
RDWS returns the custom resources for a request-driven web service.
func ScheduledJob ¶
func ScheduledJob(fs template.Reader) ([]*CustomResource, error)
ScheduledJob returns the custom resources for a scheduled job.
func Worker ¶
func Worker(fs template.Reader) ([]*CustomResource, error)
Worker returns the custom resources for a worker service.
func (*CustomResource) FunctionName ¶
func (cr *CustomResource) FunctionName() string
FunctionName is the name of the Lambda function.