events

package
v0.0.0-...-2798f75 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationCreatedHandler

type ApplicationCreatedHandler struct {
	// contains filtered or unexported fields
}

func GetApplicationCreatedHandlerInstance

func GetApplicationCreatedHandlerInstance() *ApplicationCreatedHandler

func (*ApplicationCreatedHandler) Handle

func (applicationCreatedHandler *ApplicationCreatedHandler) Handle(application argoSdk.ArgoApplication) error

type ApplicationRemovedHandler

type ApplicationRemovedHandler struct {
}

func GetApplicationRemovedHandlerInstance

func GetApplicationRemovedHandlerInstance() *ApplicationRemovedHandler

func (*ApplicationRemovedHandler) Handle

func (applicationRemovedHandler *ApplicationRemovedHandler) Handle(application argoSdk.ArgoApplication) error

type EventHandler

type EventHandler interface {
	Handle(payload interface{}) error
}

EventHandler is interface for handle different type of events, like new application added, rollout happens so on

func GetRolloutEventHandlerInstance

func GetRolloutEventHandlerInstance() EventHandler

GetRolloutEventHandlerInstance get singleton instance of rollout handler

type RolloutHandler

type RolloutHandler struct {
	// contains filtered or unexported fields
}

RolloutHandler handle rollout event, rollout meat that some new release appear or state of current release is changed

func (*RolloutHandler) Handle

func (rolloutHandler *RolloutHandler) Handle(rollout interface{}) error

Handle handle rollout event , process and store info in codefresh

type SyncHandler

type SyncHandler struct {
	// contains filtered or unexported fields
}

func GetSyncHandlerInstance

func GetSyncHandlerInstance(codefreshApi codefresh.CodefreshApi, argoApi argo.ArgoAPI) *SyncHandler

func (*SyncHandler) Handle

func (syncHandler *SyncHandler) Handle() error

Jump to

Keyboard shortcuts

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