models

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: MIT Imports: 3 Imported by: 0 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitObject added in v0.2.1

type CommitObject struct {
	ID         string
	OID        string
	PushedDate githubv4.DateTime
	Message    string
	Author     struct {
		User struct {
			Login string
		}
	}
}

CommitObject represents the GraphQL commit node. https://developer.github.com/v4/object/commit/

type Metadata

type Metadata []*MetadataField

Metadata output from get/put steps.

func (*Metadata) Add added in v0.2.1

func (m *Metadata) Add(name, value string)

Add a MetadataField to the Metadata.

type MetadataField added in v0.2.1

type MetadataField struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

MetadataField ...

type PullRequest

type PullRequest struct {
	*PullRequestObject
	Tip *CommitObject
}

PullRequest represents a pull request and includes the tip (commit).

type PullRequestObject added in v0.2.1

type PullRequestObject struct {
	ID          string
	Number      int
	Title       string
	URL         string
	BaseRefName string
	HeadRefName string
}

PullRequestObject represents the GraphQL commit node. https://developer.github.com/v4/object/commit/

type Source

type Source struct {
	Repository    string `json:"repository"`
	AccessToken   string `json:"access_token"`
	Path          string `json:"path"`
	IgnorePath    string `json:"ignore_path"`
	DisableCISkip string `json:"disable_ci_skip"`
}

Source represents the configuration for the resource.

func (*Source) Validate

func (s *Source) Validate() error

Validate the source configuration.

type Version

type Version struct {
	PR         string    `json:"pr"`
	Commit     string    `json:"commit"`
	PushedDate time.Time `json:"pushed,omitempty"`
}

Version communicated with Concourse. ID is the Github Global ID.

func NewVersion added in v0.2.1

func NewVersion(c *PullRequest) Version

NewVersion constructs a new Version.

Jump to

Keyboard shortcuts

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