code
stringlengths 12
335k
| docstring
stringlengths 20
20.8k
| func_name
stringlengths 1
105
| language
stringclasses 1
value | repo
stringclasses 498
values | path
stringlengths 5
172
| url
stringlengths 43
235
| license
stringclasses 4
values |
---|---|---|---|---|---|---|---|
func (in *RunStatus) DeepCopy() *RunStatus {
if in == nil {
return nil
}
out := new(RunStatus)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunStatus. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *RunStatusFields) DeepCopyInto(out *RunStatusFields) {
*out = *in
if in.StartTime != nil {
in, out := &in.StartTime, &out.StartTime
*out = (*in).DeepCopy()
}
if in.CompletionTime != nil {
in, out := &in.CompletionTime, &out.CompletionTime
*out = (*in).DeepCopy()
}
if in.Results != nil {
in, out := &in.Results, &out.Results
*out = make([]RunResult, len(*in))
copy(*out, *in)
}
if in.RetriesStatus != nil {
in, out := &in.RetriesStatus, &out.RetriesStatus
*out = make([]RunStatus, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
in.ExtraFields.DeepCopyInto(&out.ExtraFields)
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *RunStatusFields) DeepCopy() *RunStatusFields {
if in == nil {
return nil
}
out := new(RunStatusFields)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunStatusFields. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/run/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (rr *ResolutionRequest) Validate(ctx context.Context) (errs *apis.FieldError) {
errs = errs.Also(validateTypeLabel(rr))
return errs.Also(rr.Spec.Validate(ctx).ViaField("spec"))
} | Validate checks that a submitted ResolutionRequest is structurally
sound before the controller receives it. | Validate | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_validation.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_validation.go | Apache-2.0 |
func (rs *ResolutionRequestSpec) Validate(ctx context.Context) (errs *apis.FieldError) {
return nil
} | Validate checks the spec field of a ResolutionRequest is valid. | Validate | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_validation.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_validation.go | Apache-2.0 |
func (rr *ResolutionRequest) SetDefaults(ctx context.Context) {
if rr.TypeMeta.Kind == "" {
rr.TypeMeta.Kind = "ResolutionRequest"
}
if rr.TypeMeta.APIVersion == "" {
rr.TypeMeta.APIVersion = "resolution.tekton.dev/v1beta1"
}
} | SetDefaults walks a ResolutionRequest object and sets any default
values that are required to be set before a reconciler sees it. | SetDefaults | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_defaults.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_defaults.go | Apache-2.0 |
func (rr *ResolutionRequest) ConvertTo(ctx context.Context, sink apis.Convertible) error {
if apis.IsInDelete(ctx) {
return nil
}
return fmt.Errorf("v1beta1 is the highest known version, got: %T", sink)
} | ConvertTo implements apis.Convertible | ConvertTo | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_conversion.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_conversion.go | Apache-2.0 |
func (rr *ResolutionRequest) ConvertFrom(ctx context.Context, source apis.Convertible) error {
if apis.IsInDelete(ctx) {
return nil
}
return fmt.Errorf("v1beta1 is the highest known version, got: %T", source)
} | ConvertFrom implements apis.Convertible | ConvertFrom | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_conversion.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_conversion.go | Apache-2.0 |
func (rr *ResolutionRequest) GetStatus() *duckv1.Status {
return &rr.Status.Status
} | GetStatus implements KRShaped. | GetStatus | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_types.go | Apache-2.0 |
func Kind(kind string) schema.GroupKind {
return SchemeGroupVersion.WithKind(kind).GroupKind()
} | Kind takes an unqualified kind and returns back a Group qualified GroupKind | Kind | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/register.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/register.go | Apache-2.0 |
func Resource(resource string) schema.GroupResource {
return SchemeGroupVersion.WithResource(resource).GroupResource()
} | Resource takes an unqualified resource and returns a Group qualified GroupResource | Resource | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/register.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/register.go | Apache-2.0 |
func addKnownTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(SchemeGroupVersion,
&ResolutionRequest{},
&ResolutionRequestList{},
)
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
return nil
} | Adds the list of known types to Scheme. | addKnownTypes | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/register.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/register.go | Apache-2.0 |
func (in *ResolutionRequest) DeepCopyInto(out *ResolutionRequest) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequest) DeepCopy() *ResolutionRequest {
if in == nil {
return nil
}
out := new(ResolutionRequest)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequest. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequest) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | DeepCopyObject | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestList) DeepCopyInto(out *ResolutionRequestList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]ResolutionRequest, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestList) DeepCopy() *ResolutionRequestList {
if in == nil {
return nil
}
out := new(ResolutionRequestList)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequestList. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | DeepCopyObject | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestSpec) DeepCopyInto(out *ResolutionRequestSpec) {
*out = *in
if in.Params != nil {
in, out := &in.Params, &out.Params
*out = make([]v1.Param, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestSpec) DeepCopy() *ResolutionRequestSpec {
if in == nil {
return nil
}
out := new(ResolutionRequestSpec)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequestSpec. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestStatus) DeepCopyInto(out *ResolutionRequestStatus) {
*out = *in
in.Status.DeepCopyInto(&out.Status)
in.ResolutionRequestStatusFields.DeepCopyInto(&out.ResolutionRequestStatusFields)
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestStatus) DeepCopy() *ResolutionRequestStatus {
if in == nil {
return nil
}
out := new(ResolutionRequestStatus)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequestStatus. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestStatusFields) DeepCopyInto(out *ResolutionRequestStatusFields) {
*out = *in
if in.Source != nil {
in, out := &in.Source, &out.Source
*out = new(v1.RefSource)
(*in).DeepCopyInto(*out)
}
if in.RefSource != nil {
in, out := &in.RefSource, &out.RefSource
*out = new(v1.RefSource)
(*in).DeepCopyInto(*out)
}
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestStatusFields) DeepCopy() *ResolutionRequestStatusFields {
if in == nil {
return nil
}
out := new(ResolutionRequestStatusFields)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequestStatusFields. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/zz_generated.deepcopy.go | Apache-2.0 |
func (*ResolutionRequest) GetGroupVersionKind() schema.GroupVersionKind {
return SchemeGroupVersion.WithKind("ResolutionRequest")
} | GetGroupVersionKind implements kmeta.OwnerRefable. | GetGroupVersionKind | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | Apache-2.0 |
func (*ResolutionRequest) GetConditionSet() apis.ConditionSet {
return resolutionRequestCondSet
} | GetConditionSet implements KRShaped. | GetConditionSet | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | Apache-2.0 |
func (rr *ResolutionRequest) HasStarted() bool {
return rr.Status.GetCondition(apis.ConditionSucceeded).IsUnknown()
} | HasStarted returns whether a ResolutionRequests Status is considered to
be in-progress. | HasStarted | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | Apache-2.0 |
func (rr *ResolutionRequest) IsDone() bool {
finalStateIsUnknown := rr.Status.GetCondition(apis.ConditionSucceeded).IsUnknown()
return !finalStateIsUnknown
} | IsDone returns whether a ResolutionRequests Status is considered to be
in a completed state, independent of success/failure. | IsDone | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | Apache-2.0 |
func (s *ResolutionRequestStatus) InitializeConditions() {
resolutionRequestCondSet.Manage(s).InitializeConditions()
} | InitializeConditions set ths initial values of the conditions. | InitializeConditions | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | Apache-2.0 |
func (s *ResolutionRequestStatus) MarkFailed(reason, message string) {
resolutionRequestCondSet.Manage(s).MarkFalse(apis.ConditionSucceeded, reason, message)
} | MarkFailed sets the Succeeded condition to False with an accompanying
error message. | MarkFailed | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | Apache-2.0 |
func (s *ResolutionRequestStatus) MarkSucceeded() {
resolutionRequestCondSet.Manage(s).MarkTrue(apis.ConditionSucceeded)
} | MarkSucceeded sets the Succeeded condition to True. | MarkSucceeded | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | Apache-2.0 |
func (s *ResolutionRequestStatus) MarkInProgress(message string) {
resolutionRequestCondSet.Manage(s).MarkUnknown(apis.ConditionSucceeded, resolutioncommon.ReasonResolutionInProgress, message)
} | MarkInProgress updates the Succeeded condition to Unknown with an
accompanying message. | MarkInProgress | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1beta1/resolution_request_lifecycle.go | Apache-2.0 |
func (rr *ResolutionRequest) Validate(ctx context.Context) (errs *apis.FieldError) {
errs = errs.Also(validateTypeLabel(rr))
return errs.Also(rr.Spec.Validate(ctx).ViaField("spec"))
} | Validate checks that a submitted ResolutionRequest is structurally
sound before the controller receives it. | Validate | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_validation.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_validation.go | Apache-2.0 |
func (rs *ResolutionRequestSpec) Validate(ctx context.Context) (errs *apis.FieldError) {
return nil
} | Validate checks the spec field of a ResolutionRequest is valid. | Validate | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_validation.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_validation.go | Apache-2.0 |
func (rr *ResolutionRequest) SetDefaults(ctx context.Context) {
if rr.TypeMeta.Kind == "" {
rr.TypeMeta.Kind = "ResolutionRequest"
}
if rr.TypeMeta.APIVersion == "" {
rr.TypeMeta.APIVersion = "resolution.tekton.dev/v1alpha1"
}
} | SetDefaults walks a ResolutionRequest object and sets any default
values that are required to be set before a reconciler sees it. | SetDefaults | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_defaults.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_defaults.go | Apache-2.0 |
func (rr *ResolutionRequest) ConvertTo(ctx context.Context, sink apis.Convertible) error {
if apis.IsInDelete(ctx) {
return nil
}
switch sink := sink.(type) {
case *v1beta1.ResolutionRequest:
sink.ObjectMeta = rr.ObjectMeta
rr.Status.convertTo(ctx, &sink.Status)
return rr.Spec.ConvertTo(ctx, &sink.Spec)
default:
return fmt.Errorf("unknown version, got: %T", sink)
} | ConvertTo implements apis.Convertible | ConvertTo | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_conversion.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_conversion.go | Apache-2.0 |
func (rr *ResolutionRequest) GetStatus() *duckv1.Status {
return &rr.Status.Status
} | GetStatus implements KRShaped. | GetStatus | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_types.go | Apache-2.0 |
func Kind(kind string) schema.GroupKind {
return SchemeGroupVersion.WithKind(kind).GroupKind()
} | Kind takes an unqualified kind and returns back a Group qualified GroupKind | Kind | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/register.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/register.go | Apache-2.0 |
func Resource(resource string) schema.GroupResource {
return SchemeGroupVersion.WithResource(resource).GroupResource()
} | Resource takes an unqualified resource and returns a Group qualified GroupResource | Resource | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/register.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/register.go | Apache-2.0 |
func addKnownTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(SchemeGroupVersion,
&ResolutionRequest{},
&ResolutionRequestList{},
)
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
return nil
} | Adds the list of known types to Scheme. | addKnownTypes | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/register.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/register.go | Apache-2.0 |
func (in *ResolutionRequest) DeepCopyInto(out *ResolutionRequest) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequest) DeepCopy() *ResolutionRequest {
if in == nil {
return nil
}
out := new(ResolutionRequest)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequest. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequest) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | DeepCopyObject | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestList) DeepCopyInto(out *ResolutionRequestList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]ResolutionRequest, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestList) DeepCopy() *ResolutionRequestList {
if in == nil {
return nil
}
out := new(ResolutionRequestList)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequestList. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | DeepCopyObject | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestSpec) DeepCopyInto(out *ResolutionRequestSpec) {
*out = *in
if in.Parameters != nil {
in, out := &in.Parameters, &out.Parameters
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestSpec) DeepCopy() *ResolutionRequestSpec {
if in == nil {
return nil
}
out := new(ResolutionRequestSpec)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequestSpec. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestStatus) DeepCopyInto(out *ResolutionRequestStatus) {
*out = *in
in.Status.DeepCopyInto(&out.Status)
in.ResolutionRequestStatusFields.DeepCopyInto(&out.ResolutionRequestStatusFields)
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestStatus) DeepCopy() *ResolutionRequestStatus {
if in == nil {
return nil
}
out := new(ResolutionRequestStatus)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequestStatus. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestStatusFields) DeepCopyInto(out *ResolutionRequestStatusFields) {
*out = *in
if in.RefSource != nil {
in, out := &in.RefSource, &out.RefSource
*out = new(v1.RefSource)
(*in).DeepCopyInto(*out)
}
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResolutionRequestStatusFields) DeepCopy() *ResolutionRequestStatusFields {
if in == nil {
return nil
}
out := new(ResolutionRequestStatusFields)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolutionRequestStatusFields. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (*ResolutionRequest) GetGroupVersionKind() schema.GroupVersionKind {
return SchemeGroupVersion.WithKind("ResolutionRequest")
} | GetGroupVersionKind implements kmeta.OwnerRefable. | GetGroupVersionKind | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | Apache-2.0 |
func (*ResolutionRequest) GetConditionSet() apis.ConditionSet {
return resolutionRequestCondSet
} | GetConditionSet implements KRShaped. | GetConditionSet | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | Apache-2.0 |
func (rr *ResolutionRequest) HasStarted() bool {
return rr.Status.GetCondition(apis.ConditionSucceeded).IsUnknown()
} | HasStarted returns whether a ResolutionRequests Status is considered to
be in-progress. | HasStarted | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | Apache-2.0 |
func (rr *ResolutionRequest) IsDone() bool {
finalStateIsUnknown := rr.Status.GetCondition(apis.ConditionSucceeded).IsUnknown()
return !finalStateIsUnknown
} | IsDone returns whether a ResolutionRequests Status is considered to be
in a completed state, independent of success/failure. | IsDone | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | Apache-2.0 |
func (s *ResolutionRequestStatus) InitializeConditions() {
resolutionRequestCondSet.Manage(s).InitializeConditions()
} | InitializeConditions set ths initial values of the conditions. | InitializeConditions | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | Apache-2.0 |
func (s *ResolutionRequestStatus) MarkFailed(reason, message string) {
resolutionRequestCondSet.Manage(s).MarkFalse(apis.ConditionSucceeded, reason, message)
} | MarkFailed sets the Succeeded condition to False with an accompanying
error message. | MarkFailed | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | Apache-2.0 |
func (s *ResolutionRequestStatus) MarkSucceeded() {
resolutionRequestCondSet.Manage(s).MarkTrue(apis.ConditionSucceeded)
} | MarkSucceeded sets the Succeeded condition to True. | MarkSucceeded | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | Apache-2.0 |
func (s *ResolutionRequestStatus) MarkInProgress(message string) {
resolutionRequestCondSet.Manage(s).MarkUnknown(apis.ConditionSucceeded, resolutioncommon.ReasonResolutionInProgress, message)
} | MarkInProgress updates the Succeeded condition to Unknown with an
accompanying message. | MarkInProgress | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resolution/v1alpha1/resolution_request_lifecycle.go | Apache-2.0 |
func Kind(kind string) schema.GroupKind {
return SchemeGroupVersion.WithKind(kind).GroupKind()
} | Kind takes an unqualified kind and returns back a Group qualified GroupKind | Kind | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/register.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/register.go | Apache-2.0 |
func Resource(resource string) schema.GroupResource {
return SchemeGroupVersion.WithResource(resource).GroupResource()
} | Resource takes an unqualified resource and returns a Group qualified GroupResource | Resource | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/register.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/register.go | Apache-2.0 |
func addKnownTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(SchemeGroupVersion,
&PipelineResource{},
&PipelineResourceList{},
)
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
return nil
} | Adds the list of known types to Scheme. | addKnownTypes | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/register.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/register.go | Apache-2.0 |
func (in *PipelineResource) DeepCopyInto(out *PipelineResource) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
if in.Status != nil {
in, out := &in.Status, &out.Status
*out = new(PipelineResourceStatus)
**out = **in
}
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *PipelineResource) DeepCopy() *PipelineResource {
if in == nil {
return nil
}
out := new(PipelineResource)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResource. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *PipelineResource) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | DeepCopyObject | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *PipelineResourceList) DeepCopyInto(out *PipelineResourceList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]PipelineResource, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *PipelineResourceList) DeepCopy() *PipelineResourceList {
if in == nil {
return nil
}
out := new(PipelineResourceList)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResourceList. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *PipelineResourceList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. | DeepCopyObject | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *PipelineResourceSpec) DeepCopyInto(out *PipelineResourceSpec) {
*out = *in
if in.Params != nil {
in, out := &in.Params, &out.Params
*out = make([]ResourceParam, len(*in))
copy(*out, *in)
}
if in.SecretParams != nil {
in, out := &in.SecretParams, &out.SecretParams
*out = make([]SecretParam, len(*in))
copy(*out, *in)
}
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *PipelineResourceSpec) DeepCopy() *PipelineResourceSpec {
if in == nil {
return nil
}
out := new(PipelineResourceSpec)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResourceSpec. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *PipelineResourceStatus) DeepCopyInto(out *PipelineResourceStatus) {
*out = *in
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *PipelineResourceStatus) DeepCopy() *PipelineResourceStatus {
if in == nil {
return nil
}
out := new(PipelineResourceStatus)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResourceStatus. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResourceDeclaration) DeepCopyInto(out *ResourceDeclaration) {
*out = *in
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResourceDeclaration) DeepCopy() *ResourceDeclaration {
if in == nil {
return nil
}
out := new(ResourceDeclaration)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDeclaration. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResourceParam) DeepCopyInto(out *ResourceParam) {
*out = *in
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *ResourceParam) DeepCopy() *ResourceParam {
if in == nil {
return nil
}
out := new(ResourceParam)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceParam. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *SecretParam) DeepCopyInto(out *SecretParam) {
*out = *in
return
} | DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. | DeepCopyInto | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (in *SecretParam) DeepCopy() *SecretParam {
if in == nil {
return nil
}
out := new(SecretParam)
in.DeepCopyInto(out)
return out
} | DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretParam. | DeepCopy | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/zz_generated.deepcopy.go | Apache-2.0 |
func (i Images) Validate() error {
var unset []string
for _, f := range []struct {
v, name string
}{
{i.EntrypointImage, "entrypoint-image"},
{i.SidecarLogResultsImage, "sidecarlogresults-image"},
{i.NopImage, "nop-image"},
{i.ShellImage, "shell-image"},
{i.ShellImageWin, "shell-image-win"},
{i.WorkingDirInitImage, "workingdirinit-image"},
} {
if f.v == "" {
unset = append(unset, f.name)
}
}
if len(unset) > 0 {
sort.Strings(unset)
return fmt.Errorf("found unset image flags: %s", unset)
}
return nil
} | Validate returns an error if any image is not set. | Validate | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/images.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/images.go | Apache-2.0 |
func (p *Pipeline) ConvertTo(ctx context.Context, to apis.Convertible) error {
if apis.IsInDelete(ctx) {
return nil
}
switch sink := to.(type) {
case *v1.Pipeline:
sink.ObjectMeta = p.ObjectMeta
if err := serializePipelineResources(&sink.ObjectMeta, &p.Spec); err != nil {
return err
}
return p.Spec.ConvertTo(ctx, &sink.Spec, &sink.ObjectMeta)
default:
return fmt.Errorf("unknown version, got: %T", sink)
} | ConvertTo implements apis.Convertible | ConvertTo | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_conversion.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/pipeline_conversion.go | Apache-2.0 |
func (tr *TaskRef) IsCustomTask() bool {
// Note that if `apiVersion` is set to `"tekton.dev/v1beta1"` and `kind` is set to `"Task"`,
// the reference will be considered a Custom Task - https://github.com/tektoncd/pipeline/issues/6457
return tr != nil && tr.APIVersion != "" && tr.Kind != ""
} | IsCustomTask checks whether the reference is to a Custom Task | IsCustomTask | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskref_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/taskref_types.go | Apache-2.0 |
func (pp *ParamSpec) SetDefaults(context.Context) {
if pp == nil {
return
}
// Propagate inferred type to the parent ParamSpec's type, and default type to the PropertySpec's type
// The sequence to look at is type in ParamSpec -> properties -> type in default -> array/string/object value in default
// If neither `properties` or `default` section is provided, ParamTypeString will be the default type.
switch {
case pp.Type != "":
// If param type is provided by the author, do nothing but just set default type for PropertySpec in case `properties` section is provided.
pp.setDefaultsForProperties()
case pp.Properties != nil:
pp.Type = ParamTypeObject
// Also set default type for PropertySpec
pp.setDefaultsForProperties()
case pp.Default == nil:
// ParamTypeString is the default value (when no type can be inferred from the default value)
pp.Type = ParamTypeString
case pp.Default.Type != "":
pp.Type = pp.Default.Type
case pp.Default.ArrayVal != nil:
pp.Type = ParamTypeArray
case pp.Default.ObjectVal != nil:
pp.Type = ParamTypeObject
default:
pp.Type = ParamTypeString
}
} | SetDefaults set the default type | SetDefaults | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func (ps ParamSpecs) getNames() []string {
var names []string
for _, p := range ps {
names = append(names, p.Name)
}
return names
} | getNames returns all the names of the declared parameters | getNames | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func (ps ParamSpecs) sortByType() (ParamSpecs, ParamSpecs, ParamSpecs) {
var stringParams, arrayParams, objectParams ParamSpecs
for _, p := range ps {
switch p.Type {
case ParamTypeArray:
arrayParams = append(arrayParams, p)
case ParamTypeObject:
objectParams = append(objectParams, p)
case ParamTypeString:
fallthrough
default:
stringParams = append(stringParams, p)
}
}
return stringParams, arrayParams, objectParams
} | sortByType splits the input params into string params, array params, and object params, in that order | sortByType | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func (ps ParamSpecs) validateNoDuplicateNames() *apis.FieldError {
var errs *apis.FieldError
names := ps.getNames()
for dup := range findDups(names) {
errs = errs.Also(apis.ErrGeneric("parameter appears more than once", "").ViaFieldKey("params", dup))
}
return errs
} | validateNoDuplicateNames returns an error if any of the params have the same name | validateNoDuplicateNames | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func (ps ParamSpecs) validateParamEnums(ctx context.Context) *apis.FieldError {
var errs *apis.FieldError
for _, p := range ps {
if len(p.Enum) == 0 {
continue
}
if !config.FromContextOrDefaults(ctx).FeatureFlags.EnableParamEnum {
errs = errs.Also(errs, apis.ErrGeneric(fmt.Sprintf("feature flag `%s` should be set to true to use Enum", config.EnableParamEnum), "").ViaKey(p.Name))
}
if p.Type != ParamTypeString {
errs = errs.Also(apis.ErrGeneric("enum can only be set with string type param", "").ViaKey(p.Name))
}
for dup := range findDups(p.Enum) {
errs = errs.Also(apis.ErrGeneric(fmt.Sprintf("parameter enum value %v appears more than once", dup), "").ViaKey(p.Name))
}
if p.Default != nil && p.Default.StringVal != "" {
if !slices.Contains(p.Enum, p.Default.StringVal) {
errs = errs.Also(apis.ErrGeneric(fmt.Sprintf("param default value %v not in the enum list", p.Default.StringVal), "").ViaKey(p.Name))
}
}
}
return errs
} | validateParamEnums validates feature flag, duplication and allowed types for Param Enum | validateParamEnums | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func findDups(vals []string) sets.String {
seen := sets.String{}
dups := sets.String{}
for _, val := range vals {
if seen.Has(val) {
dups.Insert(val)
}
seen.Insert(val)
}
return dups
} | findDups returns the duplicate element in the given slice | findDups | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func (pp *ParamSpec) setDefaultsForProperties() {
for key, propertySpec := range pp.Properties {
if propertySpec.Type == "" {
pp.Properties[key] = PropertySpec{Type: ParamTypeString}
}
}
} | setDefaultsForProperties sets default type for PropertySpec (string) if it's not specified | setDefaultsForProperties | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func (ps Params) ExtractNames() sets.String {
names := sets.String{}
for _, p := range ps {
names.Insert(p.Name)
}
return names
} | ExtractNames returns a set of unique names | ExtractNames | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func (ps Params) extractParamMapArrVals() map[string][]string {
paramsMap := make(map[string][]string)
for _, p := range ps {
paramsMap[p.Name] = p.Value.ArrayVal
}
return paramsMap
} | extractParamMapArrVals creates a param map with the key: param.Name and
val: param.Value.ArrayVal | extractParamMapArrVals | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func (ps Params) ExtractParamArrayLengths() map[string]int {
// Collect all array params
arrayParamsLengths := make(map[string]int)
// Collect array params lengths from params
for _, p := range ps {
if p.Value.Type == ParamTypeArray {
arrayParamsLengths[p.Name] = len(p.Value.ArrayVal)
}
}
return arrayParamsLengths
} | ExtractParamArrayLengths extract and return the lengths of all array params
Example of returned value: {"a-array-params": 2,"b-array-params": 2 } | ExtractParamArrayLengths | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func (ps Params) validateDuplicateParameters() (errs *apis.FieldError) {
taskParamNames := sets.NewString()
for i, param := range ps {
if taskParamNames.Has(param.Name) {
errs = errs.Also(apis.ErrGeneric(fmt.Sprintf("parameter names must be unique,"+
" the parameter \"%s\" is also defined at", param.Name), fmt.Sprintf("[%d].name", i)))
}
taskParamNames.Insert(param.Name)
}
return errs
} | validateDuplicateParameters checks if a parameter with the same name is defined more than once | validateDuplicateParameters | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func (ps Params) ReplaceVariables(stringReplacements map[string]string, arrayReplacements map[string][]string, objectReplacements map[string]map[string]string) Params {
params := ps.DeepCopy()
for i := range params {
params[i].Value.ApplyReplacements(stringReplacements, arrayReplacements, objectReplacements)
}
return params
} | ReplaceVariables applies string, array and object replacements to variables in Params | ReplaceVariables | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func (ps ParamSpecs) ExtractDefaultParamArrayLengths() map[string]int {
// Collect all array params
arrayParamsLengths := make(map[string]int)
// Collect array params lengths from defaults
for _, p := range ps {
if p.Default != nil {
if p.Default.Type == ParamTypeArray {
arrayParamsLengths[p.Name] = len(p.Default.ArrayVal)
}
}
}
return arrayParamsLengths
} | ExtractDefaultParamArrayLengths extract and return the lengths of all array param defaults
Example of returned value: {"a-array-params": 2,"b-array-params": 2 } | ExtractDefaultParamArrayLengths | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func extractArrayIndexingParamRefs(paramReference string) []string {
l := []string{}
list := substitution.ExtractArrayIndexingParamsExpressions(paramReference)
for _, val := range list {
indexString := substitution.ExtractIndexString(val)
if indexString != "" {
l = append(l, val)
}
}
return l
} | extractArrayIndexingParamRefs takes a string of the form `foo-$(params.array-param[1])-bar` and extracts the portions of the string that reference an element in an array param.
For example, for the string “foo-$(params.array-param[1])-bar-$(params.other-array-param[2])-$(params.string-param)`,
it would return ["$(params.array-param[1])", "$(params.other-array-param[2])"]. | extractArrayIndexingParamRefs | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func extractParamRefsFromSteps(steps []Step) []string {
paramsRefs := []string{}
for _, step := range steps {
paramsRefs = append(paramsRefs, step.Script)
container := step.ToK8sContainer()
paramsRefs = append(paramsRefs, extractParamRefsFromContainer(container)...)
}
return paramsRefs
} | extractParamRefsFromSteps get all array indexing references from steps | extractParamRefsFromSteps | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func extractParamRefsFromStepTemplate(stepTemplate *StepTemplate) []string {
if stepTemplate == nil {
return nil
}
container := stepTemplate.ToK8sContainer()
return extractParamRefsFromContainer(container)
} | extractParamRefsFromStepTemplate get all array indexing references from StepsTemplate | extractParamRefsFromStepTemplate | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func extractParamRefsFromSidecars(sidecars []Sidecar) []string {
paramsRefs := []string{}
for _, s := range sidecars {
paramsRefs = append(paramsRefs, s.Script)
container := s.ToK8sContainer()
paramsRefs = append(paramsRefs, extractParamRefsFromContainer(container)...)
}
return paramsRefs
} | extractParamRefsFromSidecars get all array indexing references from sidecars | extractParamRefsFromSidecars | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
func extractParamRefsFromVolumes(volumes []corev1.Volume) []string {
paramsRefs := []string{}
for i, v := range volumes {
paramsRefs = append(paramsRefs, v.Name)
if v.VolumeSource.ConfigMap != nil {
paramsRefs = append(paramsRefs, v.ConfigMap.Name)
for _, item := range v.ConfigMap.Items {
paramsRefs = append(paramsRefs, item.Key)
paramsRefs = append(paramsRefs, item.Path)
}
}
if v.VolumeSource.Secret != nil {
paramsRefs = append(paramsRefs, v.Secret.SecretName)
for _, item := range v.Secret.Items {
paramsRefs = append(paramsRefs, item.Key)
paramsRefs = append(paramsRefs, item.Path)
}
}
if v.PersistentVolumeClaim != nil {
paramsRefs = append(paramsRefs, v.PersistentVolumeClaim.ClaimName)
}
if v.Projected != nil {
for _, s := range volumes[i].Projected.Sources {
if s.ConfigMap != nil {
paramsRefs = append(paramsRefs, s.ConfigMap.Name)
}
if s.Secret != nil {
paramsRefs = append(paramsRefs, s.Secret.Name)
}
if s.ServiceAccountToken != nil {
paramsRefs = append(paramsRefs, s.ServiceAccountToken.Audience)
}
}
}
if v.CSI != nil {
if v.CSI.NodePublishSecretRef != nil {
paramsRefs = append(paramsRefs, v.CSI.NodePublishSecretRef.Name)
}
if v.CSI.VolumeAttributes != nil {
for _, value := range v.CSI.VolumeAttributes {
paramsRefs = append(paramsRefs, value)
}
}
}
}
return paramsRefs
} | extractParamRefsFromVolumes get all array indexing references from volumes | extractParamRefsFromVolumes | go | tektoncd/cli | vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | https://github.com/tektoncd/cli/blob/master/vendor/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1/param_types.go | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.