payload

package
v0.0.0-...-a2cc7b8 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GerritChange

type GerritChange struct {
	Project string `json:"project"`
	Branch  string `json:"branch"`
	ID      string `json:"id"`
}

type GerritChangedFile

type GerritChangedFile struct {
	FileName string
	Content  string
}

type GerritEvent

type GerritEvent struct {
	Change   *GerritChange   `json:"change"`
	Type     GerritEventType `json:"type"`
	PatchSet *GerritPatchSet `json:"patchSet"`
}

GerritEvent is the API message for Gerrit webhook.

type GerritEventType

type GerritEventType string
const (
	GerritEventChangeMerged GerritEventType = "change-merged"
)

type GerritFileChangeMessage

type GerritFileChangeMessage struct {
	Files []*GerritChangedFile
}

type GerritPatchSet

type GerritPatchSet struct {
	Revision string `json:"revision"`
}

type GitHubAuthor

type GitHubAuthor struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

type GitHubCommit

type GitHubCommit struct {
	Message   string       `json:"message"`
	Timestamp string       `json:"timestamp"`
	Author    GitHubAuthor `json:"author"`
}

type GitHubPushEvent

type GitHubPushEvent struct {
	Ref        string       `json:"ref"`
	Deleted    bool         `json:"deleted"`
	Compare    string       `json:"compare"`
	HeadCommit GitHubCommit `json:"head_commit"`
	Sender     struct {
		Login string `json:"login"`
	} `json:"sender"`
}

type IssueCreate

type IssueCreate struct {
	// Related fields
	ProjectKey  string `json:"projectKey"`
	Database    string `json:"database"`
	Environment string `json:"environment"`

	// Domain specific fields
	Name          string        `json:"name"`
	Description   string        `json:"description"`
	MigrationType MigrationType `json:"migrationType"`
	Statement     string        `json:"statement"`
	SchemaVersion string        `json:"schemaVersion"`
}

IssueCreate is the API message for creating a issue.

type IssueType

type IssueType string

IssueType is the type of an issue.

type MigrationType

type MigrationType string

MigrationType is the type of a migration.

const (
	// Used for DDL change including CREATE DATABASE.
	Migrate MigrationType = "MIGRATE"
	// Used for DML change.
	Data MigrationType = "DATA"
)

Jump to

Keyboard shortcuts

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