getresource

package
v0.0.0-...-7fe2d08 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConfigNotFound = errors.New("could not find config")
View Source
var ErrResourceNotFound = errors.New("could not find resource")

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(logger lager.Logger, clientFactory web.ClientFactory, template *template.Template) *Handler

func (*Handler) ServeHTTP

func (handler *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) error

type TemplateData

type TemplateData struct {
	Resource atc.Resource
	Versions []VersionedResourceWithInputsAndOutputs

	GroupStates  []group.State
	PipelineName string
	TeamName     string

	Pagination concourse.Pagination
}

func FetchTemplateData

func FetchTemplateData(
	pipelineName string,
	resourceName string,
	team concourse.Team,
	page concourse.Page,
) (TemplateData, error)

type VersionedResourceWithInputsAndOutputs

type VersionedResourceWithInputsAndOutputs struct {
	VersionedResource atc.VersionedResource
	InputsTo          map[string][]atc.Build
	OutputsOf         map[string][]atc.Build
}

Jump to

Keyboard shortcuts

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