applications

package
v0.0.99 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: UPL-1.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Applications []Application
)

Applications is the collection of applications

Functions

func CreateNewApplication

func CreateNewApplication(w http.ResponseWriter, r *http.Request)

CreateNewApplication creates a new application

func DeleteApplication

func DeleteApplication(w http.ResponseWriter, r *http.Request)

DeleteApplication deletes an application

func Init

func Init(listers controller.Listers)

Init sets up sample data for testing purposes

func ReturnAllApplications

func ReturnAllApplications(w http.ResponseWriter, r *http.Request)

ReturnAllApplications returns a list of all of the applications

func ReturnSingleApplication

func ReturnSingleApplication(w http.ResponseWriter, r *http.Request)

ReturnSingleApplication returns a single application

func UpdateApplication

func UpdateApplication(w http.ResponseWriter, r *http.Request)

UpdateApplication updates an existing application

Types

type Application

type Application struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Model       string `json:"model"`
	Binding     string `json:"binding"`
	Status      string `json:"status"`
}

Application represents an application in Verrazzano

type ModelFinder

type ModelFinder struct {
	Model        *v1beta1.VerrazzanoModel
	BindingMatch bool
}

ModelFinder keeps track of matching models.

Jump to

Keyboard shortcuts

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