Documentation ¶
Index ¶
- func DeleteConfig(c pb.ContextBoxServiceClient, req *pb.DeleteConfigRequest) error
- func DeleteConfigFromDB(c pb.ContextBoxServiceClient, req *pb.DeleteConfigRequest) error
- func GetAllConfigs(c pb.ContextBoxServiceClient) (*pb.GetAllConfigsResponse, error)
- func GetConfigBuilder(c pb.ContextBoxServiceClient) (*pb.GetConfigResponse, error)
- func GetConfigScheduler(c pb.ContextBoxServiceClient) (*pb.GetConfigResponse, error)
- func SaveConfigBuilder(c pb.ContextBoxServiceClient, req *pb.SaveConfigRequest) error
- func SaveConfigFrontEnd(c pb.ContextBoxServiceClient, req *pb.SaveConfigRequest) (string, error)
- func SaveConfigScheduler(c pb.ContextBoxServiceClient, req *pb.SaveConfigRequest) error
- func SaveWorkflowState(c pb.ContextBoxServiceClient, req *pb.SaveWorkflowStateRequest) error
- func UpdateNodepoolCount(c pb.ContextBoxServiceClient, req *pb.UpdateNodepoolRequest) (*pb.UpdateNodepoolResponse, error)
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteConfig ¶
func DeleteConfig(c pb.ContextBoxServiceClient, req *pb.DeleteConfigRequest) 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, req *pb.DeleteConfigRequest) error
DeleteConfigFromDB deletes the config from the mongoDB database.
func GetAllConfigs ¶
func GetAllConfigs(c pb.ContextBoxServiceClient) (*pb.GetAllConfigsResponse, error)
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
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
func UpdateNodepoolCount(c pb.ContextBoxServiceClient, req *pb.UpdateNodepoolRequest) (*pb.UpdateNodepoolResponse, error)