v1alpha1

package
v0.0.0-...-66148d8 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +k8s:deepcopy-gen=package +groupName=perf.knative.dev

Index

Constants

View Source
const (
	PerfJobConditionSucceeded = duckv1alpha1.ConditionSucceeded
	BatchJobConditionFinished = "BatchJobFinished"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: perf.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type PerfJob

type PerfJob struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec defines the desired state of the PerfJob.
	Spec PerfJobSpec `json:"spec,omitempty"`

	// Status represents the current state of the PerfJob.
	// +optional
	Status PerfJobStatus `json:"status,omitempty"`
}

func (*PerfJob) DeepCopy

func (in *PerfJob) DeepCopy() *PerfJob

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

func (*PerfJob) DeepCopyInto

func (in *PerfJob) DeepCopyInto(out *PerfJob)

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

func (*PerfJob) DeepCopyObject

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

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

type PerfJobList

type PerfJobList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PerfJob `json:"items"`
}

PerfJobList is a collection of PerfJobs.

func (*PerfJobList) DeepCopy

func (in *PerfJobList) DeepCopy() *PerfJobList

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

func (*PerfJobList) DeepCopyInto

func (in *PerfJobList) DeepCopyInto(out *PerfJobList)

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

func (*PerfJobList) DeepCopyObject

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

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

type PerfJobSpec

type PerfJobSpec struct {
	TestImage    string `json:"testImage,omitempty"`
	ControlImage string `json:"ctrlImage,omitempty"`
	Exclusive    *bool  `json:"exclusive,omitempty"`
	Target       string `json:"target,omitempty"`
}

func (*PerfJobSpec) DeepCopy

func (in *PerfJobSpec) DeepCopy() *PerfJobSpec

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

func (*PerfJobSpec) DeepCopyInto

func (in *PerfJobSpec) DeepCopyInto(out *PerfJobSpec)

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

type PerfJobStatus

type PerfJobStatus struct {
	// inherits duck/v1alpha1 Status, which currently provides:
	// * ObservedGeneration - the 'Generation' of the Service that was last processed by the controller.
	// * Conditions - the latest available observations of a resource's current state.
	duckv1alpha1.Status `json:",inline"`

	Phase string
}

BrokerStatus represents the current state of a Broker.

func (*PerfJobStatus) DeepCopy

func (in *PerfJobStatus) DeepCopy() *PerfJobStatus

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

func (*PerfJobStatus) DeepCopyInto

func (in *PerfJobStatus) DeepCopyInto(out *PerfJobStatus)

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

func (*PerfJobStatus) GetCondition

GetCondition returns the condition currently associated with the given type, or nil.

func (*PerfJobStatus) InitializeConditions

func (ps *PerfJobStatus) InitializeConditions()

InitializeConditions sets relevant unset conditions to Unknown state.

func (*PerfJobStatus) IsReady

func (ps *PerfJobStatus) IsReady() bool

IsReady returns true if the resource is ready overall.

func (*PerfJobStatus) MarkJobFailed

func (ps *PerfJobStatus) MarkJobFailed()

MarkJobFailed sets the BatchJobConditionSucceeded condition to True state.

func (*PerfJobStatus) MarkJobRunning

func (ps *PerfJobStatus) MarkJobRunning()

MarkJobSucceeded sets the BatchJobConditionSucceeded condition to True state.

func (*PerfJobStatus) MarkJobSucceeded

func (ps *PerfJobStatus) MarkJobSucceeded()

MarkJobSucceeded sets the BatchJobConditionSucceeded condition to True state.

Jump to

Keyboard shortcuts

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