Documentation
¶
Index ¶
- type ActionPatchDeploymentConfigInput
- type AuditEventCommandCreateInput
- type AuditEventCreateInput
- type AuditEventSourceCreateInput
- type AuditEventSourceDetailsInput
- type AuditEventType
- type BotPlatform
- type DeploymentFailureInput
- type NotificationPatchDeploymentConfigInput
- type PatchDeploymentConfigInput
- type SourceBindingPatchDeploymentConfigInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionPatchDeploymentConfigInput ¶
type ActionPatchDeploymentConfigInput struct {
Name string `json:"name"`
Enabled *bool `json:"enabled"`
}
ActionPatchDeploymentConfigInput contains action's updatable fields.
type AuditEventCommandCreateInput ¶
type AuditEventCommandCreateInput struct {
PlatformUser string `json:"platformUser"`
Channel string `json:"channel"`
BotPlatform *BotPlatform `json:"botPlatform"`
Command string `json:"command"`
}
AuditEventCommandCreateInput contains create input specific to executor events
type AuditEventCreateInput ¶
type AuditEventCreateInput struct {
Type AuditEventType `json:"type"`
CreatedAt string `json:"createdAt"`
DeploymentID string `json:"deploymentId"`
PluginName string `json:"pluginName"`
SourceEventEmitted *AuditEventSourceCreateInput `json:"sourceEventEmitted"`
CommandExecuted *AuditEventCommandCreateInput `json:"commandExecuted"`
}
AuditEventCreateInput contains generic create input
type AuditEventSourceCreateInput ¶
type AuditEventSourceCreateInput struct {
Event string `json:"event"`
Source AuditEventSourceDetailsInput `json:"source"`
}
AuditEventSourceCreateInput contains create input specific to source events
type AuditEventType ¶
type AuditEventType string
AuditEventType is the type of audit events
const ( // AuditEventTypeCommandExecuted is the executor audit event type AuditEventTypeCommandExecuted AuditEventType = "COMMAND_EXECUTED" // AuditEventTypeSourceEventEmitted is the source audit event type AuditEventTypeSourceEventEmitted AuditEventType = "SOURCE_EVENT_EMITTED" )
type BotPlatform ¶
type BotPlatform string
BotPlatform are the supported bot platforms
const ( // BotPlatformSlack is the slack platform BotPlatformSlack BotPlatform = "SLACK" // BotPlatformDiscord is the discord platform BotPlatformDiscord BotPlatform = "DISCORD" // BotPlatformMattermost is the mattermost platform BotPlatformMattermost BotPlatform = "MATTERMOST" // BotPlatformMsTeams is the teams platform BotPlatformMsTeams BotPlatform = "MS_TEAMS" // BotPlatformUnknown is the unknown platform BotPlatformUnknown BotPlatform = "UNKNOWN" )
func NewBotPlatform ¶
func NewBotPlatform(s string) *BotPlatform
NewBotPlatform creates new BotPlatform from string
type DeploymentFailureInput ¶
type DeploymentFailureInput struct {
// ResourceVersion is the deployment version that we want to alter.
ResourceVersion int `json:"resourceVersion"`
// Message is a human-readable message describing the deployment failure.
Message string `json:"message"`
}
DeploymentFailureInput represents the input data structure for reporting a deployment failure.
type NotificationPatchDeploymentConfigInput ¶
type NotificationPatchDeploymentConfigInput struct {
CommunicationGroupName string `json:"communicationGroupName"`
Platform BotPlatform `json:"platform"`
ChannelAlias string `json:"channelAlias"`
Disabled bool `json:"disabled"`
}
NotificationPatchDeploymentConfigInput contains patch input specific to notifications
type PatchDeploymentConfigInput ¶
type PatchDeploymentConfigInput struct {
ResourceVersion int `json:"resourceVersion"`
Notification *NotificationPatchDeploymentConfigInput `json:"notification"`
SourceBinding *SourceBindingPatchDeploymentConfigInput `json:"sourceBinding"`
Action *ActionPatchDeploymentConfigInput `json:"action"`
}
PatchDeploymentConfigInput contains patch input specific to deployments
type SourceBindingPatchDeploymentConfigInput ¶
type SourceBindingPatchDeploymentConfigInput struct {
CommunicationGroupName string `json:"communicationGroupName"`
Platform BotPlatform `json:"platform"`
ChannelAlias string `json:"channelAlias"`
SourceBindings []string `json:"sourceBindings"`
}
SourceBindingPatchDeploymentConfigInput contains patch input specific to source bindings