notifier

package
v0.0.0-...-0c1943d Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendRevisionUndeployAck

func SendRevisionUndeployAck(apiUUID string, revisionUUID string, environment string)

SendRevisionUndeployAck - send the undeployed revision acknowledgement to control plane

func SendRevisionUpdateAck

func SendRevisionUpdateAck(deployedRevisionList []*DeployedAPIRevision)

SendRevisionUpdateAck sends succeeded revision deployment acknowledgement to the control plane

Types

type DeployedAPIRevision

type DeployedAPIRevision struct {
	APIID      string            `json:"apiId"`
	RevisionID int               `json:"revisionId"`
	EnvInfo    []DeployedEnvInfo `json:"envInfo"`
}

DeployedAPIRevision represents Information of deployed API revision data

func UpdateDeployedRevisions

func UpdateDeployedRevisions(apiID string, revisionID int, envs []string, vhost string) *DeployedAPIRevision

UpdateDeployedRevisions create the DeployedAPIRevision object

type DeployedEnvInfo

type DeployedEnvInfo struct {
	Name  string `json:"name"`
	VHost string `json:"vhost"`
}

DeployedEnvInfo represents env Information of deployed API revision

type UnDeployedAPIRevision

type UnDeployedAPIRevision struct {
	APIUUID      string `json:"apiUUID"`
	RevisionUUID string `json:"revisionUUID"`
	Environment  string `json:"environment"`
}

UnDeployedAPIRevision info

Jump to

Keyboard shortcuts

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