v1alpha3

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const EventListRecordType = "results.tekton.dev/v1.EventList"

EventListRecordType represents the API resource type for EventSet records.

View Source
const LogRecordType = "results.tekton.dev/v1alpha3.Log"

LogRecordType represents the API resource type for Tekton log records.

View Source
const LogRecordTypeV2 = "results.tekton.dev/v1alpha2.Log"

LogRecordTypeV2 represents the API resource type for Tekton log records deprecated now.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   LogSpec   `json:"spec"`
	Status LogStatus `json:"status,omitempty"`
}

Log represents the API resource for Tekton results Log.

func (*Log) Default

func (t *Log) Default()

Default sets up default values for Log TypeMeta, such as API version and kind.

type LogSpec

type LogSpec struct {
	Resource Resource `json:"resource"`
	Type     LogType  `json:"type"`
}

LogSpec represents the specification for the Tekton Log resource. It contains information about corresponding log resource.

type LogStatus

type LogStatus struct {
	Path            string `json:"path,omitempty"`
	Size            int64  `json:"size"`
	IsStored        bool   `json:"isStored"`
	ErrorOnStoreMsg string `json:"errorOnStoreMsg"`
	IsRetryableErr  bool   `json:"isRetryableErr"`
}

LogStatus defines the current status of the log resource.

type LogType

type LogType string

LogType represents the log storage type. This information is useful to determine how the resource will be stored.

const (
	// FileLogType defines the log type for logs stored in the file system.
	FileLogType LogType = "File"
	// S3LogType defines the log type for logs stored in the S3 object storage or S3 compatible alternatives.
	S3LogType LogType = "S3"

	// GCSLogType defines the log type for logs stored in the GCS object storage or GCS compatible alternatives.
	GCSLogType LogType = "GCS"
)

type Resource

type Resource struct {
	Kind      string    `json:"kind,omitempty"`
	Namespace string    `json:"namespace"`
	Name      string    `json:"name"`
	UID       types.UID `json:"uid,omitempty"`
}

Resource represents information to identify a Kubernetes API resource. It should be used to match the corresponding log to this resource.

Jump to

Keyboard shortcuts

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