controllers

package
v0.0.0-...-718b947 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocsController

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

func NewDocsController

func NewDocsController(
	releasesRepo bhrelsrepo.ReleasesRepository,
	releaseVersionsRepo bhrelsrepo.ReleaseVersionsRepository,
	stemcellsRepo bhstemsrepo.StemcellsRepository,
	logger boshlog.Logger,
) DocsController

func (DocsController) Page

func (c DocsController) Page(r martrend.Render, params mart.Params)

type Factory

type Factory struct {
	HomeController HomeController
	DocsController DocsController

	ReleasesController        ReleasesController
	ReleaseTarballsController ReleaseTarballsController

	StemcellsController StemcellsController

	JobsController     JobsController
	PackagesController PackagesController
}

func NewFactory

func NewFactory(r FactoryRepos, runner boshsys.CmdRunner, logger boshlog.Logger) (Factory, error)

type FactoryRepos

type FactoryRepos interface {
	ReleasesRepo() bhrelsrepo.ReleasesRepository
	ReleaseVersionsRepo() bhrelsrepo.ReleaseVersionsRepository
	JobsRepo() bhjobsrepo.JobsRepository

	S3StemcellsRepo() bhstemsrepo.S3StemcellsRepository
	StemcellsRepo() bhstemsrepo.StemcellsRepository
}

type HomeController

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

func NewHomeController

func NewHomeController(
	releasesRepo bhrelsrepo.ReleasesRepository,
	stemcellsRepo bhstemsrepo.StemcellsRepository,
	logger boshlog.Logger,
) HomeController

func (HomeController) Home

func (c HomeController) Home(r martrend.Render)

type JobsController

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

func NewJobsController

func NewJobsController(
	releasesRepo bhrelsrepo.ReleasesRepository,
	releaseVersionsRepo bhrelsrepo.ReleaseVersionsRepository,
	jobsRepo bhjobsrepo.JobsRepository,
	logger boshlog.Logger,
) JobsController

func (JobsController) Show

func (c JobsController) Show(req *http.Request, r martrend.Render, params mart.Params)

type PackagesController

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

func NewPackagesController

func NewPackagesController(
	releasesRepo bhrelsrepo.ReleasesRepository,
	releaseVersionsRepo bhrelsrepo.ReleaseVersionsRepository,
	runner boshsys.CmdRunner,
	logger boshlog.Logger,
) PackagesController

func (PackagesController) Show

func (c PackagesController) Show(req *http.Request, r martrend.Render, params mart.Params)

type ReleaseTarballsController

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

func NewReleaseTarballsController

func NewReleaseTarballsController(
	releasesRepo bhrelsrepo.ReleasesRepository,
	logger boshlog.Logger,
) ReleaseTarballsController

func (ReleaseTarballsController) Download

func (c ReleaseTarballsController) Download(req *http.Request, r martrend.Render, params mart.Params)

Show uses '_1' param as release source and 'v' param as release version

type ReleasesController

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

func NewReleasesController

func NewReleasesController(
	releasesRepo bhrelsrepo.ReleasesRepository,
	releaseVersionsRepo bhrelsrepo.ReleaseVersionsRepository,
	jobsRepo bhjobsrepo.JobsRepository,
	stemcellsRepo bhstemsrepo.StemcellsRepository,
	runner boshsys.CmdRunner,
	logger boshlog.Logger,
) ReleasesController

func (ReleasesController) APIV1Index

func (c ReleasesController) APIV1Index(req *http.Request, r martrend.Render, params mart.Params)

func (ReleasesController) Index

func (c ReleasesController) Index(r martrend.Render)

func (ReleasesController) Show

func (c ReleasesController) Show(req *http.Request, r martrend.Render, params mart.Params)

Show uses '_1' param as release source and 'version' param as release version

type StemcellsController

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

func NewStemcellsController

func NewStemcellsController(
	stemcellsRepo bhstemsrepo.StemcellsRepository,
	logger boshlog.Logger,
) StemcellsController

func (StemcellsController) APIV1Index

func (c StemcellsController) APIV1Index(req *http.Request, r martrend.Render, params mart.Params)

func (StemcellsController) Download

func (c StemcellsController) Download(req *http.Request, r martrend.Render, params mart.Params)

Show uses '_1' param as stemcell name and 'v' param as release version

func (StemcellsController) Index

func (c StemcellsController) Index(req *http.Request, r martrend.Render, params mart.Params)

Jump to

Keyboard shortcuts

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