Documentation
¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Build
- type Deployer
- func (in *Deployer) DeepCopy() *Deployer
- func (in *Deployer) DeepCopyInto(out *Deployer)
- func (in *Deployer) DeepCopyObject() runtime.Object
- func (*Deployer) GetGroupVersionKind() schema.GroupVersionKind
- func (d *Deployer) GetStatus() apis.Status
- func (d *Deployer) SetDefaults(ctx context.Context)
- func (d *Deployer) Validate(ctx context.Context) *apis.FieldError
- type DeployerList
- type DeployerSpec
- type DeployerStatus
- func (in *DeployerStatus) DeepCopy() *DeployerStatus
- func (in *DeployerStatus) DeepCopyInto(out *DeployerStatus)
- func (ds *DeployerStatus) GetCondition(t knapis.ConditionType) *knapis.Condition
- func (ds *DeployerStatus) GetObservedGeneration() int64
- func (*DeployerStatus) GetReadyConditionType() knapis.ConditionType
- func (ds *DeployerStatus) InitializeConditions()
- func (ds *DeployerStatus) IsReady() bool
- func (ds *DeployerStatus) MarkDeploymentNotOwned(name string)
- func (ds *DeployerStatus) MarkServiceNotOwned(name string)
- func (ds *DeployerStatus) PropagateDeploymentStatus(cds *appsv1.DeploymentStatus)
- func (ds *DeployerStatus) PropagateServiceStatus(ss *corev1.ServiceStatus)
Constants ¶
const ( DeployerConditionReady = knapis.ConditionReady DeployerConditionDeploymentReady knapis.ConditionType = "DeploymentReady" DeployerConditionServiceReady knapis.ConditionType = "ServiceReady" )
Variables ¶
var (
// AddToScheme adds Build types to the scheme.
AddToScheme = schemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: core.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Build ¶
type Build struct {
// ApplicationRef references an application in this namespace.
ApplicationRef string `json:"applicationRef,omitempty"`
// ContainerRef references a container in this namespace.
ContainerRef string `json:"containerRef,omitempty"`
// FunctionRef references an application in this namespace.
FunctionRef string `json:"functionRef,omitempty"`
}
func (*Build) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Build.
func (*Build) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Deployer ¶
type Deployer struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DeployerSpec `json:"spec"`
Status DeployerStatus `json:"status"`
}
func (*Deployer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deployer.
func (*Deployer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Deployer) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Deployer) GetGroupVersionKind ¶
func (*Deployer) GetGroupVersionKind() schema.GroupVersionKind
func (*Deployer) SetDefaults ¶
type DeployerList ¶
type DeployerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []Deployer `json:"items"`
}
func (*DeployerList) DeepCopy ¶
func (in *DeployerList) DeepCopy() *DeployerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployerList.
func (*DeployerList) DeepCopyInto ¶
func (in *DeployerList) DeepCopyInto(out *DeployerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeployerList) DeepCopyObject ¶
func (in *DeployerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DeployerSpec ¶
type DeployerSpec struct {
// Build resolves the image from a build resource. As the target build
// produces new images, they will be automatically rolled out to the
// deployer.
Build *Build `json:"build,omitempty"`
// Template pod
Template *corev1.PodSpec `json:"template,omitempty"`
}
func (*DeployerSpec) DeepCopy ¶
func (in *DeployerSpec) DeepCopy() *DeployerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployerSpec.
func (*DeployerSpec) DeepCopyInto ¶
func (in *DeployerSpec) DeepCopyInto(out *DeployerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeployerSpec) SetDefaults ¶
func (ds *DeployerSpec) SetDefaults(ctx context.Context)
func (DeployerSpec) Validate ¶
func (ds DeployerSpec) Validate(ctx context.Context) *apis.FieldError
type DeployerStatus ¶
type DeployerStatus struct {
duckv1beta1.Status `json:",inline"`
DeploymentName string `json:"deploymentName,omitempty"`
ServiceName string `json:"serviceName,omitempty"`
}
func (*DeployerStatus) DeepCopy ¶
func (in *DeployerStatus) DeepCopy() *DeployerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployerStatus.
func (*DeployerStatus) DeepCopyInto ¶
func (in *DeployerStatus) DeepCopyInto(out *DeployerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeployerStatus) GetCondition ¶
func (ds *DeployerStatus) GetCondition(t knapis.ConditionType) *knapis.Condition
func (*DeployerStatus) GetObservedGeneration ¶
func (ds *DeployerStatus) GetObservedGeneration() int64
func (*DeployerStatus) GetReadyConditionType ¶
func (*DeployerStatus) GetReadyConditionType() knapis.ConditionType
func (*DeployerStatus) InitializeConditions ¶
func (ds *DeployerStatus) InitializeConditions()
func (*DeployerStatus) IsReady ¶
func (ds *DeployerStatus) IsReady() bool
func (*DeployerStatus) MarkDeploymentNotOwned ¶
func (ds *DeployerStatus) MarkDeploymentNotOwned(name string)
func (*DeployerStatus) MarkServiceNotOwned ¶
func (ds *DeployerStatus) MarkServiceNotOwned(name string)
func (*DeployerStatus) PropagateDeploymentStatus ¶
func (ds *DeployerStatus) PropagateDeploymentStatus(cds *appsv1.DeploymentStatus)
func (*DeployerStatus) PropagateServiceStatus ¶
func (ds *DeployerStatus) PropagateServiceStatus(ss *corev1.ServiceStatus)