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 ECSTaskStateChange)
- 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 AttachmentDetails
- type AttachmentDetails_details
- type AttributesDetails
- type ContainerDetails
- func (c *ContainerDetails) SetContainerArn(containerArn string)
- func (c *ContainerDetails) SetCpu(cpu string)
- func (c *ContainerDetails) SetExitCode(exitCode float64)
- func (c *ContainerDetails) SetGpuIds(gpuIds []string)
- func (c *ContainerDetails) SetImage(image string)
- func (c *ContainerDetails) SetImageDigest(imageDigest string)
- func (c *ContainerDetails) SetLastStatus(lastStatus string)
- func (c *ContainerDetails) SetMemory(memory string)
- func (c *ContainerDetails) SetMemoryReservation(memoryReservation string)
- func (c *ContainerDetails) SetName(name string)
- func (c *ContainerDetails) SetNetworkBindings(networkBindings []NetworkBindingDetails)
- func (c *ContainerDetails) SetNetworkInterfaces(networkInterfaces []NetworkInterfaceDetails)
- func (c *ContainerDetails) SetReason(reason string)
- func (c *ContainerDetails) SetRuntimeId(runtimeId string)
- func (c *ContainerDetails) SetTaskArn(taskArn string)
- type ECSTaskStateChange
- func (e *ECSTaskStateChange) SetAttachments(attachments []AttachmentDetails)
- func (e *ECSTaskStateChange) SetAttributes(attributes []AttributesDetails)
- func (e *ECSTaskStateChange) SetAvailabilityZone(availabilityZone string)
- func (e *ECSTaskStateChange) SetClusterArn(clusterArn string)
- func (e *ECSTaskStateChange) SetConnectivity(connectivity string)
- func (e *ECSTaskStateChange) SetConnectivityAt(connectivityAt time.Time)
- func (e *ECSTaskStateChange) SetContainerInstanceArn(containerInstanceArn string)
- func (e *ECSTaskStateChange) SetContainers(containers []ContainerDetails)
- func (e *ECSTaskStateChange) SetCpu(cpu string)
- func (e *ECSTaskStateChange) SetCreatedAt(createdAt time.Time)
- func (e *ECSTaskStateChange) SetDesiredStatus(desiredStatus string)
- func (e *ECSTaskStateChange) SetExecutionStoppedAt(executionStoppedAt time.Time)
- func (e *ECSTaskStateChange) SetGroup(group string)
- func (e *ECSTaskStateChange) SetLastStatus(lastStatus string)
- func (e *ECSTaskStateChange) SetLaunchType(launchType string)
- func (e *ECSTaskStateChange) SetMemory(memory string)
- func (e *ECSTaskStateChange) SetOverrides(overrides Overrides)
- func (e *ECSTaskStateChange) SetPlatformVersion(platformVersion string)
- func (e *ECSTaskStateChange) SetPullStartedAt(pullStartedAt time.Time)
- func (e *ECSTaskStateChange) SetPullStoppedAt(pullStoppedAt time.Time)
- func (e *ECSTaskStateChange) SetStartedAt(startedAt time.Time)
- func (e *ECSTaskStateChange) SetStartedBy(startedBy string)
- func (e *ECSTaskStateChange) SetStopCode(stopCode string)
- func (e *ECSTaskStateChange) SetStoppedAt(stoppedAt time.Time)
- func (e *ECSTaskStateChange) SetStoppedReason(stoppedReason string)
- func (e *ECSTaskStateChange) SetStoppingAt(stoppingAt time.Time)
- func (e *ECSTaskStateChange) SetTaskArn(taskArn string)
- func (e *ECSTaskStateChange) SetTaskDefinitionArn(taskDefinitionArn string)
- func (e *ECSTaskStateChange) SetUpdatedAt(updatedAt time.Time)
- func (e *ECSTaskStateChange) SetVersion(version float64)
- type Environment
- type NetworkBindingDetails
- type NetworkInterfaceDetails
- type Overrides
- type OverridesItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AWSEvent ¶
type AWSEvent struct { Detail ECSTaskStateChange `json:"detail"` DetailType string `json:"detail-type"` Resources []string `json:"resources"` Id string `json:"id"` Source string `json:"source"` Time time.Time `json:"time"` Region string `json:"region"` Version string `json:"version"` Account string `json:"account"` }
func UnmarshalEvent ¶
func (*AWSEvent) SetAccount ¶
func (*AWSEvent) SetDetail ¶
func (a *AWSEvent) SetDetail(detail ECSTaskStateChange)
func (*AWSEvent) SetDetailType ¶
func (*AWSEvent) SetResources ¶
func (*AWSEvent) SetVersion ¶
type AttachmentDetails ¶
type AttachmentDetails struct { Id string `json:"id,omitempty"` AttachmentDetailsType string `json:"type,omitempty"` Status string `json:"status,omitempty"` Details []AttachmentDetails_details `json:"details,omitempty"` }
func (*AttachmentDetails) SetAttachmentDetailsType ¶
func (a *AttachmentDetails) SetAttachmentDetailsType(attachmentDetailsType string)
func (*AttachmentDetails) SetDetails ¶
func (a *AttachmentDetails) SetDetails(details []AttachmentDetails_details)
func (*AttachmentDetails) SetId ¶
func (a *AttachmentDetails) SetId(id string)
func (*AttachmentDetails) SetStatus ¶
func (a *AttachmentDetails) SetStatus(status string)
type AttachmentDetails_details ¶
type AttachmentDetails_details struct { Name string `json:"name,omitempty"` Value string `json:"value,omitempty"` }
func (*AttachmentDetails_details) SetName ¶
func (a *AttachmentDetails_details) SetName(name string)
func (*AttachmentDetails_details) SetValue ¶
func (a *AttachmentDetails_details) SetValue(value string)
type AttributesDetails ¶
type AttributesDetails struct { Name string `json:"name,omitempty"` Value string `json:"value,omitempty"` }
func (*AttributesDetails) SetName ¶
func (a *AttributesDetails) SetName(name string)
func (*AttributesDetails) SetValue ¶
func (a *AttributesDetails) SetValue(value string)
type ContainerDetails ¶
type ContainerDetails struct { Image string `json:"image,omitempty"` ImageDigest string `json:"imageDigest,omitempty"` NetworkInterfaces []NetworkInterfaceDetails `json:"networkInterfaces,omitempty"` NetworkBindings []NetworkBindingDetails `json:"networkBindings,omitempty"` Memory string `json:"memory,omitempty"` MemoryReservation string `json:"memoryReservation,omitempty"` TaskArn string `json:"taskArn"` Name string `json:"name"` ExitCode float64 `json:"exitCode,omitempty"` Cpu string `json:"cpu,omitempty"` ContainerArn string `json:"containerArn"` LastStatus string `json:"lastStatus"` RuntimeId string `json:"runtimeId,omitempty"` Reason string `json:"reason,omitempty"` GpuIds []string `json:"gpuIds,omitempty"` }
func (*ContainerDetails) SetContainerArn ¶
func (c *ContainerDetails) SetContainerArn(containerArn string)
func (*ContainerDetails) SetCpu ¶
func (c *ContainerDetails) SetCpu(cpu string)
func (*ContainerDetails) SetExitCode ¶
func (c *ContainerDetails) SetExitCode(exitCode float64)
func (*ContainerDetails) SetGpuIds ¶
func (c *ContainerDetails) SetGpuIds(gpuIds []string)
func (*ContainerDetails) SetImage ¶
func (c *ContainerDetails) SetImage(image string)
func (*ContainerDetails) SetImageDigest ¶
func (c *ContainerDetails) SetImageDigest(imageDigest string)
func (*ContainerDetails) SetLastStatus ¶
func (c *ContainerDetails) SetLastStatus(lastStatus string)
func (*ContainerDetails) SetMemory ¶
func (c *ContainerDetails) SetMemory(memory string)
func (*ContainerDetails) SetMemoryReservation ¶
func (c *ContainerDetails) SetMemoryReservation(memoryReservation string)
func (*ContainerDetails) SetName ¶
func (c *ContainerDetails) SetName(name string)
func (*ContainerDetails) SetNetworkBindings ¶
func (c *ContainerDetails) SetNetworkBindings(networkBindings []NetworkBindingDetails)
func (*ContainerDetails) SetNetworkInterfaces ¶
func (c *ContainerDetails) SetNetworkInterfaces(networkInterfaces []NetworkInterfaceDetails)
func (*ContainerDetails) SetReason ¶
func (c *ContainerDetails) SetReason(reason string)
func (*ContainerDetails) SetRuntimeId ¶
func (c *ContainerDetails) SetRuntimeId(runtimeId string)
func (*ContainerDetails) SetTaskArn ¶
func (c *ContainerDetails) SetTaskArn(taskArn string)
type ECSTaskStateChange ¶
type ECSTaskStateChange struct { Overrides Overrides `json:"overrides"` ExecutionStoppedAt time.Time `json:"executionStoppedAt,omitempty"` Memory string `json:"memory,omitempty"` Attachments []AttachmentDetails `json:"attachments,omitempty"` Attributes []AttributesDetails `json:"attributes,omitempty"` PullStartedAt time.Time `json:"pullStartedAt,omitempty"` TaskArn string `json:"taskArn"` StartedAt time.Time `json:"startedAt,omitempty"` CreatedAt time.Time `json:"createdAt"` ClusterArn string `json:"clusterArn"` Connectivity string `json:"connectivity,omitempty"` PlatformVersion string `json:"platformVersion,omitempty"` ContainerInstanceArn string `json:"containerInstanceArn,omitempty"` LaunchType string `json:"launchType,omitempty"` Group string `json:"group,omitempty"` UpdatedAt time.Time `json:"updatedAt"` StopCode string `json:"stopCode,omitempty"` PullStoppedAt time.Time `json:"pullStoppedAt,omitempty"` ConnectivityAt time.Time `json:"connectivityAt,omitempty"` StartedBy string `json:"startedBy,omitempty"` Cpu string `json:"cpu,omitempty"` Version float64 `json:"version"` StoppingAt time.Time `json:"stoppingAt,omitempty"` StoppedAt time.Time `json:"stoppedAt,omitempty"` TaskDefinitionArn string `json:"taskDefinitionArn"` StoppedReason string `json:"stoppedReason,omitempty"` Containers []ContainerDetails `json:"containers"` DesiredStatus string `json:"desiredStatus"` LastStatus string `json:"lastStatus"` AvailabilityZone string `json:"availabilityZone,omitempty"` }
func (*ECSTaskStateChange) SetAttachments ¶
func (e *ECSTaskStateChange) SetAttachments(attachments []AttachmentDetails)
func (*ECSTaskStateChange) SetAttributes ¶
func (e *ECSTaskStateChange) SetAttributes(attributes []AttributesDetails)
func (*ECSTaskStateChange) SetAvailabilityZone ¶
func (e *ECSTaskStateChange) SetAvailabilityZone(availabilityZone string)
func (*ECSTaskStateChange) SetClusterArn ¶
func (e *ECSTaskStateChange) SetClusterArn(clusterArn string)
func (*ECSTaskStateChange) SetConnectivity ¶
func (e *ECSTaskStateChange) SetConnectivity(connectivity string)
func (*ECSTaskStateChange) SetConnectivityAt ¶
func (e *ECSTaskStateChange) SetConnectivityAt(connectivityAt time.Time)
func (*ECSTaskStateChange) SetContainerInstanceArn ¶
func (e *ECSTaskStateChange) SetContainerInstanceArn(containerInstanceArn string)
func (*ECSTaskStateChange) SetContainers ¶
func (e *ECSTaskStateChange) SetContainers(containers []ContainerDetails)
func (*ECSTaskStateChange) SetCpu ¶
func (e *ECSTaskStateChange) SetCpu(cpu string)
func (*ECSTaskStateChange) SetCreatedAt ¶
func (e *ECSTaskStateChange) SetCreatedAt(createdAt time.Time)
func (*ECSTaskStateChange) SetDesiredStatus ¶
func (e *ECSTaskStateChange) SetDesiredStatus(desiredStatus string)
func (*ECSTaskStateChange) SetExecutionStoppedAt ¶
func (e *ECSTaskStateChange) SetExecutionStoppedAt(executionStoppedAt time.Time)
func (*ECSTaskStateChange) SetGroup ¶
func (e *ECSTaskStateChange) SetGroup(group string)
func (*ECSTaskStateChange) SetLastStatus ¶
func (e *ECSTaskStateChange) SetLastStatus(lastStatus string)
func (*ECSTaskStateChange) SetLaunchType ¶
func (e *ECSTaskStateChange) SetLaunchType(launchType string)
func (*ECSTaskStateChange) SetMemory ¶
func (e *ECSTaskStateChange) SetMemory(memory string)
func (*ECSTaskStateChange) SetOverrides ¶
func (e *ECSTaskStateChange) SetOverrides(overrides Overrides)
func (*ECSTaskStateChange) SetPlatformVersion ¶
func (e *ECSTaskStateChange) SetPlatformVersion(platformVersion string)
func (*ECSTaskStateChange) SetPullStartedAt ¶
func (e *ECSTaskStateChange) SetPullStartedAt(pullStartedAt time.Time)
func (*ECSTaskStateChange) SetPullStoppedAt ¶
func (e *ECSTaskStateChange) SetPullStoppedAt(pullStoppedAt time.Time)
func (*ECSTaskStateChange) SetStartedAt ¶
func (e *ECSTaskStateChange) SetStartedAt(startedAt time.Time)
func (*ECSTaskStateChange) SetStartedBy ¶
func (e *ECSTaskStateChange) SetStartedBy(startedBy string)
func (*ECSTaskStateChange) SetStopCode ¶
func (e *ECSTaskStateChange) SetStopCode(stopCode string)
func (*ECSTaskStateChange) SetStoppedAt ¶
func (e *ECSTaskStateChange) SetStoppedAt(stoppedAt time.Time)
func (*ECSTaskStateChange) SetStoppedReason ¶
func (e *ECSTaskStateChange) SetStoppedReason(stoppedReason string)
func (*ECSTaskStateChange) SetStoppingAt ¶
func (e *ECSTaskStateChange) SetStoppingAt(stoppingAt time.Time)
func (*ECSTaskStateChange) SetTaskArn ¶
func (e *ECSTaskStateChange) SetTaskArn(taskArn string)
func (*ECSTaskStateChange) SetTaskDefinitionArn ¶
func (e *ECSTaskStateChange) SetTaskDefinitionArn(taskDefinitionArn string)
func (*ECSTaskStateChange) SetUpdatedAt ¶
func (e *ECSTaskStateChange) SetUpdatedAt(updatedAt time.Time)
func (*ECSTaskStateChange) SetVersion ¶
func (e *ECSTaskStateChange) SetVersion(version float64)
type Environment ¶
type NetworkBindingDetails ¶
type NetworkBindingDetails struct { BindIP string `json:"bindIP,omitempty"` Protocol string `json:"protocol,omitempty"` ContainerPort float64 `json:"containerPort,omitempty"` HostPort float64 `json:"hostPort,omitempty"` }
func (*NetworkBindingDetails) SetBindIP ¶
func (n *NetworkBindingDetails) SetBindIP(bindIP string)
func (*NetworkBindingDetails) SetContainerPort ¶
func (n *NetworkBindingDetails) SetContainerPort(containerPort float64)
func (*NetworkBindingDetails) SetHostPort ¶
func (n *NetworkBindingDetails) SetHostPort(hostPort float64)
func (*NetworkBindingDetails) SetProtocol ¶
func (n *NetworkBindingDetails) SetProtocol(protocol string)
type NetworkInterfaceDetails ¶
type NetworkInterfaceDetails struct { PrivateIpv4Address string `json:"privateIpv4Address,omitempty"` Ipv6Address string `json:"ipv6Address,omitempty"` AttachmentId string `json:"attachmentId,omitempty"` }
func (*NetworkInterfaceDetails) SetAttachmentId ¶
func (n *NetworkInterfaceDetails) SetAttachmentId(attachmentId string)
func (*NetworkInterfaceDetails) SetIpv6Address ¶
func (n *NetworkInterfaceDetails) SetIpv6Address(ipv6Address string)
func (*NetworkInterfaceDetails) SetPrivateIpv4Address ¶
func (n *NetworkInterfaceDetails) SetPrivateIpv4Address(privateIpv4Address string)
type Overrides ¶
type Overrides struct {
ContainerOverrides []OverridesItem `json:"containerOverrides"`
}
func (*Overrides) SetContainerOverrides ¶
func (o *Overrides) SetContainerOverrides(containerOverrides []OverridesItem)
type OverridesItem ¶
type OverridesItem struct { Environment []Environment `json:"environment,omitempty"` Memory float64 `json:"memory,omitempty"` Name string `json:"name"` Cpu float64 `json:"cpu,omitempty"` Command []string `json:"command,omitempty"` }
func (*OverridesItem) SetCommand ¶
func (o *OverridesItem) SetCommand(command []string)
func (*OverridesItem) SetCpu ¶
func (o *OverridesItem) SetCpu(cpu float64)
func (*OverridesItem) SetEnvironment ¶
func (o *OverridesItem) SetEnvironment(environment []Environment)
func (*OverridesItem) SetMemory ¶
func (o *OverridesItem) SetMemory(memory float64)
func (*OverridesItem) SetName ¶
func (o *OverridesItem) SetName(name string)
Click to show internal directories.
Click to hide internal directories.