actions

package
v0.0.0-...-5d42de7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ENV = envy.Get("GO_ENV", "development")

ENV is used to help switch settings based on where the application is being run. Default is "development".

T ....

Functions

func App

func App(config *protoform.Config) *buffalo.App

App is where all routes and middleware for buffalo should be defined. This is the nerve center of your application.

Routing, middleware, groups, etc... are declared TOP -> DOWN. This means if you add a middleware to `app` *after* declaring a group, that group will NOT have that new middleware. The same is true of resource declarations as well.

It also means that routes are checked in the order they are declared. `ServeFiles` is a CATCH-ALL route, so it should always be placed last in the route declarations, as it will prevent routes declared after it to never be called.

func HomeHandler

func HomeHandler(c buffalo.Context) error

HomeHandler is a default handler to serve up a home page.

func SetVersion

func SetVersion(c buffalo.Context)

SetVersion will set the Synopsys Operator version

Types

type BlackducksResource

type BlackducksResource struct {
	buffalo.Resource
	// contains filtered or unexported fields
}

BlackducksResource is the resource for the Blackduck model

func NewBlackduckResource

func NewBlackduckResource(config *protoform.Config, kubeConfig *rest.Config) (*BlackducksResource, error)

NewBlackduckResource will instantiate the Black Duck Resource

func (BlackducksResource) ChangeState

func (v BlackducksResource) ChangeState(c buffalo.Context) error

ChangeState Used to change state of a Blackduck instance POST /blackducks/{blackduck_id}/state

func (BlackducksResource) Create

Create adds a Blackduck to the DB. This function is mapped to the path POST /blackducks

func (BlackducksResource) Destroy

func (v BlackducksResource) Destroy(c buffalo.Context) error

Destroy deletes a Blackduck from the DB. This function is mapped to the path DELETE /blackducks/{blackduck_id}

func (BlackducksResource) Edit

Edit renders a edit form for a Blackduck. This function is mapped to the path GET /blackducks/{blackduck_id}/edit

func (BlackducksResource) List

List gets all Hubs. This function is mapped to the path GET /blackducks

func (BlackducksResource) New

New renders the form for creating a new Blackduck. This function is mapped to the path GET /blackducks/new

func (BlackducksResource) Show

Show gets the data for one Blackduck. This function is mapped to the path GET /blackducks/{blackduck_id}

func (BlackducksResource) Update

Update changes a Blackduck in the DB. This function is mapped to the path PUT /blackducks/{blackduck_id}

Jump to

Keyboard shortcuts

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