v1alpha1

package
v0.0.0-...-0178fde Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationConditionReady                                      = duckv1alpha1.ConditionReady
	ApplicationConditionServiceReady    duckv1alpha1.ConditionType = "ServiceReady"
	ApplicationConditionBuildCacheReady duckv1alpha1.ConditionType = "BuildCacheReady"
)
View Source
const (
	FunctionConditionReady                                       = duckv1alpha1.ConditionReady
	FunctionConditionApplicationReady duckv1alpha1.ConditionType = "ApplicationReady"
)

Variables

View Source
var (

	// AddToScheme adds Build types to the scheme.
	AddToScheme = schemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: projectriff.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 Application

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

	Spec   ApplicationSpec   `json:"spec"`
	Status ApplicationStatus `json:"status"`
}

func (*Application) DeepCopy

func (in *Application) DeepCopy() *Application

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

func (*Application) DeepCopyInto

func (in *Application) DeepCopyInto(out *Application)

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

func (*Application) DeepCopyObject

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

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

func (*Application) GetGroupVersionKind

func (*Application) GetGroupVersionKind() schema.GroupVersionKind

func (*Application) SetDefaults

func (a *Application) SetDefaults()

func (*Application) Validate

func (a *Application) Validate() *apis.FieldError

type ApplicationBuild

type ApplicationBuild struct {
	Template  string             `json:"template"`
	CacheSize *resource.Quantity `json:"cacheSize,omitempty"`
	Arguments []BuildArgument    `json:"arguments,omitempty"`
	Source    *Source            `json:"source,omitempty"`
}

func (*ApplicationBuild) DeepCopy

func (in *ApplicationBuild) DeepCopy() *ApplicationBuild

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

func (*ApplicationBuild) DeepCopyInto

func (in *ApplicationBuild) DeepCopyInto(out *ApplicationBuild)

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

type ApplicationList

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

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

func (*ApplicationList) DeepCopy

func (in *ApplicationList) DeepCopy() *ApplicationList

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

func (*ApplicationList) DeepCopyInto

func (in *ApplicationList) DeepCopyInto(out *ApplicationList)

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

func (*ApplicationList) DeepCopyObject

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

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

type ApplicationRun

type ApplicationRun struct {
	EnvFrom   []corev1.EnvFromSource      `json:"envFrom,omitempty"`
	Env       []corev1.EnvVar             `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name"`
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

func (*ApplicationRun) DeepCopy

func (in *ApplicationRun) DeepCopy() *ApplicationRun

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

func (*ApplicationRun) DeepCopyInto

func (in *ApplicationRun) DeepCopyInto(out *ApplicationRun)

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

type ApplicationSpec

type ApplicationSpec struct {
	Image string           `json:"image"`
	Build ApplicationBuild `json:"build"`
	Run   ApplicationRun   `json:"run"`
}

func (*ApplicationSpec) DeepCopy

func (in *ApplicationSpec) DeepCopy() *ApplicationSpec

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

func (*ApplicationSpec) DeepCopyInto

func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec)

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

func (*ApplicationSpec) SetDefaults

func (as *ApplicationSpec) SetDefaults()

type ApplicationStatus

type ApplicationStatus struct {
	Conditions         duckv1alpha1.Conditions   `json:"conditions,omitempty"`
	Address            *duckv1alpha1.Addressable `json:"address,omitempty"`
	BuildCacheName     string                    `json:"cacheVolumeName"`
	ObservedGeneration int64                     `json:"observedGeneration,omitempty"`
}

func (*ApplicationStatus) DeepCopy

func (in *ApplicationStatus) DeepCopy() *ApplicationStatus

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

func (*ApplicationStatus) DeepCopyInto

func (in *ApplicationStatus) DeepCopyInto(out *ApplicationStatus)

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

func (*ApplicationStatus) GetCondition

func (*ApplicationStatus) InitializeConditions

func (as *ApplicationStatus) InitializeConditions()

func (*ApplicationStatus) IsReady

func (as *ApplicationStatus) IsReady() bool

func (*ApplicationStatus) MarkBuildCacheNotOwned

func (as *ApplicationStatus) MarkBuildCacheNotOwned(name string)

TODO move into application reconciler

func (*ApplicationStatus) MarkServiceNotOwned

func (as *ApplicationStatus) MarkServiceNotOwned(name string)

TODO move into application reconciler

func (*ApplicationStatus) PropagateBuildCacheStatus

func (as *ApplicationStatus) PropagateBuildCacheStatus(pvc *corev1.PersistentVolumeClaim)

TODO move into application reconciler

func (*ApplicationStatus) PropagateServiceStatus

func (as *ApplicationStatus) PropagateServiceStatus(ss *servingv1alpha1.ServiceStatus)

TODO move into application reconciler

type BuildArgument

type BuildArgument struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

func (*BuildArgument) DeepCopy

func (in *BuildArgument) DeepCopy() *BuildArgument

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

func (*BuildArgument) DeepCopyInto

func (in *BuildArgument) DeepCopyInto(out *BuildArgument)

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

type Function

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

	Spec   FunctionSpec   `json:"spec"`
	Status FunctionStatus `json:"status"`
}

func (*Function) DeepCopy

func (in *Function) DeepCopy() *Function

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

func (*Function) DeepCopyInto

func (in *Function) DeepCopyInto(out *Function)

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

func (*Function) DeepCopyObject

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

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

func (*Function) GetGroupVersionKind

func (*Function) GetGroupVersionKind() schema.GroupVersionKind

func (*Function) SetDefaults

func (f *Function) SetDefaults()

func (*Function) Validate

func (f *Function) Validate() *apis.FieldError

type FunctionBuild

type FunctionBuild struct {
	Artifact  string             `json:"artifact,omitempty"`
	Handler   string             `json:"handler,omitempty"`
	Invoker   string             `json:"invoker,omitempty"`
	CacheSize *resource.Quantity `json:"cacheSize,omitempty"`
	Source    *Source            `json:"source,omitempty"`
}

func (*FunctionBuild) DeepCopy

func (in *FunctionBuild) DeepCopy() *FunctionBuild

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

func (*FunctionBuild) DeepCopyInto

func (in *FunctionBuild) DeepCopyInto(out *FunctionBuild)

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

type FunctionList

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

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

func (*FunctionList) DeepCopy

func (in *FunctionList) DeepCopy() *FunctionList

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

func (*FunctionList) DeepCopyInto

func (in *FunctionList) DeepCopyInto(out *FunctionList)

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

func (*FunctionList) DeepCopyObject

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

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

type FunctionRun

type FunctionRun ApplicationRun

func (*FunctionRun) DeepCopy

func (in *FunctionRun) DeepCopy() *FunctionRun

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

func (*FunctionRun) DeepCopyInto

func (in *FunctionRun) DeepCopyInto(out *FunctionRun)

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

type FunctionSpec

type FunctionSpec struct {
	Image string        `json:"image"`
	Build FunctionBuild `json:"build"`
	Run   FunctionRun   `json:"run"`
}

func (*FunctionSpec) DeepCopy

func (in *FunctionSpec) DeepCopy() *FunctionSpec

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

func (*FunctionSpec) DeepCopyInto

func (in *FunctionSpec) DeepCopyInto(out *FunctionSpec)

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

func (*FunctionSpec) SetDefaults

func (fs *FunctionSpec) SetDefaults()

type FunctionStatus

type FunctionStatus struct {
	Conditions         duckv1alpha1.Conditions   `json:"conditions,omitempty"`
	Address            *duckv1alpha1.Addressable `json:"address,omitempty"`
	ObservedGeneration int64                     `json:"observedGeneration,omitempty"`
}

func (*FunctionStatus) DeepCopy

func (in *FunctionStatus) DeepCopy() *FunctionStatus

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

func (*FunctionStatus) DeepCopyInto

func (in *FunctionStatus) DeepCopyInto(out *FunctionStatus)

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

func (*FunctionStatus) GetCondition

func (*FunctionStatus) InitializeConditions

func (fs *FunctionStatus) InitializeConditions()

func (*FunctionStatus) IsReady

func (fs *FunctionStatus) IsReady() bool

func (*FunctionStatus) MarkApplicationNotOwned

func (fs *FunctionStatus) MarkApplicationNotOwned(name string)

TODO move into function reconciler

func (*FunctionStatus) PropagateApplicationStatus

func (fs *FunctionStatus) PropagateApplicationStatus(as *ApplicationStatus)

TODO move into function reconciler

type GitSource

type GitSource struct {
	Revision string `json:"revision"`
	URL      string `json:"url"`
}

func (*GitSource) DeepCopy

func (in *GitSource) DeepCopy() *GitSource

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

func (*GitSource) DeepCopyInto

func (in *GitSource) DeepCopyInto(out *GitSource)

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

type Source

type Source struct {
	Git     *GitSource `json:"git"`
	SubPath string     `json:"subPath,omitempty"`
}

func (*Source) DeepCopy

func (in *Source) DeepCopy() *Source

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

func (*Source) DeepCopyInto

func (in *Source) DeepCopyInto(out *Source)

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