apimachinery: kubedb.dev/apimachinery/pkg/eventer Index | Files

package eventer

import "kubedb.dev/apimachinery/pkg/eventer"

Copyright The KubeDB Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Package Files

recorder.go

Constants

const (
    EventReasonPausing                      string = "Pausing"
    EventReasonWipingOut                    string = "WipingOut"
    EventReasonFailedToCreate               string = "Failed"
    EventReasonFailedToPause                string = "Failed"
    EventReasonFailedToDelete               string = "Failed"
    EventReasonFailedToWipeOut              string = "Failed"
    EventReasonFailedToGet                  string = "Failed"
    EventReasonFailedToInitialize           string = "Failed"
    EventReasonFailedToList                 string = "Failed"
    EventReasonFailedToResume               string = "Failed"
    EventReasonFailedToSchedule             string = "Failed"
    EventReasonFailedToStart                string = "Failed"
    EventReasonFailedToUpdate               string = "Failed"
    EventReasonIgnoredSnapshot              string = "IgnoredSnapshot"
    EventReasonInitializing                 string = "Initializing"
    EventReasonInvalid                      string = "Invalid"
    EventReasonResuming                     string = "Resuming"
    EventReasonSnapshotFailed               string = "SnapshotFailed"
    EventReasonSnapshotError                string = "SnapshotError"
    EventReasonStarting                     string = "Starting"
    EventReasonSuccessful                   string = "Successful"
    EventReasonSuccessfulCreate             string = "SuccessfulCreate"
    EventReasonSuccessfulPause              string = "SuccessfulPause"
    EventReasonSuccessfulWipeOut            string = "SuccessfulWipeOut"
    EventReasonSuccessfulSnapshot           string = "SuccessfulSnapshot"
    EventReasonSuccessfulInitialize         string = "SuccessfulInitialize"
    EventReasonAdmissionWebhookNotActivated string = "AdmissionWebhookNotActivated"
)

func CreateEvent Uses

func CreateEvent(client kubernetes.Interface, component string, obj runtime.Object, eventType, reason, message string) (*core.Event, error)

func CreateEventWithLog Uses

func CreateEventWithLog(client kubernetes.Interface, component string, obj runtime.Object, eventType, reason, message string)

func NewEventRecorder Uses

func NewEventRecorder(client kubernetes.Interface, component string) record.EventRecorder

Package eventer imports 10 packages (graph) and is imported by 40 packages. Updated 2019-11-15. Refresh now. Tools for package owners.