Documentation
¶
Index ¶
- Variables
- func App(config *protoform.Config) *buffalo.App
- func HomeHandler(c buffalo.Context) error
- func SetVersion(c buffalo.Context)
- type BlackducksResource
- func (v BlackducksResource) ChangeState(c buffalo.Context) error
- func (v BlackducksResource) Create(c buffalo.Context) error
- func (v BlackducksResource) Destroy(c buffalo.Context) error
- func (v BlackducksResource) Edit(c buffalo.Context) error
- func (v BlackducksResource) List(c buffalo.Context) error
- func (v BlackducksResource) New(c buffalo.Context) error
- func (v BlackducksResource) Show(c buffalo.Context) error
- func (v BlackducksResource) Update(c buffalo.Context) error
Constants ¶
This section is empty.
Variables ¶
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".
var T *i18n.Translator
T ....
Functions ¶
func 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 ¶
HomeHandler is a default handler to serve up a home page.
func SetVersion ¶
SetVersion will set the Synopsys Operator version
Types ¶
type BlackducksResource ¶
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 ¶
func (v BlackducksResource) Create(c buffalo.Context) error
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 ¶
func (v BlackducksResource) Edit(c buffalo.Context) error
Edit renders a edit form for a Blackduck. This function is mapped to the path GET /blackducks/{blackduck_id}/edit
func (BlackducksResource) List ¶
func (v BlackducksResource) List(c buffalo.Context) error
List gets all Hubs. This function is mapped to the path GET /blackducks
func (BlackducksResource) New ¶
func (v BlackducksResource) New(c buffalo.Context) error
New renders the form for creating a new Blackduck. This function is mapped to the path GET /blackducks/new