Documentation
¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Adapter
- func (in *Adapter) DeepCopy() *Adapter
- func (in *Adapter) DeepCopyInto(out *Adapter)
- func (in *Adapter) DeepCopyObject() runtime.Object
- func (*Adapter) GetGroupVersionKind() schema.GroupVersionKind
- func (a *Adapter) GetStatus() apis.Status
- func (a *Adapter) SetDefaults(ctx context.Context)
- func (a *Adapter) Validate(ctx context.Context) *apis.FieldError
- type AdapterList
- type AdapterSpec
- type AdapterStatus
- func (in *AdapterStatus) DeepCopy() *AdapterStatus
- func (in *AdapterStatus) DeepCopyInto(out *AdapterStatus)
- func (as *AdapterStatus) GetCondition(t knapis.ConditionType) *knapis.Condition
- func (as *AdapterStatus) GetObservedGeneration() int64
- func (*AdapterStatus) GetReadyConditionType() knapis.ConditionType
- func (as *AdapterStatus) InitializeConditions()
- func (as *AdapterStatus) IsReady() bool
- func (as *AdapterStatus) MarkBuildLatestImageMissing(kind, name string)
- func (as *AdapterStatus) MarkBuildNotFound(kind, name string)
- func (as *AdapterStatus) MarkBuildReady()
- func (as *AdapterStatus) MarkTargetFound()
- func (as *AdapterStatus) MarkTargetInvalid(kind, name string, err error)
- func (as *AdapterStatus) MarkTargetNotFound(kind, name string)
- 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 (c *Deployer) GetStatus() apis.Status
- func (c *Deployer) SetDefaults(ctx context.Context)
- func (c *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 (cs *DeployerStatus) GetCondition(t knapis.ConditionType) *knapis.Condition
- func (cs *DeployerStatus) GetObservedGeneration() int64
- func (*DeployerStatus) GetReadyConditionType() knapis.ConditionType
- func (cs *DeployerStatus) InitializeConditions()
- func (cs *DeployerStatus) IsReady() bool
- func (cs *DeployerStatus) MarkConfigurationNotOwned(name string)
- func (cs *DeployerStatus) MarkRouteNotOwned(name string)
- func (cs *DeployerStatus) PropagateConfigurationStatus(kcs *servingv1alpha1.ConfigurationStatus)
- func (cs *DeployerStatus) PropagateRouteStatus(rs *servingv1alpha1.RouteStatus)
- type Target
Constants ¶
const ( AdapterConditionReady = knapis.ConditionReady AdapterConditionBuildReady knapis.ConditionType = "BuildReady" AdapterConditionTargetFound knapis.ConditionType = "TargetFound" )
const ( DeployerConditionReady = knapis.ConditionReady DeployerConditionConfigurationReady knapis.ConditionType = "ConfigurationReady" DeployerConditionRouteReady knapis.ConditionType = "RouteReady" )
Variables ¶
var (
// AddToScheme adds Build types to the scheme.
AddToScheme = schemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: knative.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 Adapter ¶
type Adapter struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec AdapterSpec `json:"spec"`
Status AdapterStatus `json:"status"`
}
func (*Adapter) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Adapter.
func (*Adapter) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Adapter) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Adapter) GetGroupVersionKind ¶
func (*Adapter) GetGroupVersionKind() schema.GroupVersionKind
func (*Adapter) SetDefaults ¶
type AdapterList ¶
type AdapterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []Adapter `json:"items"`
}
func (*AdapterList) DeepCopy ¶
func (in *AdapterList) DeepCopy() *AdapterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdapterList.
func (*AdapterList) DeepCopyInto ¶
func (in *AdapterList) DeepCopyInto(out *AdapterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AdapterList) DeepCopyObject ¶
func (in *AdapterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AdapterSpec ¶
type AdapterSpec struct {
// Build resolves the image from a build resource. As the target build
// produces new images, they will be automatically rolled out to the
// handler.
Build Build `json:"build"`
// Target Knative resource
Target Target `json:"target"`
}
func (*AdapterSpec) DeepCopy ¶
func (in *AdapterSpec) DeepCopy() *AdapterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdapterSpec.
func (*AdapterSpec) DeepCopyInto ¶
func (in *AdapterSpec) DeepCopyInto(out *AdapterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AdapterSpec) SetDefaults ¶
func (as *AdapterSpec) SetDefaults(ctx context.Context)
func (AdapterSpec) Validate ¶
func (as AdapterSpec) Validate(ctx context.Context) *apis.FieldError
type AdapterStatus ¶
type AdapterStatus struct {
duckv1beta1.Status `json:",inline"`
// LatestImage is the most recent image resolved from the build and applied
// to the target
LatestImage string `json:"latestImage,omitempty"`
}
func (*AdapterStatus) DeepCopy ¶
func (in *AdapterStatus) DeepCopy() *AdapterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdapterStatus.
func (*AdapterStatus) DeepCopyInto ¶
func (in *AdapterStatus) DeepCopyInto(out *AdapterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AdapterStatus) GetCondition ¶
func (as *AdapterStatus) GetCondition(t knapis.ConditionType) *knapis.Condition
func (*AdapterStatus) GetObservedGeneration ¶
func (as *AdapterStatus) GetObservedGeneration() int64
func (*AdapterStatus) GetReadyConditionType ¶
func (*AdapterStatus) GetReadyConditionType() knapis.ConditionType
func (*AdapterStatus) InitializeConditions ¶
func (as *AdapterStatus) InitializeConditions()
func (*AdapterStatus) IsReady ¶
func (as *AdapterStatus) IsReady() bool
func (*AdapterStatus) MarkBuildLatestImageMissing ¶
func (as *AdapterStatus) MarkBuildLatestImageMissing(kind, name string)
func (*AdapterStatus) MarkBuildNotFound ¶
func (as *AdapterStatus) MarkBuildNotFound(kind, name string)
func (*AdapterStatus) MarkBuildReady ¶
func (as *AdapterStatus) MarkBuildReady()
func (*AdapterStatus) MarkTargetFound ¶
func (as *AdapterStatus) MarkTargetFound()
func (*AdapterStatus) MarkTargetInvalid ¶
func (as *AdapterStatus) MarkTargetInvalid(kind, name string, err error)
func (*AdapterStatus) MarkTargetNotFound ¶
func (as *AdapterStatus) MarkTargetNotFound(kind, name string)
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 (cs *DeployerSpec) SetDefaults(ctx context.Context)
func (DeployerSpec) Validate ¶
func (cs DeployerSpec) Validate(ctx context.Context) *apis.FieldError
type DeployerStatus ¶
type DeployerStatus struct {
duckv1beta1.Status `json:",inline"`
// ConfigurationName is the name of the Knative Serving configuration
// backing this deployer.
ConfigurationName string `json:"configurationName,omitempty"`
// RouteName is the name of the Knative Serving route backing this
// deployer.
RouteName string `json:"routeName,omitempty"`
// Address to target this deployer internally
Address *duckv1alpha1.Addressable `json:"address,omitempty"`
// URL to target this deployer publicly
URL *knapis.URL `json:"url,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 (cs *DeployerStatus) GetCondition(t knapis.ConditionType) *knapis.Condition
func (*DeployerStatus) GetObservedGeneration ¶
func (cs *DeployerStatus) GetObservedGeneration() int64
func (*DeployerStatus) GetReadyConditionType ¶
func (*DeployerStatus) GetReadyConditionType() knapis.ConditionType
func (*DeployerStatus) InitializeConditions ¶
func (cs *DeployerStatus) InitializeConditions()
func (*DeployerStatus) IsReady ¶
func (cs *DeployerStatus) IsReady() bool
func (*DeployerStatus) MarkConfigurationNotOwned ¶
func (cs *DeployerStatus) MarkConfigurationNotOwned(name string)
func (*DeployerStatus) MarkRouteNotOwned ¶
func (cs *DeployerStatus) MarkRouteNotOwned(name string)
func (*DeployerStatus) PropagateConfigurationStatus ¶
func (cs *DeployerStatus) PropagateConfigurationStatus(kcs *servingv1alpha1.ConfigurationStatus)
func (*DeployerStatus) PropagateRouteStatus ¶
func (cs *DeployerStatus) PropagateRouteStatus(rs *servingv1alpha1.RouteStatus)
type Target ¶
type Target struct {
// ServiceRef references a Knative Service in this namespace.
ServiceRef string `json:"serviceRef,omitempty"`
// ConfigurationRef references a Knative Configuration in this namespace.
ConfigurationRef string `json:"configurationRef,omitempty"`
}
func (*Target) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.
func (*Target) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.