common

package module
v0.0.0-...-d7d967f Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildParameters

type BuildParameters struct {
	CommitHash  string `json:"commit-hash"`
	Blocks      string `json:"blocks"`
	Genesis     string `json:"genesis"`
	Integration string `json:"integration"`
}

Contains the parameters for the CircleCI build json

type CircleApiPayload

type CircleApiPayload struct {
	Branch          string          `json:"branch"`
	BuildParameters BuildParameters `json:"parameters"`
}

Structure used to generate the json payload for the CircleCI api call

type Comment

type Comment struct {
	Body string `json:"body"`
}

The fields corresponding to the GitHub comment object

type GithubEventPayload

type GithubEventPayload struct {
	Issue   Issue   `json:"issue"`
	Comment Comment `json:"comment"`
	Repo    Repo    `json:"repository"`
}

Structure used to unmarshal the event payload received from GitHub

type Issue

type Issue struct {
	Number int `json:"number"`
	Pr     Pr  `json:"pull_request,omitempty"`
}

The fields corresponding to the GitHub Issue object

type Owner

type Owner struct {
	Login string `json:"login"`
}

The fields corresponding to the GitHub Owner object

type Pr

type Pr struct {
	Url string `json:"url,omitempty"`
}

The fields corresponding to the GitHub Pr object

type Repo

type Repo struct {
	Name  string `json:"name"`
	Owner Owner  `json:"owner"`
}

The fields corresponding to the GitHub Repo object

Jump to

Keyboard shortcuts

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