1/*
2Copyright 2020 The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8    http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17package v1
18
19// This file contains all constants defined in CRI.
20
21// Required runtime condition type.
22const (
23	// RuntimeReady means the runtime is up and ready to accept basic containers.
24	RuntimeReady = "RuntimeReady"
25	// NetworkReady means the runtime network is up and ready to accept containers which require network.
26	NetworkReady = "NetworkReady"
27)
28
29// LogStreamType is the type of the stream in CRI container log.
30type LogStreamType string
31
32const (
33	// Stdout is the stream type for stdout.
34	Stdout LogStreamType = "stdout"
35	// Stderr is the stream type for stderr.
36	Stderr LogStreamType = "stderr"
37)
38
39// LogTag is the tag of a log line in CRI container log.
40// Currently defined log tags:
41// * First tag: Partial/Full - P/F.
42// The field in the container log format can be extended to include multiple
43// tags by using a delimiter, but changes should be rare. If it becomes clear
44// that better extensibility is desired, a more extensible format (e.g., json)
45// should be adopted as a replacement and/or addition.
46type LogTag string
47
48const (
49	// LogTagPartial means the line is part of multiple lines.
50	LogTagPartial LogTag = "P"
51	// LogTagFull means the line is a single full line or the end of multiple lines.
52	LogTagFull LogTag = "F"
53	// LogTagDelimiter is the delimiter for different log tags.
54	LogTagDelimiter = ":"
55)
56