v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: Apache-2.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

View Source
const (
	AdapterConditionReady                            = knapis.ConditionReady
	AdapterConditionBuildReady  knapis.ConditionType = "BuildReady"
	AdapterConditionTargetFound knapis.ConditionType = "TargetFound"
)
View Source
const (
	DeployerConditionReady                                   = knapis.ConditionReady
	DeployerConditionConfigurationReady knapis.ConditionType = "ConfigurationReady"
	DeployerConditionRouteReady         knapis.ConditionType = "RouteReady"
)

Variables

View Source
var (

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

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

	Spec   AdapterSpec   `json:"spec"`
	Status AdapterStatus `json:"status"`
}

func (*Adapter) DeepCopy

func (in *Adapter) DeepCopy() *Adapter

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

func (*Adapter) DeepCopyInto

func (in *Adapter) DeepCopyInto(out *Adapter)

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

func (*Adapter) DeepCopyObject

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

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

func (*Adapter) GetGroupVersionKind

func (*Adapter) GetGroupVersionKind() schema.GroupVersionKind

func (*Adapter) GetStatus

func (a *Adapter) GetStatus() apis.Status

func (*Adapter) SetDefaults

func (a *Adapter) SetDefaults(ctx context.Context)

func (*Adapter) Validate

func (a *Adapter) Validate(ctx context.Context) *apis.FieldError

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

func (in *Build) DeepCopy() *Build

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

func (*Build) DeepCopyInto

func (in *Build) DeepCopyInto(out *Build)

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

func (*Build) Validate

func (b *Build) Validate(ctx context.Context) *apis.FieldError

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

func (in *Deployer) DeepCopy() *Deployer

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

func (*Deployer) DeepCopyInto

func (in *Deployer) DeepCopyInto(out *Deployer)

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

func (*Deployer) DeepCopyObject

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

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

func (*Deployer) GetGroupVersionKind

func (*Deployer) GetGroupVersionKind() schema.GroupVersionKind

func (*Deployer) GetStatus

func (c *Deployer) GetStatus() apis.Status

func (*Deployer) SetDefaults

func (c *Deployer) SetDefaults(ctx context.Context)

func (*Deployer) Validate

func (c *Deployer) Validate(ctx context.Context) *apis.FieldError

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

func (in *Target) DeepCopy() *Target

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

func (*Target) DeepCopyInto

func (in *Target) DeepCopyInto(out *Target)

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

func (*Target) Validate

func (t *Target) Validate(ctx context.Context) *apis.FieldError

Jump to

Keyboard shortcuts

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