ecstaskstatechange

package
v0.0.0-...-da6177f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(inputEvent interface{}) ([]byte, error)

func Unmarshal

func Unmarshal(inputStream []byte) (map[string]interface{}, error)

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 UnmarshalEvent(inputStream []byte) (AWSEvent, error)

func (*AWSEvent) SetAccount

func (a *AWSEvent) SetAccount(account string)

func (*AWSEvent) SetDetail

func (a *AWSEvent) SetDetail(detail ECSTaskStateChange)

func (*AWSEvent) SetDetailType

func (a *AWSEvent) SetDetailType(detailType string)

func (*AWSEvent) SetId

func (a *AWSEvent) SetId(id string)

func (*AWSEvent) SetRegion

func (a *AWSEvent) SetRegion(region string)

func (*AWSEvent) SetResources

func (a *AWSEvent) SetResources(resources []string)

func (*AWSEvent) SetSource

func (a *AWSEvent) SetSource(source string)

func (*AWSEvent) SetTime

func (a *AWSEvent) SetTime(time time.Time)

func (*AWSEvent) SetVersion

func (a *AWSEvent) SetVersion(version string)

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 Environment struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL