Documentation ¶
Index ¶
- func DeleteConfig(c pb.ContextBoxServiceClient, id string, idType pb.IdType) error
- func DeleteConfigFromDB(c pb.ContextBoxServiceClient, id string, idType pb.IdType) 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
- type State
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 ¶
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