resource

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAppConfigNotFound = errors.New("appConfig instance not found")
View Source
var ErrChartVersionNotFound = errors.New("chart version not found")
View Source
var ErrEnvironmentNotFound = errors.New("environment instance not found")
View Source
var ErrLifecycleNotFound = errors.New("lifecycle instance not found")
View Source
var ErrUserNotFound = errors.New("app instance not found")

Functions

func GetAppConfigByEnvId

func GetAppConfigByEnvId(appId *string, envId *string, db *gorm.DB) (*pb.AppConfigORM, error)

GetAppConfigByEnvId fetches an appConfig instance from the database by environment id.

func GetAppConfigByLifecycleId

func GetAppConfigByLifecycleId(appId *string, lifecycleId *string, db *gorm.DB) (*pb.AppConfigORM, error)

GetAppConfigByLifecycleId fetches an appConfig instance from the database by lifecycle id.

func GetAppInstanceById

func GetAppInstanceById(id *atlasresource.Identifier, db *gorm.DB) (*pb.ApplicationInstanceORM, error)

GetAppInstanceById fetches an app instance from the database by id.

func GetChartVersionById

func GetChartVersionById(id *string, db *gorm.DB) (*pb.ChartVersionORM, error)

GetChartVersionById fetches a chart version from the database by id.

func GetEnvrionmentById

func GetEnvrionmentById(id *string, db *gorm.DB) (*pb.EnvironmentORM, error)

GetEnvrionmentById fetches an environment instance from the database by id.

func GetLifecycleById

func GetLifecycleById(id *string, db *gorm.DB) (*pb.LifecycleORM, error)

GetLifecycleById fetches a lifecycle instance from the database by id.

Types

This section is empty.

Jump to

Keyboard shortcuts

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