controllers

package
v0.0.0-...-87773b3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDatastore

type AppDatastore interface {
	CreateNullApplication(ctx context.Context, nullApplication *appmodels.NullApplication) error
	CreateNullApplicationService(ctx context.Context, nullApplication *appmodels.NullApplicationService) error
	GetApplicationsByOrgID(ctx context.Context, orgId int64) ([]*appmodels.NullApplication, error)
	GetApplicationByID(ctx context.Context, id int64) (*appmodels.NullApplication, error)
	GetApplicationServiceByAppID(ctx context.Context, nullApplicationID int64) ([]*appmodels.NullApplicationService, error)

	GetAllAppSvc(ctx context.Context) ([]*appmodels.NullApplicationService, error)
}

type ApplicationController

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

func NewApplicationController

func NewApplicationController(kube dynamic.Interface, istio *versionedclient.Clientset, kcs *kube.Clientset, appDatastore AppDatastore, userContoller *controllers.UserController, containerBuildingService pb.ContainerServiceClient, logger *zap.Logger) *ApplicationController

func (ApplicationController) AppGET

AppGET godoc

@Summary	Get all applications in the org
@Schemes
@Description	Get all applications in the org
@Tags			example
@Accept			json
@Produce		json
@Success		200	{string}	Helloworld
@Router			/apps/ [get]

func (ApplicationController) AppPOST

AppPOST godoc

@Summary	Create an application
@Schemes
@Description	create an application
@Tags			example
@Accept			json
@Produce		json
@Success		200	{string}	Helloworld
@Router			/apps/ [post]

func (ApplicationController) GetApplication

func (ApplicationController) GetApplications

func (a ApplicationController) GetApplications(ctx context.Context, orgId int64) ([]*appmodels.NullApplication, error)

func (*ApplicationController) RegisterRoutes

func (a *ApplicationController) RegisterRoutes(router *mux.Router)

Jump to

Keyboard shortcuts

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