cbox

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteConfig

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, req *pb.DeleteConfigRequest) 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 SaveConfigOperator added in v0.4.1

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

SaveConfigOperator 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

func SaveWorkflowState added in v0.2.2

func SaveWorkflowState(c pb.ContextBoxServiceClient, req *pb.SaveWorkflowStateRequest) error

SaveWorkflowState update the workflow state for a config.

func UpdateNodepoolCount added in v0.2.2

Types

type State

type State string

Jump to

Keyboard shortcuts

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