client

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package client provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoscalingConfigChangedEvent

type AutoscalingConfigChangedEvent struct {
	FromConfig *externalRef0.AutoscalingConfig `json:"fromConfig,omitempty"`
	ToConfig   externalRef0.AutoscalingConfig  `json:"toConfig"`
}

AutoscalingConfigChangedEvent defines model for autoscalingConfigChangedEvent.

type AutoscalingEndedEvent

type AutoscalingEndedEvent struct {
	FromInstances int `json:"fromInstances"`
	ToInstances   int `json:"toInstances"`
}

AutoscalingEndedEvent defines model for autoscalingEndedEvent.

type AutoscalingStartedEvent

type AutoscalingStartedEvent struct {
	CurrentCPU    *int64 `json:"currentCPU,omitempty"`
	CurrentMemory *int64 `json:"currentMemory,omitempty"`
	FromInstances int    `json:"fromInstances"`
	TargetCPU     *int64 `json:"targetCPU,omitempty"`
	TargetMemory  *int64 `json:"targetMemory,omitempty"`
	ToInstances   int    `json:"toInstances"`
}

AutoscalingStartedEvent defines model for autoscalingStartedEvent.

type BranchDeletedEvent

type BranchDeletedEvent struct {
	DeletedBranch string `json:"deletedBranch"`
	NewBranch     string `json:"newBranch"`
}

BranchDeletedEvent defines model for branchDeletedEvent.

type BuildDeployEndReason

type BuildDeployEndReason struct {
	BuildFailed *BuildDeployEndReasonID `json:"buildFailed,omitempty"`
	Failure     *FailureReason          `json:"failure,omitempty"`
	NewBuild    *BuildDeployEndReasonID `json:"newBuild,omitempty"`
	NewDeploy   *BuildDeployEndReasonID `json:"newDeploy,omitempty"`
}

BuildDeployEndReason defines model for buildDeployEndReason.

type BuildDeployEndReasonID

type BuildDeployEndReasonID struct {
	Id string `json:"id"`
}

BuildDeployEndReasonID defines model for buildDeployEndReasonID.

type BuildDeployTrigger

type BuildDeployTrigger struct {
	// ClearCache Whether the cache was cleared for the deploy
	ClearCache bool `json:"clearCache"`

	// DeployedByRender Deploy was triggered by Render
	DeployedByRender bool `json:"deployedByRender"`

	// EnvUpdated Deploy was triggered by an environment update
	EnvUpdated bool `json:"envUpdated"`

	// FirstBuild Deploy was triggered by service creation
	FirstBuild bool `json:"firstBuild"`

	// Manual Deploy was triggered manually from the dashboard
	Manual bool `json:"manual"`

	// NewCommit Commit that triggered the deploy
	NewCommit *string `json:"newCommit,omitempty"`

	// Rollback Whether the deploy was triggered by a rollback
	Rollback bool `json:"rollback"`

	// RollbackTargetDeployId Deploy ID that was rolled back to
	RollbackTargetDeployId *string `json:"rollbackTargetDeployId,omitempty"`

	// UpdatedProperty Updated property that triggered the deploy
	UpdatedProperty *string `json:"updatedProperty,omitempty"`

	// User User who triggered the action
	User *User `json:"user,omitempty"`
}

BuildDeployTrigger defines model for buildDeployTrigger.

type BuildEndedEvent

type BuildEndedEvent struct {
	BuildId string               `json:"buildId"`
	Reason  BuildDeployEndReason `json:"reason"`
	Status  int                  `json:"status"`
}

BuildEndedEvent defines model for buildEndedEvent.

type BuildPlanChangedEvent

type BuildPlanChangedEvent struct {
	From string `json:"from"`
	To   string `json:"to"`
}

BuildPlanChangedEvent defines model for buildPlanChangedEvent.

type BuildStartedEvent

type BuildStartedEvent struct {
	BuildId string             `json:"buildId"`
	Trigger BuildDeployTrigger `json:"trigger"`
}

BuildStartedEvent defines model for buildStartedEvent.

type CommitIgnoredEvent

type CommitIgnoredEvent struct {
	// Id the commit id
	Id string `json:"id"`

	// Url the commit url
	Url string `json:"url"`
}

CommitIgnoredEvent defines model for commitIgnoredEvent.

type CronJobRunEndedEvent

type CronJobRunEndedEvent struct {
	CronJobRunId string           `json:"cronJobRunId"`
	Reason       *FailureReason   `json:"reason,omitempty"`
	Status       CronJobRunStatus `json:"status"`

	// User User who triggered the action
	User *User `json:"user,omitempty"`
}

CronJobRunEndedEvent defines model for cronJobRunEndedEvent.

type CronJobRunStartedEvent

type CronJobRunStartedEvent struct {
	CronJobRunId string `json:"cronJobRunId"`
}

CronJobRunStartedEvent defines model for cronJobRunStartedEvent.

type CronJobRunStatus

type CronJobRunStatus string

CronJobRunStatus defines model for cronJobRunStatus.

const (
	Canceled     CronJobRunStatus = "canceled"
	Pending      CronJobRunStatus = "pending"
	Successful   CronJobRunStatus = "successful"
	Unsuccessful CronJobRunStatus = "unsuccessful"
)

Defines values for CronJobRunStatus.

type DeployEndedEvent

type DeployEndedEvent struct {
	DeployId string               `json:"deployId"`
	Reason   BuildDeployEndReason `json:"reason"`
	Status   int                  `json:"status"`
}

DeployEndedEvent defines model for deployEndedEvent.

type DeployStartedEvent

type DeployStartedEvent struct {
	DeployId string             `json:"deployId"`
	Trigger  BuildDeployTrigger `json:"trigger"`
}

DeployStartedEvent defines model for deployStartedEvent.

type DiskCreatedEvent

type DiskCreatedEvent struct {
	DiskId externalRef2.DiskId `json:"diskId"`
	SizeGB int                 `json:"sizeGB"`
}

DiskCreatedEvent defines model for diskCreatedEvent.

type DiskDeletedEvent

type DiskDeletedEvent struct {
	DiskId externalRef2.DiskId `json:"diskId"`
}

DiskDeletedEvent defines model for diskDeletedEvent.

type DiskUpdatedEvent

type DiskUpdatedEvent struct {
	DiskId     externalRef2.DiskId `json:"diskId"`
	FromSizeGB int                 `json:"fromSizeGB"`
	ToSizeGB   int                 `json:"toSizeGB"`
}

DiskUpdatedEvent defines model for diskUpdatedEvent.

type EventDetails

type EventDetails struct {
	// contains filtered or unexported fields
}

EventDetails defines model for eventDetails.

func (EventDetails) AsAutoscalingConfigChangedEvent

func (t EventDetails) AsAutoscalingConfigChangedEvent() (AutoscalingConfigChangedEvent, error)

AsAutoscalingConfigChangedEvent returns the union data inside the EventDetails as a AutoscalingConfigChangedEvent

func (EventDetails) AsAutoscalingEndedEvent

func (t EventDetails) AsAutoscalingEndedEvent() (AutoscalingEndedEvent, error)

AsAutoscalingEndedEvent returns the union data inside the EventDetails as a AutoscalingEndedEvent

func (EventDetails) AsAutoscalingStartedEvent

func (t EventDetails) AsAutoscalingStartedEvent() (AutoscalingStartedEvent, error)

AsAutoscalingStartedEvent returns the union data inside the EventDetails as a AutoscalingStartedEvent

func (EventDetails) AsBranchDeletedEvent

func (t EventDetails) AsBranchDeletedEvent() (BranchDeletedEvent, error)

AsBranchDeletedEvent returns the union data inside the EventDetails as a BranchDeletedEvent

func (EventDetails) AsBuildEndedEvent

func (t EventDetails) AsBuildEndedEvent() (BuildEndedEvent, error)

AsBuildEndedEvent returns the union data inside the EventDetails as a BuildEndedEvent

func (EventDetails) AsBuildPlanChangedEvent

func (t EventDetails) AsBuildPlanChangedEvent() (BuildPlanChangedEvent, error)

AsBuildPlanChangedEvent returns the union data inside the EventDetails as a BuildPlanChangedEvent

func (EventDetails) AsBuildStartedEvent

func (t EventDetails) AsBuildStartedEvent() (BuildStartedEvent, error)

AsBuildStartedEvent returns the union data inside the EventDetails as a BuildStartedEvent

func (EventDetails) AsCommitIgnoredEvent

func (t EventDetails) AsCommitIgnoredEvent() (CommitIgnoredEvent, error)

AsCommitIgnoredEvent returns the union data inside the EventDetails as a CommitIgnoredEvent

func (EventDetails) AsCronJobRunEndedEvent

func (t EventDetails) AsCronJobRunEndedEvent() (CronJobRunEndedEvent, error)

AsCronJobRunEndedEvent returns the union data inside the EventDetails as a CronJobRunEndedEvent

func (EventDetails) AsCronJobRunStartedEvent

func (t EventDetails) AsCronJobRunStartedEvent() (CronJobRunStartedEvent, error)

AsCronJobRunStartedEvent returns the union data inside the EventDetails as a CronJobRunStartedEvent

func (EventDetails) AsDeployEndedEvent

func (t EventDetails) AsDeployEndedEvent() (DeployEndedEvent, error)

AsDeployEndedEvent returns the union data inside the EventDetails as a DeployEndedEvent

func (EventDetails) AsDeployStartedEvent

func (t EventDetails) AsDeployStartedEvent() (DeployStartedEvent, error)

AsDeployStartedEvent returns the union data inside the EventDetails as a DeployStartedEvent

func (EventDetails) AsDiskCreatedEvent

func (t EventDetails) AsDiskCreatedEvent() (DiskCreatedEvent, error)

AsDiskCreatedEvent returns the union data inside the EventDetails as a DiskCreatedEvent

func (EventDetails) AsDiskDeletedEvent

func (t EventDetails) AsDiskDeletedEvent() (DiskDeletedEvent, error)

AsDiskDeletedEvent returns the union data inside the EventDetails as a DiskDeletedEvent

func (EventDetails) AsDiskUpdatedEvent

func (t EventDetails) AsDiskUpdatedEvent() (DiskUpdatedEvent, error)

AsDiskUpdatedEvent returns the union data inside the EventDetails as a DiskUpdatedEvent

func (EventDetails) AsImagePullFailedEvent

func (t EventDetails) AsImagePullFailedEvent() (ImagePullFailedEvent, error)

AsImagePullFailedEvent returns the union data inside the EventDetails as a ImagePullFailedEvent

func (EventDetails) AsInitialDeployHookEndedEvent

func (t EventDetails) AsInitialDeployHookEndedEvent() (InitialDeployHookEndedEvent, error)

AsInitialDeployHookEndedEvent returns the union data inside the EventDetails as a InitialDeployHookEndedEvent

func (EventDetails) AsInitialDeployHookStartedEvent

func (t EventDetails) AsInitialDeployHookStartedEvent() (InitialDeployHookStartedEvent, error)

AsInitialDeployHookStartedEvent returns the union data inside the EventDetails as a InitialDeployHookStartedEvent

func (EventDetails) AsInstanceCountChangedEvent

func (t EventDetails) AsInstanceCountChangedEvent() (InstanceCountChangedEvent, error)

AsInstanceCountChangedEvent returns the union data inside the EventDetails as a InstanceCountChangedEvent

func (EventDetails) AsJobRunEndedEvent

func (t EventDetails) AsJobRunEndedEvent() (JobRunEndedEvent, error)

AsJobRunEndedEvent returns the union data inside the EventDetails as a JobRunEndedEvent

func (EventDetails) AsMaintenanceEndedEvent

func (t EventDetails) AsMaintenanceEndedEvent() (MaintenanceEndedEvent, error)

AsMaintenanceEndedEvent returns the union data inside the EventDetails as a MaintenanceEndedEvent

func (EventDetails) AsMaintenanceModeEnabledEvent

func (t EventDetails) AsMaintenanceModeEnabledEvent() (MaintenanceModeEnabledEvent, error)

AsMaintenanceModeEnabledEvent returns the union data inside the EventDetails as a MaintenanceModeEnabledEvent

func (EventDetails) AsMaintenanceModeURIUpdatedEvent

func (t EventDetails) AsMaintenanceModeURIUpdatedEvent() (MaintenanceModeURIUpdatedEvent, error)

AsMaintenanceModeURIUpdatedEvent returns the union data inside the EventDetails as a MaintenanceModeURIUpdatedEvent

func (EventDetails) AsMaintenanceStartedEvent

func (t EventDetails) AsMaintenanceStartedEvent() (MaintenanceStartedEvent, error)

AsMaintenanceStartedEvent returns the union data inside the EventDetails as a MaintenanceStartedEvent

func (EventDetails) AsPlanChangedEvent

func (t EventDetails) AsPlanChangedEvent() (PlanChangedEvent, error)

AsPlanChangedEvent returns the union data inside the EventDetails as a PlanChangedEvent

func (EventDetails) AsPreDeployEndedEvent

func (t EventDetails) AsPreDeployEndedEvent() (PreDeployEndedEvent, error)

AsPreDeployEndedEvent returns the union data inside the EventDetails as a PreDeployEndedEvent

func (EventDetails) AsPreDeployStartedEvent

func (t EventDetails) AsPreDeployStartedEvent() (PreDeployStartedEvent, error)

AsPreDeployStartedEvent returns the union data inside the EventDetails as a PreDeployStartedEvent

func (EventDetails) AsServerAvailableEvent

func (t EventDetails) AsServerAvailableEvent() (ServerAvailableEvent, error)

AsServerAvailableEvent returns the union data inside the EventDetails as a ServerAvailableEvent

func (EventDetails) AsServerFailedEvent

func (t EventDetails) AsServerFailedEvent() (ServerFailedEvent, error)

AsServerFailedEvent returns the union data inside the EventDetails as a ServerFailedEvent

func (EventDetails) AsServerHardwareFailureEvent

func (t EventDetails) AsServerHardwareFailureEvent() (ServerHardwareFailureEvent, error)

AsServerHardwareFailureEvent returns the union data inside the EventDetails as a ServerHardwareFailureEvent

func (EventDetails) AsServerRestartedEvent

func (t EventDetails) AsServerRestartedEvent() (ServerRestartedEvent, error)

AsServerRestartedEvent returns the union data inside the EventDetails as a ServerRestartedEvent

func (EventDetails) AsServerUnhealthyEvent

func (t EventDetails) AsServerUnhealthyEvent() (ServerUnhealthyEvent, error)

AsServerUnhealthyEvent returns the union data inside the EventDetails as a ServerUnhealthyEvent

func (EventDetails) AsServiceResumedEvent

func (t EventDetails) AsServiceResumedEvent() (ServiceResumedEvent, error)

AsServiceResumedEvent returns the union data inside the EventDetails as a ServiceResumedEvent

func (EventDetails) AsServiceSuspendedEvent

func (t EventDetails) AsServiceSuspendedEvent() (ServiceSuspendedEvent, error)

AsServiceSuspendedEvent returns the union data inside the EventDetails as a ServiceSuspendedEvent

func (EventDetails) AsSuspenderAddedEvent

func (t EventDetails) AsSuspenderAddedEvent() (SuspenderAddedEvent, error)

AsSuspenderAddedEvent returns the union data inside the EventDetails as a SuspenderAddedEvent

func (EventDetails) AsSuspenderRemovedEvent

func (t EventDetails) AsSuspenderRemovedEvent() (SuspenderRemovedEvent, error)

AsSuspenderRemovedEvent returns the union data inside the EventDetails as a SuspenderRemovedEvent

func (EventDetails) AsZeroDowntimeRedeployEndedEvent

func (t EventDetails) AsZeroDowntimeRedeployEndedEvent() (ZeroDowntimeRedeployEndedEvent, error)

AsZeroDowntimeRedeployEndedEvent returns the union data inside the EventDetails as a ZeroDowntimeRedeployEndedEvent

func (EventDetails) AsZeroDowntimeRedeployStartedEvent

func (t EventDetails) AsZeroDowntimeRedeployStartedEvent() (ZeroDowntimeRedeployStartedEvent, error)

AsZeroDowntimeRedeployStartedEvent returns the union data inside the EventDetails as a ZeroDowntimeRedeployStartedEvent

func (*EventDetails) FromAutoscalingConfigChangedEvent

func (t *EventDetails) FromAutoscalingConfigChangedEvent(v AutoscalingConfigChangedEvent) error

FromAutoscalingConfigChangedEvent overwrites any union data inside the EventDetails as the provided AutoscalingConfigChangedEvent

func (*EventDetails) FromAutoscalingEndedEvent

func (t *EventDetails) FromAutoscalingEndedEvent(v AutoscalingEndedEvent) error

FromAutoscalingEndedEvent overwrites any union data inside the EventDetails as the provided AutoscalingEndedEvent

func (*EventDetails) FromAutoscalingStartedEvent

func (t *EventDetails) FromAutoscalingStartedEvent(v AutoscalingStartedEvent) error

FromAutoscalingStartedEvent overwrites any union data inside the EventDetails as the provided AutoscalingStartedEvent

func (*EventDetails) FromBranchDeletedEvent

func (t *EventDetails) FromBranchDeletedEvent(v BranchDeletedEvent) error

FromBranchDeletedEvent overwrites any union data inside the EventDetails as the provided BranchDeletedEvent

func (*EventDetails) FromBuildEndedEvent

func (t *EventDetails) FromBuildEndedEvent(v BuildEndedEvent) error

FromBuildEndedEvent overwrites any union data inside the EventDetails as the provided BuildEndedEvent

func (*EventDetails) FromBuildPlanChangedEvent

func (t *EventDetails) FromBuildPlanChangedEvent(v BuildPlanChangedEvent) error

FromBuildPlanChangedEvent overwrites any union data inside the EventDetails as the provided BuildPlanChangedEvent

func (*EventDetails) FromBuildStartedEvent

func (t *EventDetails) FromBuildStartedEvent(v BuildStartedEvent) error

FromBuildStartedEvent overwrites any union data inside the EventDetails as the provided BuildStartedEvent

func (*EventDetails) FromCommitIgnoredEvent

func (t *EventDetails) FromCommitIgnoredEvent(v CommitIgnoredEvent) error

FromCommitIgnoredEvent overwrites any union data inside the EventDetails as the provided CommitIgnoredEvent

func (*EventDetails) FromCronJobRunEndedEvent

func (t *EventDetails) FromCronJobRunEndedEvent(v CronJobRunEndedEvent) error

FromCronJobRunEndedEvent overwrites any union data inside the EventDetails as the provided CronJobRunEndedEvent

func (*EventDetails) FromCronJobRunStartedEvent

func (t *EventDetails) FromCronJobRunStartedEvent(v CronJobRunStartedEvent) error

FromCronJobRunStartedEvent overwrites any union data inside the EventDetails as the provided CronJobRunStartedEvent

func (*EventDetails) FromDeployEndedEvent

func (t *EventDetails) FromDeployEndedEvent(v DeployEndedEvent) error

FromDeployEndedEvent overwrites any union data inside the EventDetails as the provided DeployEndedEvent

func (*EventDetails) FromDeployStartedEvent

func (t *EventDetails) FromDeployStartedEvent(v DeployStartedEvent) error

FromDeployStartedEvent overwrites any union data inside the EventDetails as the provided DeployStartedEvent

func (*EventDetails) FromDiskCreatedEvent

func (t *EventDetails) FromDiskCreatedEvent(v DiskCreatedEvent) error

FromDiskCreatedEvent overwrites any union data inside the EventDetails as the provided DiskCreatedEvent

func (*EventDetails) FromDiskDeletedEvent

func (t *EventDetails) FromDiskDeletedEvent(v DiskDeletedEvent) error

FromDiskDeletedEvent overwrites any union data inside the EventDetails as the provided DiskDeletedEvent

func (*EventDetails) FromDiskUpdatedEvent

func (t *EventDetails) FromDiskUpdatedEvent(v DiskUpdatedEvent) error

FromDiskUpdatedEvent overwrites any union data inside the EventDetails as the provided DiskUpdatedEvent

func (*EventDetails) FromImagePullFailedEvent

func (t *EventDetails) FromImagePullFailedEvent(v ImagePullFailedEvent) error

FromImagePullFailedEvent overwrites any union data inside the EventDetails as the provided ImagePullFailedEvent

func (*EventDetails) FromInitialDeployHookEndedEvent

func (t *EventDetails) FromInitialDeployHookEndedEvent(v InitialDeployHookEndedEvent) error

FromInitialDeployHookEndedEvent overwrites any union data inside the EventDetails as the provided InitialDeployHookEndedEvent

func (*EventDetails) FromInitialDeployHookStartedEvent

func (t *EventDetails) FromInitialDeployHookStartedEvent(v InitialDeployHookStartedEvent) error

FromInitialDeployHookStartedEvent overwrites any union data inside the EventDetails as the provided InitialDeployHookStartedEvent

func (*EventDetails) FromInstanceCountChangedEvent

func (t *EventDetails) FromInstanceCountChangedEvent(v InstanceCountChangedEvent) error

FromInstanceCountChangedEvent overwrites any union data inside the EventDetails as the provided InstanceCountChangedEvent

func (*EventDetails) FromJobRunEndedEvent

func (t *EventDetails) FromJobRunEndedEvent(v JobRunEndedEvent) error

FromJobRunEndedEvent overwrites any union data inside the EventDetails as the provided JobRunEndedEvent

func (*EventDetails) FromMaintenanceEndedEvent

func (t *EventDetails) FromMaintenanceEndedEvent(v MaintenanceEndedEvent) error

FromMaintenanceEndedEvent overwrites any union data inside the EventDetails as the provided MaintenanceEndedEvent

func (*EventDetails) FromMaintenanceModeEnabledEvent

func (t *EventDetails) FromMaintenanceModeEnabledEvent(v MaintenanceModeEnabledEvent) error

FromMaintenanceModeEnabledEvent overwrites any union data inside the EventDetails as the provided MaintenanceModeEnabledEvent

func (*EventDetails) FromMaintenanceModeURIUpdatedEvent

func (t *EventDetails) FromMaintenanceModeURIUpdatedEvent(v MaintenanceModeURIUpdatedEvent) error

FromMaintenanceModeURIUpdatedEvent overwrites any union data inside the EventDetails as the provided MaintenanceModeURIUpdatedEvent

func (*EventDetails) FromMaintenanceStartedEvent

func (t *EventDetails) FromMaintenanceStartedEvent(v MaintenanceStartedEvent) error

FromMaintenanceStartedEvent overwrites any union data inside the EventDetails as the provided MaintenanceStartedEvent

func (*EventDetails) FromPlanChangedEvent

func (t *EventDetails) FromPlanChangedEvent(v PlanChangedEvent) error

FromPlanChangedEvent overwrites any union data inside the EventDetails as the provided PlanChangedEvent

func (*EventDetails) FromPreDeployEndedEvent

func (t *EventDetails) FromPreDeployEndedEvent(v PreDeployEndedEvent) error

FromPreDeployEndedEvent overwrites any union data inside the EventDetails as the provided PreDeployEndedEvent

func (*EventDetails) FromPreDeployStartedEvent

func (t *EventDetails) FromPreDeployStartedEvent(v PreDeployStartedEvent) error

FromPreDeployStartedEvent overwrites any union data inside the EventDetails as the provided PreDeployStartedEvent

func (*EventDetails) FromServerAvailableEvent

func (t *EventDetails) FromServerAvailableEvent(v ServerAvailableEvent) error

FromServerAvailableEvent overwrites any union data inside the EventDetails as the provided ServerAvailableEvent

func (*EventDetails) FromServerFailedEvent

func (t *EventDetails) FromServerFailedEvent(v ServerFailedEvent) error

FromServerFailedEvent overwrites any union data inside the EventDetails as the provided ServerFailedEvent

func (*EventDetails) FromServerHardwareFailureEvent

func (t *EventDetails) FromServerHardwareFailureEvent(v ServerHardwareFailureEvent) error

FromServerHardwareFailureEvent overwrites any union data inside the EventDetails as the provided ServerHardwareFailureEvent

func (*EventDetails) FromServerRestartedEvent

func (t *EventDetails) FromServerRestartedEvent(v ServerRestartedEvent) error

FromServerRestartedEvent overwrites any union data inside the EventDetails as the provided ServerRestartedEvent

func (*EventDetails) FromServerUnhealthyEvent

func (t *EventDetails) FromServerUnhealthyEvent(v ServerUnhealthyEvent) error

FromServerUnhealthyEvent overwrites any union data inside the EventDetails as the provided ServerUnhealthyEvent

func (*EventDetails) FromServiceResumedEvent

func (t *EventDetails) FromServiceResumedEvent(v ServiceResumedEvent) error

FromServiceResumedEvent overwrites any union data inside the EventDetails as the provided ServiceResumedEvent

func (*EventDetails) FromServiceSuspendedEvent

func (t *EventDetails) FromServiceSuspendedEvent(v ServiceSuspendedEvent) error

FromServiceSuspendedEvent overwrites any union data inside the EventDetails as the provided ServiceSuspendedEvent

func (*EventDetails) FromSuspenderAddedEvent

func (t *EventDetails) FromSuspenderAddedEvent(v SuspenderAddedEvent) error

FromSuspenderAddedEvent overwrites any union data inside the EventDetails as the provided SuspenderAddedEvent

func (*EventDetails) FromSuspenderRemovedEvent

func (t *EventDetails) FromSuspenderRemovedEvent(v SuspenderRemovedEvent) error

FromSuspenderRemovedEvent overwrites any union data inside the EventDetails as the provided SuspenderRemovedEvent

func (*EventDetails) FromZeroDowntimeRedeployEndedEvent

func (t *EventDetails) FromZeroDowntimeRedeployEndedEvent(v ZeroDowntimeRedeployEndedEvent) error

FromZeroDowntimeRedeployEndedEvent overwrites any union data inside the EventDetails as the provided ZeroDowntimeRedeployEndedEvent

func (*EventDetails) FromZeroDowntimeRedeployStartedEvent

func (t *EventDetails) FromZeroDowntimeRedeployStartedEvent(v ZeroDowntimeRedeployStartedEvent) error

FromZeroDowntimeRedeployStartedEvent overwrites any union data inside the EventDetails as the provided ZeroDowntimeRedeployStartedEvent

func (EventDetails) MarshalJSON

func (t EventDetails) MarshalJSON() ([]byte, error)

func (*EventDetails) MergeAutoscalingConfigChangedEvent

func (t *EventDetails) MergeAutoscalingConfigChangedEvent(v AutoscalingConfigChangedEvent) error

MergeAutoscalingConfigChangedEvent performs a merge with any union data inside the EventDetails, using the provided AutoscalingConfigChangedEvent

func (*EventDetails) MergeAutoscalingEndedEvent

func (t *EventDetails) MergeAutoscalingEndedEvent(v AutoscalingEndedEvent) error

MergeAutoscalingEndedEvent performs a merge with any union data inside the EventDetails, using the provided AutoscalingEndedEvent

func (*EventDetails) MergeAutoscalingStartedEvent

func (t *EventDetails) MergeAutoscalingStartedEvent(v AutoscalingStartedEvent) error

MergeAutoscalingStartedEvent performs a merge with any union data inside the EventDetails, using the provided AutoscalingStartedEvent

func (*EventDetails) MergeBranchDeletedEvent

func (t *EventDetails) MergeBranchDeletedEvent(v BranchDeletedEvent) error

MergeBranchDeletedEvent performs a merge with any union data inside the EventDetails, using the provided BranchDeletedEvent

func (*EventDetails) MergeBuildEndedEvent

func (t *EventDetails) MergeBuildEndedEvent(v BuildEndedEvent) error

MergeBuildEndedEvent performs a merge with any union data inside the EventDetails, using the provided BuildEndedEvent

func (*EventDetails) MergeBuildPlanChangedEvent

func (t *EventDetails) MergeBuildPlanChangedEvent(v BuildPlanChangedEvent) error

MergeBuildPlanChangedEvent performs a merge with any union data inside the EventDetails, using the provided BuildPlanChangedEvent

func (*EventDetails) MergeBuildStartedEvent

func (t *EventDetails) MergeBuildStartedEvent(v BuildStartedEvent) error

MergeBuildStartedEvent performs a merge with any union data inside the EventDetails, using the provided BuildStartedEvent

func (*EventDetails) MergeCommitIgnoredEvent

func (t *EventDetails) MergeCommitIgnoredEvent(v CommitIgnoredEvent) error

MergeCommitIgnoredEvent performs a merge with any union data inside the EventDetails, using the provided CommitIgnoredEvent

func (*EventDetails) MergeCronJobRunEndedEvent

func (t *EventDetails) MergeCronJobRunEndedEvent(v CronJobRunEndedEvent) error

MergeCronJobRunEndedEvent performs a merge with any union data inside the EventDetails, using the provided CronJobRunEndedEvent

func (*EventDetails) MergeCronJobRunStartedEvent

func (t *EventDetails) MergeCronJobRunStartedEvent(v CronJobRunStartedEvent) error

MergeCronJobRunStartedEvent performs a merge with any union data inside the EventDetails, using the provided CronJobRunStartedEvent

func (*EventDetails) MergeDeployEndedEvent

func (t *EventDetails) MergeDeployEndedEvent(v DeployEndedEvent) error

MergeDeployEndedEvent performs a merge with any union data inside the EventDetails, using the provided DeployEndedEvent

func (*EventDetails) MergeDeployStartedEvent

func (t *EventDetails) MergeDeployStartedEvent(v DeployStartedEvent) error

MergeDeployStartedEvent performs a merge with any union data inside the EventDetails, using the provided DeployStartedEvent

func (*EventDetails) MergeDiskCreatedEvent

func (t *EventDetails) MergeDiskCreatedEvent(v DiskCreatedEvent) error

MergeDiskCreatedEvent performs a merge with any union data inside the EventDetails, using the provided DiskCreatedEvent

func (*EventDetails) MergeDiskDeletedEvent

func (t *EventDetails) MergeDiskDeletedEvent(v DiskDeletedEvent) error

MergeDiskDeletedEvent performs a merge with any union data inside the EventDetails, using the provided DiskDeletedEvent

func (*EventDetails) MergeDiskUpdatedEvent

func (t *EventDetails) MergeDiskUpdatedEvent(v DiskUpdatedEvent) error

MergeDiskUpdatedEvent performs a merge with any union data inside the EventDetails, using the provided DiskUpdatedEvent

func (*EventDetails) MergeImagePullFailedEvent

func (t *EventDetails) MergeImagePullFailedEvent(v ImagePullFailedEvent) error

MergeImagePullFailedEvent performs a merge with any union data inside the EventDetails, using the provided ImagePullFailedEvent

func (*EventDetails) MergeInitialDeployHookEndedEvent

func (t *EventDetails) MergeInitialDeployHookEndedEvent(v InitialDeployHookEndedEvent) error

MergeInitialDeployHookEndedEvent performs a merge with any union data inside the EventDetails, using the provided InitialDeployHookEndedEvent

func (*EventDetails) MergeInitialDeployHookStartedEvent

func (t *EventDetails) MergeInitialDeployHookStartedEvent(v InitialDeployHookStartedEvent) error

MergeInitialDeployHookStartedEvent performs a merge with any union data inside the EventDetails, using the provided InitialDeployHookStartedEvent

func (*EventDetails) MergeInstanceCountChangedEvent

func (t *EventDetails) MergeInstanceCountChangedEvent(v InstanceCountChangedEvent) error

MergeInstanceCountChangedEvent performs a merge with any union data inside the EventDetails, using the provided InstanceCountChangedEvent

func (*EventDetails) MergeJobRunEndedEvent

func (t *EventDetails) MergeJobRunEndedEvent(v JobRunEndedEvent) error

MergeJobRunEndedEvent performs a merge with any union data inside the EventDetails, using the provided JobRunEndedEvent

func (*EventDetails) MergeMaintenanceEndedEvent

func (t *EventDetails) MergeMaintenanceEndedEvent(v MaintenanceEndedEvent) error

MergeMaintenanceEndedEvent performs a merge with any union data inside the EventDetails, using the provided MaintenanceEndedEvent

func (*EventDetails) MergeMaintenanceModeEnabledEvent

func (t *EventDetails) MergeMaintenanceModeEnabledEvent(v MaintenanceModeEnabledEvent) error

MergeMaintenanceModeEnabledEvent performs a merge with any union data inside the EventDetails, using the provided MaintenanceModeEnabledEvent

func (*EventDetails) MergeMaintenanceModeURIUpdatedEvent

func (t *EventDetails) MergeMaintenanceModeURIUpdatedEvent(v MaintenanceModeURIUpdatedEvent) error

MergeMaintenanceModeURIUpdatedEvent performs a merge with any union data inside the EventDetails, using the provided MaintenanceModeURIUpdatedEvent

func (*EventDetails) MergeMaintenanceStartedEvent

func (t *EventDetails) MergeMaintenanceStartedEvent(v MaintenanceStartedEvent) error

MergeMaintenanceStartedEvent performs a merge with any union data inside the EventDetails, using the provided MaintenanceStartedEvent

func (*EventDetails) MergePlanChangedEvent

func (t *EventDetails) MergePlanChangedEvent(v PlanChangedEvent) error

MergePlanChangedEvent performs a merge with any union data inside the EventDetails, using the provided PlanChangedEvent

func (*EventDetails) MergePreDeployEndedEvent

func (t *EventDetails) MergePreDeployEndedEvent(v PreDeployEndedEvent) error

MergePreDeployEndedEvent performs a merge with any union data inside the EventDetails, using the provided PreDeployEndedEvent

func (*EventDetails) MergePreDeployStartedEvent

func (t *EventDetails) MergePreDeployStartedEvent(v PreDeployStartedEvent) error

MergePreDeployStartedEvent performs a merge with any union data inside the EventDetails, using the provided PreDeployStartedEvent

func (*EventDetails) MergeServerAvailableEvent

func (t *EventDetails) MergeServerAvailableEvent(v ServerAvailableEvent) error

MergeServerAvailableEvent performs a merge with any union data inside the EventDetails, using the provided ServerAvailableEvent

func (*EventDetails) MergeServerFailedEvent

func (t *EventDetails) MergeServerFailedEvent(v ServerFailedEvent) error

MergeServerFailedEvent performs a merge with any union data inside the EventDetails, using the provided ServerFailedEvent

func (*EventDetails) MergeServerHardwareFailureEvent

func (t *EventDetails) MergeServerHardwareFailureEvent(v ServerHardwareFailureEvent) error

MergeServerHardwareFailureEvent performs a merge with any union data inside the EventDetails, using the provided ServerHardwareFailureEvent

func (*EventDetails) MergeServerRestartedEvent

func (t *EventDetails) MergeServerRestartedEvent(v ServerRestartedEvent) error

MergeServerRestartedEvent performs a merge with any union data inside the EventDetails, using the provided ServerRestartedEvent

func (*EventDetails) MergeServerUnhealthyEvent

func (t *EventDetails) MergeServerUnhealthyEvent(v ServerUnhealthyEvent) error

MergeServerUnhealthyEvent performs a merge with any union data inside the EventDetails, using the provided ServerUnhealthyEvent

func (*EventDetails) MergeServiceResumedEvent

func (t *EventDetails) MergeServiceResumedEvent(v ServiceResumedEvent) error

MergeServiceResumedEvent performs a merge with any union data inside the EventDetails, using the provided ServiceResumedEvent

func (*EventDetails) MergeServiceSuspendedEvent

func (t *EventDetails) MergeServiceSuspendedEvent(v ServiceSuspendedEvent) error

MergeServiceSuspendedEvent performs a merge with any union data inside the EventDetails, using the provided ServiceSuspendedEvent

func (*EventDetails) MergeSuspenderAddedEvent

func (t *EventDetails) MergeSuspenderAddedEvent(v SuspenderAddedEvent) error

MergeSuspenderAddedEvent performs a merge with any union data inside the EventDetails, using the provided SuspenderAddedEvent

func (*EventDetails) MergeSuspenderRemovedEvent

func (t *EventDetails) MergeSuspenderRemovedEvent(v SuspenderRemovedEvent) error

MergeSuspenderRemovedEvent performs a merge with any union data inside the EventDetails, using the provided SuspenderRemovedEvent

func (*EventDetails) MergeZeroDowntimeRedeployEndedEvent

func (t *EventDetails) MergeZeroDowntimeRedeployEndedEvent(v ZeroDowntimeRedeployEndedEvent) error

MergeZeroDowntimeRedeployEndedEvent performs a merge with any union data inside the EventDetails, using the provided ZeroDowntimeRedeployEndedEvent

func (*EventDetails) MergeZeroDowntimeRedeployStartedEvent

func (t *EventDetails) MergeZeroDowntimeRedeployStartedEvent(v ZeroDowntimeRedeployStartedEvent) error

MergeZeroDowntimeRedeployStartedEvent performs a merge with any union data inside the EventDetails, using the provided ZeroDowntimeRedeployStartedEvent

func (*EventDetails) UnmarshalJSON

func (t *EventDetails) UnmarshalJSON(b []byte) error

type EventType

type EventType string

EventType defines model for eventType.

const (
	AutoscalingConfigChanged    EventType = "autoscaling_config_changed"
	AutoscalingEnded            EventType = "autoscaling_ended"
	AutoscalingStarted          EventType = "autoscaling_started"
	BranchDeleted               EventType = "branch_deleted"
	BuildEnded                  EventType = "build_ended"
	BuildPlanChanged            EventType = "build_plan_changed"
	BuildStarted                EventType = "build_started"
	CommitIgnored               EventType = "commit_ignored"
	CronJobRunEnded             EventType = "cron_job_run_ended"
	CronJobRunStarted           EventType = "cron_job_run_started"
	DeployEnded                 EventType = "deploy_ended"
	DeployStarted               EventType = "deploy_started"
	DiskCreated                 EventType = "disk_created"
	DiskDeleted                 EventType = "disk_deleted"
	DiskUpdated                 EventType = "disk_updated"
	ImagePullFailed             EventType = "image_pull_failed"
	InitialDeployHookEnded      EventType = "initial_deploy_hook_ended"
	InitialDeployHookStarted    EventType = "initial_deploy_hook_started"
	InstanceCountChanged        EventType = "instance_count_changed"
	JobRunEnded                 EventType = "job_run_ended"
	MaintenanceEnded            EventType = "maintenance_ended"
	MaintenanceModeEnabled      EventType = "maintenance_mode_enabled"
	MaintenanceModeUriUpdated   EventType = "maintenance_mode_uri_updated"
	MaintenanceStarted          EventType = "maintenance_started"
	PlanChanged                 EventType = "plan_changed"
	PreDeployEnded              EventType = "pre_deploy_ended"
	PreDeployStarted            EventType = "pre_deploy_started"
	ServerAvailable             EventType = "server_available"
	ServerFailed                EventType = "server_failed"
	ServerHardwareFailure       EventType = "server_hardware_failure"
	ServerRestarted             EventType = "server_restarted"
	ServerUnhealthy             EventType = "server_unhealthy"
	ServiceResumed              EventType = "service_resumed"
	ServiceSuspended            EventType = "service_suspended"
	SuspenderAdded              EventType = "suspender_added"
	SuspenderRemoved            EventType = "suspender_removed"
	ZeroDowntimeRedeployEnded   EventType = "zero_downtime_redeploy_ended"
	ZeroDowntimeRedeployStarted EventType = "zero_downtime_redeploy_started"
)

Defines values for EventType.

type FailureReason

type FailureReason struct {
	Evicted         bool       `json:"evicted"`
	NonZeroExit     *int       `json:"nonZeroExit,omitempty"`
	OomKilled       *OomKilled `json:"oomKilled,omitempty"`
	TimedOutReason  *string    `json:"timedOutReason,omitempty"`
	TimedOutSeconds *int64     `json:"timedOutSeconds,omitempty"`
	Unhealthy       *string    `json:"unhealthy,omitempty"`
}

FailureReason defines model for failureReason.

type ImagePullFailedEvent

type ImagePullFailedEvent struct {
	ImageURL string `json:"imageURL"`
	Message  string `json:"message"`
}

ImagePullFailedEvent defines model for imagePullFailedEvent.

type InitialDeployHookEndedEvent

type InitialDeployHookEndedEvent struct {
	DeployId string `json:"deployId"`
}

InitialDeployHookEndedEvent defines model for initialDeployHookEndedEvent.

type InitialDeployHookStartedEvent

type InitialDeployHookStartedEvent struct {
	DeployId string `json:"deployId"`
}

InitialDeployHookStartedEvent defines model for initialDeployHookStartedEvent.

type InstanceCountChangedEvent

type InstanceCountChangedEvent struct {
	FromInstances int `json:"fromInstances"`
	ToInstances   int `json:"toInstances"`
}

InstanceCountChangedEvent defines model for instanceCountChangedEvent.

type JobRunEndedEvent

type JobRunEndedEvent struct {
	JobId  externalRef4.JobId     `json:"jobId"`
	Reason *FailureReason         `json:"reason,omitempty"`
	Status externalRef4.JobStatus `json:"status"`
}

JobRunEndedEvent defines model for jobRunEndedEvent.

type MaintenanceEndedEvent

type MaintenanceEndedEvent = map[string]interface{}

MaintenanceEndedEvent defines model for maintenanceEndedEvent.

type MaintenanceModeEnabledEvent

type MaintenanceModeEnabledEvent struct {
	Enabled bool `json:"enabled"`
}

MaintenanceModeEnabledEvent defines model for maintenanceModeEnabledEvent.

type MaintenanceModeURIUpdatedEvent

type MaintenanceModeURIUpdatedEvent struct {
	FromURI string `json:"fromURI"`
	ToURI   string `json:"toURI"`
}

MaintenanceModeURIUpdatedEvent defines model for maintenanceModeURIUpdatedEvent.

type MaintenanceStartedEvent

type MaintenanceStartedEvent struct {
	Trigger MaintenanceTrigger `json:"trigger"`
}

MaintenanceStartedEvent defines model for maintenanceStartedEvent.

type MaintenanceTrigger

type MaintenanceTrigger struct {
	// Manual Maintenance was triggered manually
	Manual bool `json:"manual"`

	// StartedByRender Maintenance was triggered by Render
	StartedByRender bool `json:"startedByRender"`

	// User User who triggered the action
	User *User `json:"user,omitempty"`
}

MaintenanceTrigger defines model for maintenanceTrigger.

type OomKilled

type OomKilled struct {
	MemoryLimit string `json:"memoryLimit"`
}

OomKilled defines model for oomKilled.

type PlanChangedEvent

type PlanChangedEvent struct {
	From string `json:"from"`
	To   string `json:"to"`
}

PlanChangedEvent defines model for planChangedEvent.

type PreDeployEndedEvent

type PreDeployEndedEvent struct {
	DeployCommandExecutionId string               `json:"deployCommandExecutionId"`
	DeployId                 string               `json:"deployId"`
	Reason                   BuildDeployEndReason `json:"reason"`
	Status                   int                  `json:"status"`
}

PreDeployEndedEvent defines model for preDeployEndedEvent.

type PreDeployStartedEvent

type PreDeployStartedEvent struct {
	DeployCommandExecutionId string `json:"deployCommandExecutionId"`
	DeployId                 string `json:"deployId"`
}

PreDeployStartedEvent defines model for preDeployStartedEvent.

type ServerAvailableEvent

type ServerAvailableEvent = map[string]interface{}

ServerAvailableEvent defines model for serverAvailableEvent.

type ServerFailedEvent

type ServerFailedEvent struct {
	Reason *FailureReason `json:"reason,omitempty"`
}

ServerFailedEvent defines model for serverFailedEvent.

type ServerHardwareFailureEvent

type ServerHardwareFailureEvent = map[string]interface{}

ServerHardwareFailureEvent defines model for serverHardwareFailureEvent.

type ServerRestartedEvent

type ServerRestartedEvent struct {
	TriggeredByUser *string `json:"triggeredByUser"`
}

ServerRestartedEvent defines model for serverRestartedEvent.

type ServerUnhealthyEvent

type ServerUnhealthyEvent = map[string]interface{}

ServerUnhealthyEvent defines model for serverUnhealthyEvent.

type ServiceEvent

type ServiceEvent struct {
	Details   EventDetails `json:"details"`
	Id        string       `json:"id"`
	ServiceId string       `json:"serviceId"`
	Timestamp time.Time    `json:"timestamp"`
	Type      EventType    `json:"type"`
}

ServiceEvent defines model for serviceEvent.

type ServiceResumedEvent

type ServiceResumedEvent = map[string]interface{}

ServiceResumedEvent defines model for serviceResumedEvent.

type ServiceSuspendedEvent

type ServiceSuspendedEvent = map[string]interface{}

ServiceSuspendedEvent defines model for serviceSuspendedEvent.

type SuspenderAddedEvent

type SuspenderAddedEvent struct {
	Actor string `json:"actor"`

	// SuspendedByUser User who triggered the action
	SuspendedByUser *User `json:"suspendedByUser,omitempty"`
}

SuspenderAddedEvent defines model for suspenderAddedEvent.

type SuspenderRemovedEvent

type SuspenderRemovedEvent struct {
	Actor string `json:"actor"`

	// ResumedByUser User who triggered the action
	ResumedByUser *User `json:"resumedByUser,omitempty"`
}

SuspenderRemovedEvent defines model for suspenderRemovedEvent.

type User

type User struct {
	Email string `json:"email"`
	Id    string `json:"id"`
}

User User who triggered the action

type ZeroDowntimeRedeployEndedEvent

type ZeroDowntimeRedeployEndedEvent = map[string]interface{}

ZeroDowntimeRedeployEndedEvent defines model for zeroDowntimeRedeployEndedEvent.

type ZeroDowntimeRedeployStartedEvent

type ZeroDowntimeRedeployStartedEvent struct {
	Trigger string `json:"trigger"`
}

ZeroDowntimeRedeployStartedEvent defines model for zeroDowntimeRedeployStartedEvent.

Jump to

Keyboard shortcuts

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