models

package
v0.3.0 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

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"`
	Paths         []string `json:"path"`
	IgnorePaths   []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(p *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