v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: jobscontroller.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 FunctionJob

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

	Spec   FunctionJobSpec   `json:"spec"`
	Status FunctionJobStatus `json:"status"`
}

FunctionJob specifices a FunctionJob resource which represents a oneoff job on Azure Function resource

func (*FunctionJob) DeepCopy

func (in *FunctionJob) DeepCopy() *FunctionJob

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

func (*FunctionJob) DeepCopyInto

func (in *FunctionJob) DeepCopyInto(out *FunctionJob)

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

func (*FunctionJob) DeepCopyObject

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

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

type FunctionJobCondition

type FunctionJobCondition string

FunctionJobCondition represents a status of finished function job

const (
	ConditionSuccess FunctionJobCondition = "Succeeded"
	ConditionFailed  FunctionJobCondition = "Failed"
)

Succeeded or Failed enums for FunctionJob

type FunctionJobList

type FunctionJobList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []FunctionJob `json:"items"`
}

FunctionJobList is a list of FunctionJob resources

func (*FunctionJobList) DeepCopy

func (in *FunctionJobList) DeepCopy() *FunctionJobList

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

func (*FunctionJobList) DeepCopyInto

func (in *FunctionJobList) DeepCopyInto(out *FunctionJobList)

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

func (*FunctionJobList) DeepCopyObject

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

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

type FunctionJobSpec

type FunctionJobSpec struct {
	LogContainerName string                  `json:"logContainerName,omitempty"`
	ConcatLogs       bool                    `json:"concatLogs,omitempty"`
	Template         batchv1.JobTemplateSpec `json:"template"`
}

FunctionJobSpec is a specification of a FunctionJob

func (*FunctionJobSpec) DeepCopy

func (in *FunctionJobSpec) DeepCopy() *FunctionJobSpec

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

func (*FunctionJobSpec) DeepCopyInto

func (in *FunctionJobSpec) DeepCopyInto(out *FunctionJobSpec)

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

type FunctionJobStatus

type FunctionJobStatus struct {
	StartTime      *metav1.Time         `json:"startTime,omitempty"`
	CompletionTime *metav1.Time         `json:"completionTime,omitempty"`
	Condition      FunctionJobCondition `json:"condition,omitempty"`
	Logs           string               `json:"logs,omitempty"`
}

FunctionJobStatus is a status of a FunctionJob

func (*FunctionJobStatus) DeepCopy

func (in *FunctionJobStatus) DeepCopy() *FunctionJobStatus

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

func (*FunctionJobStatus) DeepCopyInto

func (in *FunctionJobStatus) DeepCopyInto(out *FunctionJobStatus)

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