v1alpha1

package
v0.0.0-...-dc5cab6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=custom.tekton.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder builds a scheme with the types known to the package.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme adds the types known to this package to an existing schema.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: approverequests.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 ApproveRequest

type ApproveRequest struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec holds the desired state of the ApproveRequest (from the client).
	// +optional
	Spec ApproveRequestSpec `json:"spec,omitempty"`

	// Status communicates the observed state of the ApproveRequest (from the controller).
	// +optional
	Status ApproveRequestStatus `json:"status,omitempty"`
}

ApproveRequest is a Knative abstraction that encapsulates the interface by which Knative components express a desire to have a particular image cached.

+genclient +genreconciler +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ApproveRequest) DeepCopy

func (in *ApproveRequest) DeepCopy() *ApproveRequest

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

func (*ApproveRequest) DeepCopyInto

func (in *ApproveRequest) DeepCopyInto(out *ApproveRequest)

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

func (*ApproveRequest) DeepCopyObject

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

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

func (*ApproveRequest) GetConditionSet

func (as *ApproveRequest) GetConditionSet() apis.ConditionSet

GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.

func (*ApproveRequest) GetGroupVersionKind

func (*ApproveRequest) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind implements kmeta.OwnerRefable

func (*ApproveRequest) GetStatus

func (as *ApproveRequest) GetStatus() *duckv1.Status

GetStatus retrieves the status of the resource. Implements the KRShaped interface.

func (*ApproveRequest) SetDefaults

func (as *ApproveRequest) SetDefaults(ctx context.Context)

SetDefaults implements apis.Defaultable

func (*ApproveRequest) Validate

func (as *ApproveRequest) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type ApproveRequestList

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

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

ApproveRequestList is a list of ApproveRequest resources

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ApproveRequestList) DeepCopy

func (in *ApproveRequestList) DeepCopy() *ApproveRequestList

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

func (*ApproveRequestList) DeepCopyInto

func (in *ApproveRequestList) DeepCopyInto(out *ApproveRequestList)

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

func (*ApproveRequestList) DeepCopyObject

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

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

type ApproveRequestSpec

type ApproveRequestSpec struct {
	// RequstName holds the name of the Kubernetes Service to expose as an "addressable".
	Approver string `json:"approver,omitempty"`
}

ApproveRequestSpec holds the desired state of the ApproveRequest (from the client).

func (*ApproveRequestSpec) DeepCopy

func (in *ApproveRequestSpec) DeepCopy() *ApproveRequestSpec

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

func (*ApproveRequestSpec) DeepCopyInto

func (in *ApproveRequestSpec) DeepCopyInto(out *ApproveRequestSpec)

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

func (*ApproveRequestSpec) Validate

func (ass *ApproveRequestSpec) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type ApproveRequestStatus

type ApproveRequestStatus struct {
	duckv1.Status `json:",inline,omitempty"`
	// RequstName holds the name of the Kubernetes Service to expose as an "addressable".
	Requests []Request `json:"requests"`
}

ApproveRequestStatus communicates the observed state of the ApproveRequest (from the controller).

func (*ApproveRequestStatus) DeepCopy

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

func (*ApproveRequestStatus) DeepCopyInto

func (in *ApproveRequestStatus) DeepCopyInto(out *ApproveRequestStatus)

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

func (*ApproveRequestStatus) InitializeConditions

func (ass *ApproveRequestStatus) InitializeConditions()

InitializeConditions sets the initial values to the conditions.

func (*ApproveRequestStatus) MarkServiceAvailable

func (ass *ApproveRequestStatus) MarkServiceAvailable()

func (*ApproveRequestStatus) MarkServiceUnavailable

func (ass *ApproveRequestStatus) MarkServiceUnavailable(name string)

type Request

type Request struct {
	// RequstName holds the name of the Kubernetes Service to expose as an "addressable".
	RequestName      string      `json:"requstName,omitempty"`
	RequestTimestamp metav1.Time `json:"requestTimestamp,omitempty" protobuf:"bytes,8,opt,name=requestTimestamp"`
	// Approved shows if the request has been approved or not
	Approved         bool        `json:"approved,omitempty"`
	ApproveTimestamp metav1.Time `json:"approveTimestamp,omitempty" protobuf:"bytes,8,opt,name=approveTimestamp"`
}

func (*Request) DeepCopy

func (in *Request) DeepCopy() *Request

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

func (*Request) DeepCopyInto

func (in *Request) DeepCopyInto(out *Request)

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

type RunReason

type RunReason string

JobRunReason represents a reason for the Run "Succeeded" condition

const (
	// ApproveRequestConditionReady is set when the revision is starting to materialize
	// runtime resources, and becomes true when those resources are ready.
	ApproveRequestConditionReady = apis.ConditionReady
	// ApproveRequestRunReasonCouldntGet indicates that the associated Exception couldn't be retrieved
	ApproveRequestRunReasonCouldntGet RunReason = "CouldntGet"
	// ApproveRequestRunReasonRunning indicates that the new created pipelinerun is running
	ApproveRequestRunReasonRunning RunReason = "Running"
	// ApproveRequestRunReasonSucceeded indicates that created Pipelinerun success or no error in original Pipelinerun
	ApproveRequestRunReasonSucceeded RunReason = "Succeeded"
)

func (RunReason) String

func (e RunReason) String() string

Jump to

Keyboard shortcuts

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