app_serve_app

package
v0.0.0-...-f22f8d3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToPbAppServeApp

func ConvertToPbAppServeApp(asa model.AppServeApp) *pb.AppServeApp

func ConvertToPbAppServeAppTask

func ConvertToPbAppServeAppTask(task model.AppServeAppTask) *pb.AppServeAppTask

Types

type AsaAccessor

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

Accessor is an accessor to postgreSQL to query data.

func New

func New(db *gorm.DB) *AsaAccessor

New returns new accessor's ptr.

func (*AsaAccessor) Create

func (x *AsaAccessor) Create(contractId string, app *pb.AppServeApp, task *pb.AppServeAppTask) (uuid.UUID, uuid.UUID, error)

Create creates a new appServeApp in database.

func (*AsaAccessor) GetAppServeApp

func (x *AsaAccessor) GetAppServeApp(id uuid.UUID) (*pb.AppServeAppCombined, error)

func (*AsaAccessor) GetAppServeApps

func (x *AsaAccessor) GetAppServeApps(contractId string, showAll bool) ([]*pb.AppServeApp, error)

func (*AsaAccessor) Update

func (x *AsaAccessor) Update(appServeAppId uuid.UUID, task *pb.AppServeAppTask) (uuid.UUID, error)

Update creates new appServeApp Task for existing appServeApp.

func (*AsaAccessor) UpdateEndpoint

func (x *AsaAccessor) UpdateEndpoint(id uuid.UUID, taskId uuid.UUID, endpoint string, previewEndpoint string, helmRevision int32) error

func (*AsaAccessor) UpdateStatus

func (x *AsaAccessor) UpdateStatus(taskId uuid.UUID, status string, output string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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