Documentation ¶
Index ¶
- func FireDailyMinuteEvent()
- func PublishEventsOnRest(jsonBody []byte, topic string, externalCdConfig *ExternalCdConfig) error
- func SendAppUpdate(app *v1alpha12.Application, client *PubSubClient)
- func Start(conf *config.Config, eventHandler handlers.Handler)
- type AcdConfig
- type CdConfig
- type CiConfig
- type Controller
- type CronEvent
- type Event
- type EventType
- type ExternalCdConfig
- type PubSubClient
- type PubSubConfig
- type PublishRequest
- type WorkflowUpdateReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FireDailyMinuteEvent ¶
func FireDailyMinuteEvent()
func PublishEventsOnRest ¶
func PublishEventsOnRest(jsonBody []byte, topic string, externalCdConfig *ExternalCdConfig) error
func SendAppUpdate ¶
func SendAppUpdate(app *v1alpha12.Application, client *PubSubClient)
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller object
func (*Controller) HasSynced ¶
func (c *Controller) HasSynced() bool
HasSynced is required for the cache.Controller interface.
func (*Controller) LastSyncResourceVersion ¶
func (c *Controller) LastSyncResourceVersion() string
LastSyncResourceVersion is required for the cache.Controller interface.
func (*Controller) Run ¶
func (c *Controller) Run(stopCh <-chan struct{})
Run starts the kubewatch controller
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event indicate the informerEvent
type EventType ¶
type EventType int
const Fail EventType = 3
const Success EventType = 2
const Trigger EventType = 1
type ExternalCdConfig ¶
type ExternalCdConfig struct { External bool `env:"CD_EXTERNAL_REST_LISTENER" envDefault:"false"` Token string `env:"CD_EXTERNAL_ORCHESTRATOR_TOKEN" envDefault:""` ListenerUrl string `env:"CD_EXTERNAL_LISTENER_URL" envDefault:"http://devtroncd-orchestrator-service-prod.devtroncd:80"` Namespace string `env:"CD_EXTERNAL_NAMESPACE" envDefault:""` }
type PubSubClient ¶
func NewPubSubClient ¶
func NewPubSubClient() (*PubSubClient, error)
type PubSubConfig ¶
type PublishRequest ¶
type PublishRequest struct { Topic string `json:"topic"` Payload json.RawMessage `json:"payload"` }
type WorkflowUpdateReq ¶
Click to show internal directories.
Click to hide internal directories.