v1alpha1

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the tools v1alpha1 API group +kubebuilder:object:generate=true +groupName=tools.swoll.criticalstack.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "tools.swoll.criticalstack.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Trace

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

	Spec   TraceSpec   `json:"spec,omitempty"`
	Status TraceStatus `json:"status,omitempty"`
}

Trace is the Schema for the traces API +kubebuilder:printcolumn:name="Name",type=string,JSONPath=`.metadata.name` +kubebuilder:printcolumn:name="Job",type=string,JSONPath=`.status.job` +kubebuilder:printcolumn:name="Syscalls",type=string,JSONPath=`.spec.syscalls` +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state`

func (*Trace) DeepCopy

func (in *Trace) DeepCopy() *Trace

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Trace.

func (*Trace) DeepCopyInto

func (in *Trace) DeepCopyInto(out *Trace)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Trace) DeepCopyObject

func (in *Trace) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TraceList

type TraceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Trace `json:"items"`
}

TraceList contains a list of Trace

func (*TraceList) DeepCopy

func (in *TraceList) DeepCopy() *TraceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TraceList.

func (*TraceList) DeepCopyInto

func (in *TraceList) DeepCopyInto(out *TraceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TraceList) DeepCopyObject

func (in *TraceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TraceSpec

type TraceSpec struct {
	LabelSelector metav1.LabelSelector `json:"labelSelector,omitempty" yaml:"labelSelector,omitempty"`
	FieldSelector metav1.LabelSelector `json:"fieldSelector,omitempty" yaml:"fieldSelector,omitempty"`
	HostSelector  []string             `json:"hostSelector,omitempty" yaml:"hostSelector,omitempty"`
	Syscalls      []string             `json:"syscalls,omitempty" yaml:"syscalls,omitempty"`
	Duration      metav1.Duration      `json:"duration,omitempty" yaml:"duration,omitempty"`
	SampleRate    int                  `json:"sampleRate,omitempty" yaml:"sampleRate,omitempty"`
}

TraceSpec defines the desired state of Trace

func (*TraceSpec) DeepCopy

func (in *TraceSpec) DeepCopy() *TraceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TraceSpec.

func (*TraceSpec) DeepCopyInto

func (in *TraceSpec) DeepCopyInto(out *TraceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TraceState

type TraceState string
const (
	TraceUnknown  TraceState = ""
	TracePending  TraceState = "Pending"
	TraceRunning  TraceState = "Running"
	TraceComplete TraceState = "Complete"
	TraceFailed   TraceState = "Failed"
)

type TraceStatus

type TraceStatus struct {
	State          TraceState   `json:"state,omitempty" yaml:"state,omitempty"`
	StartTime      *metav1.Time `json:"startTime,omitempty" yaml:"startTime,omitempty"`
	CompletionTime *metav1.Time `json:"completionTime,omitempty" yaml:"completeTime,omitempty"`
	JobID          string       `json:"job,omitempty" yaml:"job,omitempty"`
}

TraceStatus defines the observed state of Trace

func (*TraceStatus) DeepCopy

func (in *TraceStatus) DeepCopy() *TraceStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TraceStatus.

func (*TraceStatus) DeepCopyInto

func (in *TraceStatus) DeepCopyInto(out *TraceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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