cbox

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteConfig

func DeleteConfig(c pb.ContextBoxServiceClient, id string, idType pb.IdType) error

DeleteConfig sets the manifest to null so that the next invocation of the workflow for this config destroys the previous build infrastructure.

func DeleteConfigFromDB

func DeleteConfigFromDB(c pb.ContextBoxServiceClient, id string, idType pb.IdType) error

DeleteConfigFromDB deletes the config from the mongoDB database.

func GetAllConfigs

GetAllConfigs calls Content-box gRPC server and returns all configs from the mongoDB database

func GetConfigBuilder

func GetConfigBuilder(c pb.ContextBoxServiceClient) (*pb.GetConfigResponse, error)

GetConfigBuilder gets config from queueBuilder in which are available configs for Builder

func GetConfigScheduler

func GetConfigScheduler(c pb.ContextBoxServiceClient) (*pb.GetConfigResponse, error)

GetConfigScheduler gets config from queueScheduler in which are available configs for Scheduler

func SaveConfigBuilder

func SaveConfigBuilder(c pb.ContextBoxServiceClient, req *pb.SaveConfigRequest) error

SaveConfigBuilder saves config from Builder

func SaveConfigFrontEnd

func SaveConfigFrontEnd(c pb.ContextBoxServiceClient, req *pb.SaveConfigRequest) (string, error)

SaveConfigFrontEnd calls Content-box gRPC server and saves configuration to the database A new config file with Id will be created if ID is empty if successful, returns id of the saved config, error and empty string otherwise

func SaveConfigScheduler

func SaveConfigScheduler(c pb.ContextBoxServiceClient, req *pb.SaveConfigRequest) error

SaveConfigScheduler saves config from Scheduler

Types

type State

type State string

Jump to

Keyboard shortcuts

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