Documentation ¶
Index ¶
- func Marshal(inputEvent interface{}) ([]byte, error)
- func Unmarshal(inputStream []byte) (map[string]interface{}, error)
- type AWSEvent
- func (a *AWSEvent) SetAccount(account string)
- func (a *AWSEvent) SetDetail(detail ECSServiceAction)
- func (a *AWSEvent) SetDetailType(detailType string)
- func (a *AWSEvent) SetId(id string)
- func (a *AWSEvent) SetRegion(region string)
- func (a *AWSEvent) SetResources(resources []string)
- func (a *AWSEvent) SetSource(source string)
- func (a *AWSEvent) SetTime(time time.Time)
- func (a *AWSEvent) SetVersion(version string)
- type ECSServiceAction
- func (e *ECSServiceAction) SetCapacityProviderArns(capacityProviderArns []string)
- func (e *ECSServiceAction) SetClusterArn(clusterArn string)
- func (e *ECSServiceAction) SetContainerInstanceArns(containerInstanceArns []string)
- func (e *ECSServiceAction) SetContainerPort(containerPort float64)
- func (e *ECSServiceAction) SetCreatedAt(createdAt time.Time)
- func (e *ECSServiceAction) SetDesiredCount(desiredCount float64)
- func (e *ECSServiceAction) SetEc2InstanceIds(ec2InstanceIds []string)
- func (e *ECSServiceAction) SetEventName(eventName string)
- func (e *ECSServiceAction) SetEventType(eventType string)
- func (e *ECSServiceAction) SetReason(reason string)
- func (e *ECSServiceAction) SetServiceRegistryArns(serviceRegistryArns []string)
- func (e *ECSServiceAction) SetTargetGroupArns(targetGroupArns []string)
- func (e *ECSServiceAction) SetTargets(targets []string)
- func (e *ECSServiceAction) SetTaskArns(taskArns []string)
- func (e *ECSServiceAction) SetTaskSetArns(taskSetArns []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AWSEvent ¶
type AWSEvent struct { Detail ECSServiceAction `json:"detail"` Account string `json:"account"` DetailType string `json:"detail-type"` Id string `json:"id"` Region string `json:"region"` Resources []string `json:"resources"` Source string `json:"source"` Time time.Time `json:"time"` Version string `json:"version"` }
func UnmarshalEvent ¶
func (*AWSEvent) SetAccount ¶
func (*AWSEvent) SetDetail ¶
func (a *AWSEvent) SetDetail(detail ECSServiceAction)
func (*AWSEvent) SetDetailType ¶
func (*AWSEvent) SetResources ¶
func (*AWSEvent) SetVersion ¶
type ECSServiceAction ¶
type ECSServiceAction struct { CapacityProviderArns []string `json:"capacityProviderArns,omitempty"` ClusterArn string `json:"clusterArn"` CreatedAt time.Time `json:"createdAt,omitempty"` EventName string `json:"eventName"` EventType string `json:"eventType"` Reason string `json:"reason,omitempty"` DesiredCount float64 `json:"desiredCount,omitempty"` ContainerPort float64 `json:"containerPort,omitempty"` TaskArns []string `json:"taskArns,omitempty"` TaskSetArns []string `json:"taskSetArns,omitempty"` ContainerInstanceArns []string `json:"containerInstanceArns,omitempty"` Ec2InstanceIds []string `json:"ec2InstanceIds,omitempty"` TargetGroupArns []string `json:"targetGroupArns,omitempty"` ServiceRegistryArns []string `json:"serviceRegistryArns,omitempty"` Targets []string `json:"targets,omitempty"` }
func (*ECSServiceAction) SetCapacityProviderArns ¶
func (e *ECSServiceAction) SetCapacityProviderArns(capacityProviderArns []string)
func (*ECSServiceAction) SetClusterArn ¶
func (e *ECSServiceAction) SetClusterArn(clusterArn string)
func (*ECSServiceAction) SetContainerInstanceArns ¶
func (e *ECSServiceAction) SetContainerInstanceArns(containerInstanceArns []string)
func (*ECSServiceAction) SetContainerPort ¶
func (e *ECSServiceAction) SetContainerPort(containerPort float64)
func (*ECSServiceAction) SetCreatedAt ¶
func (e *ECSServiceAction) SetCreatedAt(createdAt time.Time)
func (*ECSServiceAction) SetDesiredCount ¶
func (e *ECSServiceAction) SetDesiredCount(desiredCount float64)
func (*ECSServiceAction) SetEc2InstanceIds ¶
func (e *ECSServiceAction) SetEc2InstanceIds(ec2InstanceIds []string)
func (*ECSServiceAction) SetEventName ¶
func (e *ECSServiceAction) SetEventName(eventName string)
func (*ECSServiceAction) SetEventType ¶
func (e *ECSServiceAction) SetEventType(eventType string)
func (*ECSServiceAction) SetReason ¶
func (e *ECSServiceAction) SetReason(reason string)
func (*ECSServiceAction) SetServiceRegistryArns ¶
func (e *ECSServiceAction) SetServiceRegistryArns(serviceRegistryArns []string)
func (*ECSServiceAction) SetTargetGroupArns ¶
func (e *ECSServiceAction) SetTargetGroupArns(targetGroupArns []string)
func (*ECSServiceAction) SetTargets ¶
func (e *ECSServiceAction) SetTargets(targets []string)
func (*ECSServiceAction) SetTaskArns ¶
func (e *ECSServiceAction) SetTaskArns(taskArns []string)
func (*ECSServiceAction) SetTaskSetArns ¶
func (e *ECSServiceAction) SetTaskSetArns(taskSetArns []string)
Click to show internal directories.
Click to hide internal directories.