v1alpha1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the v1alpha1 group Sample resources of the http provider. +kubebuilder:object:generate=true +groupName=http.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "http.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	DisposableRequestKind             = reflect.TypeOf(DisposableRequest{}).Name()
	DisposableRequestGroupKind        = schema.GroupKind{Group: Group, Kind: DisposableRequestKind}.String()
	DisposableRequestKindAPIVersion   = DisposableRequestKind + "." + SchemeGroupVersion.String()
	DisposableRequestGroupVersionKind = SchemeGroupVersion.WithKind(DisposableRequestKind)
)

DisposableRequest type metadata.

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

This section is empty.

Types

type DisposableRequest

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

	Spec   DisposableRequestSpec   `json:"spec"`
	Status DisposableRequestStatus `json:"status,omitempty"`
}

A DisposableRequest is an example API type. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,http}

func (*DisposableRequest) DeepCopy

func (in *DisposableRequest) DeepCopy() *DisposableRequest

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

func (*DisposableRequest) DeepCopyInto

func (in *DisposableRequest) DeepCopyInto(out *DisposableRequest)

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

func (*DisposableRequest) DeepCopyObject

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

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

func (*DisposableRequest) GetCondition

func (mg *DisposableRequest) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this DisposableRequest.

func (*DisposableRequest) GetDeletionPolicy

func (mg *DisposableRequest) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this DisposableRequest.

func (*DisposableRequest) GetManagementPolicy

func (mg *DisposableRequest) GetManagementPolicy() xpv1.ManagementPolicy

GetManagementPolicy of this DisposableRequest.

func (*DisposableRequest) GetProviderConfigReference

func (mg *DisposableRequest) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this DisposableRequest.

func (*DisposableRequest) GetProviderReference

func (mg *DisposableRequest) GetProviderReference() *xpv1.Reference

GetProviderReference of this DisposableRequest. Deprecated: Use GetProviderConfigReference.

func (*DisposableRequest) GetPublishConnectionDetailsTo

func (mg *DisposableRequest) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this DisposableRequest.

func (*DisposableRequest) GetWriteConnectionSecretToReference

func (mg *DisposableRequest) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this DisposableRequest.

func (*DisposableRequest) SetBody

func (d *DisposableRequest) SetBody(body string)

func (*DisposableRequest) SetConditions

func (mg *DisposableRequest) SetConditions(c ...xpv1.Condition)

SetConditions of this DisposableRequest.

func (*DisposableRequest) SetDeletionPolicy

func (mg *DisposableRequest) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this DisposableRequest.

func (*DisposableRequest) SetError

func (d *DisposableRequest) SetError(err error)

func (*DisposableRequest) SetHeaders

func (d *DisposableRequest) SetHeaders(headers map[string][]string)

func (*DisposableRequest) SetManagementPolicy

func (mg *DisposableRequest) SetManagementPolicy(r xpv1.ManagementPolicy)

SetManagementPolicy of this DisposableRequest.

func (*DisposableRequest) SetProviderConfigReference

func (mg *DisposableRequest) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this DisposableRequest.

func (*DisposableRequest) SetProviderReference

func (mg *DisposableRequest) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this DisposableRequest. Deprecated: Use SetProviderConfigReference.

func (*DisposableRequest) SetPublishConnectionDetailsTo

func (mg *DisposableRequest) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this DisposableRequest.

func (*DisposableRequest) SetRequestDetails

func (d *DisposableRequest) SetRequestDetails(url, method, body string, headers map[string][]string)

func (*DisposableRequest) SetStatusCode

func (d *DisposableRequest) SetStatusCode(statusCode int)

func (*DisposableRequest) SetSynced

func (d *DisposableRequest) SetSynced(synced bool)

func (*DisposableRequest) SetWriteConnectionSecretToReference

func (mg *DisposableRequest) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this DisposableRequest.

type DisposableRequestList

type DisposableRequestList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []DisposableRequest `json:"items"`
}

DisposableRequestList contains a list of DisposableRequest

func (*DisposableRequestList) DeepCopy

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

func (*DisposableRequestList) DeepCopyInto

func (in *DisposableRequestList) DeepCopyInto(out *DisposableRequestList)

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

func (*DisposableRequestList) DeepCopyObject

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

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

func (*DisposableRequestList) GetItems

func (l *DisposableRequestList) GetItems() []resource.Managed

GetItems of this DisposableRequestList.

type DisposableRequestParameters

type DisposableRequestParameters struct {
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Field 'forProvider.url' is immutable"
	URL string `json:"url"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Field 'forProvider.method' is immutable"
	Method string `json:"method"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Field 'forProvider.headers' is immutable"
	Headers map[string][]string `json:"headers,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Field 'forProvider.body' is immutable"
	Body string `json:"body,omitempty"`

	WaitTimeout *metav1.Duration `json:"waitTimeout,omitempty"`

	// RollbackRetriesLimit is max number of attempts to retry HTTP request by sending again the request.
	RollbackRetriesLimit *int32 `json:"rollbackRetriesLimit,omitempty"`

	// InsecureSkipTLSVerify, when set to true, skips TLS certificate checks for the HTTP request
	InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty"`

	// ExpectedResponse is a jq filter expression used to evaluate the HTTP response and determine if it matches the expected criteria.
	// The expression should return a boolean; if true, the response is considered expected.
	// Example: '.Body.job_status == "success"'
	ExpectedResponse string `json:"expectedResponse,omitempty"`
}

DisposableRequestParameters are the configurable fields of a DisposableRequest.

func (*DisposableRequestParameters) DeepCopy

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

func (*DisposableRequestParameters) DeepCopyInto

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

type DisposableRequestSpec

type DisposableRequestSpec struct {
	xpv1.ResourceSpec `json:",inline"`

	ForProvider DisposableRequestParameters `json:"forProvider"`
}

A DisposableRequestSpec defines the desired state of a DisposableRequest.

func (*DisposableRequestSpec) DeepCopy

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

func (*DisposableRequestSpec) DeepCopyInto

func (in *DisposableRequestSpec) DeepCopyInto(out *DisposableRequestSpec)

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

type DisposableRequestStatus

type DisposableRequestStatus struct {
	xpv1.ResourceStatus `json:",inline"`
	Response            Response `json:"response,omitempty"`
	Failed              int32    `json:"failed,omitempty"`
	Error               string   `json:"error,omitempty"`
	Synced              bool     `json:"synced,omitempty"`
	RequestDetails      Mapping  `json:"requestDetails,omitempty"`
}

A DisposableRequestStatus represents the observed state of a DisposableRequest.

func (*DisposableRequestStatus) DeepCopy

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

func (*DisposableRequestStatus) DeepCopyInto

func (in *DisposableRequestStatus) DeepCopyInto(out *DisposableRequestStatus)

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

type Mapping

type Mapping struct {
	Method  string              `json:"method"`
	Body    string              `json:"body,omitempty"`
	URL     string              `json:"url"`
	Headers map[string][]string `json:"headers,omitempty"`
}

func (*Mapping) DeepCopy

func (in *Mapping) DeepCopy() *Mapping

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

func (*Mapping) DeepCopyInto

func (in *Mapping) DeepCopyInto(out *Mapping)

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

type Response

type Response struct {
	StatusCode int                 `json:"statusCode,omitempty"`
	Body       string              `json:"body,omitempty"`
	Headers    map[string][]string `json:"headers,omitempty"`
}

func (*Response) DeepCopy

func (in *Response) DeepCopy() *Response

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

func (*Response) DeepCopyInto

func (in *Response) DeepCopyInto(out *Response)

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

Jump to

Keyboard shortcuts

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