Package utils
- Constants
- func AssertFleetAndStoreType(fleetType, storeType string)
- func CreateChariotMessage(projectID, id, filter, configMap string) *chariotClientApi.ChariotMessage
- func InvokeChariot(ctx context.Context, topLevelProjectID, chariotTopic string, message *chariotClientApi.ChariotMessage) error
- type EyedeCommand
- func New() *EyedeCommand
- func (e EyedeCommand) Exec(name, shortUsage, shortHelp, foremanProjectID, topic, edgeAPIURL string, dryRun bool, callback func(ctx context.Context, db *sql.DB, projectID, foremanProjectID, topic, edgeAPIURL string, dryRun bool) bool, fs *flag.FlagSet) *ffcli.Command
- func (e *EyedeCommand) SetDBConnection(db *sql.DB) *EyedeCommand
Package files
utils.go
Constants
const (
Filter = "chariot"
GetClustersForBanner = "SELECT cluster_edge_id, cluster_name, project_id, bsl_site_id, location, banner_edge_id from clusters WHERE project_id = $1"
LongHelp = `
CLI program written to populate existing edge info configmap with the correct cluster edge id.
The cli program can be run like so:
eyede --databaseHost=localhost --databaseName=dev0 --databaseUser=postgres --databasePassword=****
--topLevelProjectID=ret-dev-foreman --chariotTopic=chariot-rides
The following flags are required for the cli to run:
databaseHost, databaseName, databaseUser, databasePassword, topLevelProjectID and chariotTopic
The dryRun flag is an optional and defaults to false if not specified. launchdarklyKey is also an optional flag that defaults to using cluster id if not set.`
)
func AssertFleetAndStoreType(fleetType, storeType string)
func CreateChariotMessage(projectID, id, filter, configMap string) *chariotClientApi.ChariotMessage
func InvokeChariot(ctx context.Context, topLevelProjectID, chariotTopic string, message *chariotClientApi.ChariotMessage) error
type EyedeCommand struct {
DBConnection *sql.DB
}
func New() *EyedeCommand
func (EyedeCommand) Exec
¶
func (e EyedeCommand) Exec(name, shortUsage, shortHelp, foremanProjectID, topic, edgeAPIURL string, dryRun bool, callback func(ctx context.Context, db *sql.DB, projectID, foremanProjectID, topic, edgeAPIURL string, dryRun bool) bool, fs *flag.FlagSet) *ffcli.Command
func (e *EyedeCommand) SetDBConnection(db *sql.DB) *EyedeCommand