github.com/containerd/Containerd@v1.4.13/runtime/events.go (about)

     1  /*
     2     Copyright The containerd Authors.
     3  
     4     Licensed under the Apache License, Version 2.0 (the "License");
     5     you may not use this file except in compliance with the License.
     6     You may obtain a copy of the License at
     7  
     8         http://www.apache.org/licenses/LICENSE-2.0
     9  
    10     Unless required by applicable law or agreed to in writing, software
    11     distributed under the License is distributed on an "AS IS" BASIS,
    12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13     See the License for the specific language governing permissions and
    14     limitations under the License.
    15  */
    16  
    17  package runtime
    18  
    19  const (
    20  	// TaskCreateEventTopic for task create
    21  	TaskCreateEventTopic = "/tasks/create"
    22  	// TaskStartEventTopic for task start
    23  	TaskStartEventTopic = "/tasks/start"
    24  	// TaskOOMEventTopic for task oom
    25  	TaskOOMEventTopic = "/tasks/oom"
    26  	// TaskExitEventTopic for task exit
    27  	TaskExitEventTopic = "/tasks/exit"
    28  	// TaskDeleteEventTopic for task delete
    29  	TaskDeleteEventTopic = "/tasks/delete"
    30  	// TaskExecAddedEventTopic for task exec create
    31  	TaskExecAddedEventTopic = "/tasks/exec-added"
    32  	// TaskExecStartedEventTopic for task exec start
    33  	TaskExecStartedEventTopic = "/tasks/exec-started"
    34  	// TaskPausedEventTopic for task pause
    35  	TaskPausedEventTopic = "/tasks/paused"
    36  	// TaskResumedEventTopic for task resume
    37  	TaskResumedEventTopic = "/tasks/resumed"
    38  	// TaskCheckpointedEventTopic for task checkpoint
    39  	TaskCheckpointedEventTopic = "/tasks/checkpointed"
    40  	// TaskUnknownTopic for unknown task events
    41  	TaskUnknownTopic = "/tasks/?"
    42  )