Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DateFormat is used to format dates, by default it will be RFC1123Z DateFormat = time.RFC1123Z // ErrUpdateStatus is used as part of the Event 'reason' when we fail to update the status ErrUpdateStatus = "ErrUpdateStatus" // SuccessUpdate is used as part of the Event 'reason' when we update the status successfully SuccessUpdate = "SuccessUpdate" // MessageResourceUpdated is the message used for Events when a resource is updated MessageResourceUpdated = "Updated resource %s" Dashboard = "Dashboard" Alert = "Alert" Service = "Service" )
View Source
const (
AppopticsFinalizer = "appoptics.io"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonAOResource ¶
type CommonAOResource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec v12.TokenAndDataSpec `json:"spec"` Status v12.Status `json:"status,omitempty"` }
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController( kubeclientset kubernetes.Interface, aoclientset clientset.Interface, aoInformerFactory informers.SharedInformerFactory, controllerAgentName string, resyncTime int64) *Controller
NewController returns a new controller
func (*Controller) GetCommunicator ¶
func (c *Controller) GetCommunicator(secret *v1.Secret) (appoptics.AOCommunicator, error)
func (*Controller) Run ¶
func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error
func (*Controller) SplitMetaNamespaceKey ¶
func (c *Controller) SplitMetaNamespaceKey(key string) (namespace, kind string, name string, err error)
Click to show internal directories.
Click to hide internal directories.