Documentation
¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=resolution.tekton.dev
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ResolutionRequest
- func (rr *ResolutionRequest) ConvertFrom(ctx context.Context, source apis.Convertible) error
- func (rr *ResolutionRequest) ConvertTo(ctx context.Context, sink apis.Convertible) error
- func (in *ResolutionRequest) DeepCopy() *ResolutionRequest
- func (in *ResolutionRequest) DeepCopyInto(out *ResolutionRequest)
- func (in *ResolutionRequest) DeepCopyObject() runtime.Object
- func (*ResolutionRequest) GetConditionSet() apis.ConditionSet
- func (*ResolutionRequest) GetGroupVersionKind() schema.GroupVersionKind
- func (rr *ResolutionRequest) GetStatus() *duckv1.Status
- func (rr *ResolutionRequest) HasStarted() bool
- func (rr *ResolutionRequest) IsDone() bool
- func (rr *ResolutionRequest) SetDefaults(ctx context.Context)
- func (rr *ResolutionRequest) Validate(ctx context.Context) (errs *apis.FieldError)
- type ResolutionRequestList
- type ResolutionRequestSpec
- type ResolutionRequestStatus
- func (in *ResolutionRequestStatus) DeepCopy() *ResolutionRequestStatus
- func (in *ResolutionRequestStatus) DeepCopyInto(out *ResolutionRequestStatus)
- func (s *ResolutionRequestStatus) InitializeConditions()
- func (s *ResolutionRequestStatus) MarkFailed(reason, message string)
- func (s *ResolutionRequestStatus) MarkInProgress(message string)
- func (s *ResolutionRequestStatus) MarkSucceeded()
- type ResolutionRequestStatusFields
Constants ¶
const ManagedByLabelKey = "app.kubernetes.io/managed-by"
ManagedByLabelKey is the label key used to mark what is managing this resource
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: resolution.GroupName, Version: "v1beta1"}
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 ResolutionRequest ¶
type ResolutionRequest struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the information for the request part of the resource request. // +optional Spec ResolutionRequestSpec `json:"spec,omitempty"` // Status communicates the state of the request and, ultimately, // the content of the resolved resource. // +optional Status ResolutionRequestStatus `json:"status,omitempty"` }
ResolutionRequest is an object for requesting the content of a Tekton resource like a pipeline.yaml.
+genclient +genreconciler
func (*ResolutionRequest) ConvertFrom ¶
func (rr *ResolutionRequest) ConvertFrom(ctx context.Context, source apis.Convertible) error
ConvertFrom implements apis.Convertible
func (*ResolutionRequest) ConvertTo ¶
func (rr *ResolutionRequest) ConvertTo(ctx context.Context, sink apis.Convertible) error
ConvertTo implements apis.Convertible
func (*ResolutionRequest) DeepCopy ¶
func (in *ResolutionRequest) DeepCopy() *ResolutionRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequest.
func (*ResolutionRequest) DeepCopyInto ¶
func (in *ResolutionRequest) DeepCopyInto(out *ResolutionRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResolutionRequest) DeepCopyObject ¶
func (in *ResolutionRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ResolutionRequest) GetConditionSet ¶
func (*ResolutionRequest) GetConditionSet() apis.ConditionSet
GetConditionSet implements KRShaped.
func (*ResolutionRequest) GetGroupVersionKind ¶
func (*ResolutionRequest) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable.
func (*ResolutionRequest) GetStatus ¶
func (rr *ResolutionRequest) GetStatus() *duckv1.Status
GetStatus implements KRShaped.
func (*ResolutionRequest) HasStarted ¶
func (rr *ResolutionRequest) HasStarted() bool
HasStarted returns whether a ResolutionRequests Status is considered to be in-progress.
func (*ResolutionRequest) IsDone ¶
func (rr *ResolutionRequest) IsDone() bool
IsDone returns whether a ResolutionRequests Status is considered to be in a completed state, independent of success/failure.
func (*ResolutionRequest) SetDefaults ¶
func (rr *ResolutionRequest) SetDefaults(ctx context.Context)
SetDefaults walks a ResolutionRequest object and sets any default values that are required to be set before a reconciler sees it.
func (*ResolutionRequest) Validate ¶
func (rr *ResolutionRequest) Validate(ctx context.Context) (errs *apis.FieldError)
Validate checks that a submitted ResolutionRequest is structurally sound before the controller receives it.
type ResolutionRequestList ¶
type ResolutionRequestList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata"` Items []ResolutionRequest `json:"items"` }
ResolutionRequestList is a list of ResolutionRequests.
func (*ResolutionRequestList) DeepCopy ¶
func (in *ResolutionRequestList) DeepCopy() *ResolutionRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequestList.
func (*ResolutionRequestList) DeepCopyInto ¶
func (in *ResolutionRequestList) DeepCopyInto(out *ResolutionRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResolutionRequestList) DeepCopyObject ¶
func (in *ResolutionRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResolutionRequestSpec ¶
type ResolutionRequestSpec struct { // Parameters are the runtime attributes passed to // the resolver to help it figure out how to resolve the // resource being requested. For example: repo URL, commit SHA, // path to file, the kind of authentication to leverage, etc. // +optional Params []pipelinev1beta1.Param `json:"params,omitempty"` }
ResolutionRequestSpec are all the fields in the spec of the ResolutionRequest CRD.
func (*ResolutionRequestSpec) DeepCopy ¶
func (in *ResolutionRequestSpec) DeepCopy() *ResolutionRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequestSpec.
func (*ResolutionRequestSpec) DeepCopyInto ¶
func (in *ResolutionRequestSpec) DeepCopyInto(out *ResolutionRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResolutionRequestSpec) Validate ¶
func (rs *ResolutionRequestSpec) Validate(ctx context.Context) (errs *apis.FieldError)
Validate checks the the spec field of a ResolutionRequest is valid.
type ResolutionRequestStatus ¶
type ResolutionRequestStatus struct { duckv1.Status `json:",inline"` ResolutionRequestStatusFields `json:",inline"` }
ResolutionRequestStatus are all the fields in a ResolutionRequest's status subresource.
func (*ResolutionRequestStatus) DeepCopy ¶
func (in *ResolutionRequestStatus) DeepCopy() *ResolutionRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequestStatus.
func (*ResolutionRequestStatus) DeepCopyInto ¶
func (in *ResolutionRequestStatus) DeepCopyInto(out *ResolutionRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResolutionRequestStatus) InitializeConditions ¶
func (s *ResolutionRequestStatus) InitializeConditions()
InitializeConditions set ths initial values of the conditions.
func (*ResolutionRequestStatus) MarkFailed ¶
func (s *ResolutionRequestStatus) MarkFailed(reason, message string)
MarkFailed sets the Succeeded condition to False with an accompanying error message.
func (*ResolutionRequestStatus) MarkInProgress ¶
func (s *ResolutionRequestStatus) MarkInProgress(message string)
MarkInProgress updates the Succeeded condition to Unknown with an accompanying message.
func (*ResolutionRequestStatus) MarkSucceeded ¶
func (s *ResolutionRequestStatus) MarkSucceeded()
MarkSucceeded sets the Succeeded condition to True.
type ResolutionRequestStatusFields ¶
type ResolutionRequestStatusFields struct { // Data is a string representation of the resolved content // of the requested resource in-lined into the ResolutionRequest // object. Data string `json:"data"` }
ResolutionRequestStatusFields are the ResolutionRequest-specific fields for the status subresource.
func (*ResolutionRequestStatusFields) DeepCopy ¶
func (in *ResolutionRequestStatusFields) DeepCopy() *ResolutionRequestStatusFields
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequestStatusFields.
func (*ResolutionRequestStatusFields) DeepCopyInto ¶
func (in *ResolutionRequestStatusFields) DeepCopyInto(out *ResolutionRequestStatusFields)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.