Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=alertingprofile.taikun.jet.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type HeaderObservation
- type HeaderParameters
- type IntegrationObservation
- type IntegrationParameters
- type Profile
- func (in *Profile) DeepCopy() *Profile
- func (in *Profile) DeepCopyInto(out *Profile)
- func (in *Profile) DeepCopyObject() runtime.Object
- func (mg *Profile) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Profile) GetConnectionDetailsMapping() map[string]string
- func (mg *Profile) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Profile) GetID() string
- func (tr *Profile) GetObservation() (map[string]interface{}, error)
- func (tr *Profile) GetParameters() (map[string]interface{}, error)
- func (mg *Profile) GetProviderConfigReference() *xpv1.Reference
- func (mg *Profile) GetProviderReference() *xpv1.Reference
- func (mg *Profile) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Profile) GetTerraformResourceType() string
- func (tr *Profile) GetTerraformSchemaVersion() int
- func (mg *Profile) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Profile) LateInitialize(attrs []byte) (bool, error)
- func (mg *Profile) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Profile) SetConditions(c ...xpv1.Condition)
- func (mg *Profile) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (tr *Profile) SetObservation(obs map[string]interface{}) error
- func (tr *Profile) SetParameters(params map[string]interface{}) error
- func (mg *Profile) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Profile) SetProviderReference(r *xpv1.Reference)
- func (mg *Profile) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Profile) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type ProfileList
- type ProfileObservation
- type ProfileParameters
- type ProfileSpec
- type ProfileStatus
- type WebhookObservation
- type WebhookParameters
Constants ¶
const ( CRDGroup = "alertingprofile.taikun.jet.crossplane.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // CRDGroupVersion is the API Group Version used to register the objects CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( Profile_Kind = "Profile" Profile_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Profile_Kind}.String() Profile_KindAPIVersion = Profile_Kind + "." + CRDGroupVersion.String() Profile_GroupVersionKind = CRDGroupVersion.WithKind(Profile_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type HeaderObservation ¶
type HeaderObservation struct { }
func (*HeaderObservation) DeepCopy ¶
func (in *HeaderObservation) DeepCopy() *HeaderObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HeaderObservation.
func (*HeaderObservation) DeepCopyInto ¶
func (in *HeaderObservation) DeepCopyInto(out *HeaderObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HeaderParameters ¶
type HeaderParameters struct { // The header key. // +kubebuilder:validation:Required Key *string `json:"key" tf:"key,omitempty"` // The header value. // +kubebuilder:validation:Required Value *string `json:"value" tf:"value,omitempty"` }
func (*HeaderParameters) DeepCopy ¶
func (in *HeaderParameters) DeepCopy() *HeaderParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HeaderParameters.
func (*HeaderParameters) DeepCopyInto ¶
func (in *HeaderParameters) DeepCopyInto(out *HeaderParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IntegrationObservation ¶
type IntegrationObservation struct {
ID *string `json:"id,omitempty" tf:"id,omitempty"`
}
func (*IntegrationObservation) DeepCopy ¶
func (in *IntegrationObservation) DeepCopy() *IntegrationObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntegrationObservation.
func (*IntegrationObservation) DeepCopyInto ¶
func (in *IntegrationObservation) DeepCopyInto(out *IntegrationObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IntegrationParameters ¶
type IntegrationParameters struct { // The token (required by Opsgenie, Pagerduty and Splunk). Defaults to ` `. // +kubebuilder:validation:Optional Token *string `json:"token,omitempty" tf:"token,omitempty"` // The type of integration: `Opsgenie`, `Pagerduty`, `Splunk` or `MicrosoftTeams`. // +kubebuilder:validation:Required Type *string `json:"type" tf:"type,omitempty"` // The alerting integration's URL. // +kubebuilder:validation:Required URL *string `json:"url" tf:"url,omitempty"` }
func (*IntegrationParameters) DeepCopy ¶
func (in *IntegrationParameters) DeepCopy() *IntegrationParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntegrationParameters.
func (*IntegrationParameters) DeepCopyInto ¶
func (in *IntegrationParameters) DeepCopyInto(out *IntegrationParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Profile ¶
type Profile struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProfileSpec `json:"spec"` Status ProfileStatus `json:"status,omitempty"` }
Profile is the Schema for the Profiles API +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,taikunjet}
func (*Profile) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Profile.
func (*Profile) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Profile) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Profile) GetCondition ¶
func (mg *Profile) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Profile.
func (*Profile) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Profile
func (*Profile) GetDeletionPolicy ¶
func (mg *Profile) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Profile.
func (*Profile) GetObservation ¶
GetObservation of this Profile
func (*Profile) GetParameters ¶
GetParameters of this Profile
func (*Profile) GetProviderConfigReference ¶
GetProviderConfigReference of this Profile.
func (*Profile) GetProviderReference ¶
GetProviderReference of this Profile. Deprecated: Use GetProviderConfigReference.
func (*Profile) GetPublishConnectionDetailsTo ¶
func (mg *Profile) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Profile.
func (*Profile) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Profile
func (*Profile) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Profile) GetWriteConnectionSecretToReference ¶
func (mg *Profile) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Profile.
func (*Profile) LateInitialize ¶
LateInitialize this Profile using its observed tfState. returns True if there are any spec changes for the resource.
func (*Profile) ResolveReferences ¶
ResolveReferences of this Profile.
func (*Profile) SetConditions ¶
SetConditions of this Profile.
func (*Profile) SetDeletionPolicy ¶
func (mg *Profile) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Profile.
func (*Profile) SetObservation ¶
SetObservation for this Profile
func (*Profile) SetParameters ¶
SetParameters for this Profile
func (*Profile) SetProviderConfigReference ¶
SetProviderConfigReference of this Profile.
func (*Profile) SetProviderReference ¶
SetProviderReference of this Profile. Deprecated: Use SetProviderConfigReference.
func (*Profile) SetPublishConnectionDetailsTo ¶
func (mg *Profile) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Profile.
func (*Profile) SetWriteConnectionSecretToReference ¶
func (mg *Profile) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Profile.
type ProfileList ¶
type ProfileList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Profile `json:"items"` }
ProfileList contains a list of Profiles
func (*ProfileList) DeepCopy ¶
func (in *ProfileList) DeepCopy() *ProfileList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileList.
func (*ProfileList) DeepCopyInto ¶
func (in *ProfileList) DeepCopyInto(out *ProfileList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProfileList) DeepCopyObject ¶
func (in *ProfileList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProfileList) GetItems ¶
func (l *ProfileList) GetItems() []resource.Managed
GetItems of this ProfileList.
type ProfileObservation ¶
type ProfileObservation struct { CreatedBy *string `json:"createdBy,omitempty" tf:"created_by,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` Integration []IntegrationObservation `json:"integration,omitempty" tf:"integration,omitempty"` LastModified *string `json:"lastModified,omitempty" tf:"last_modified,omitempty"` LastModifiedBy *string `json:"lastModifiedBy,omitempty" tf:"last_modified_by,omitempty"` OrganizationName *string `json:"organizationName,omitempty" tf:"organization_name,omitempty"` SlackConfigurationName *string `json:"slackConfigurationName,omitempty" tf:"slack_configuration_name,omitempty"` }
func (*ProfileObservation) DeepCopy ¶
func (in *ProfileObservation) DeepCopy() *ProfileObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileObservation.
func (*ProfileObservation) DeepCopyInto ¶
func (in *ProfileObservation) DeepCopyInto(out *ProfileObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProfileParameters ¶
type ProfileParameters struct { // The list of emails to notify. // +kubebuilder:validation:Optional Emails []*string `json:"emails,omitempty" tf:"emails,omitempty"` // List of alerting integrations. // +kubebuilder:validation:Optional Integration []IntegrationParameters `json:"integration,omitempty" tf:"integration,omitempty"` // Indicates whether to lock the profile. Defaults to `false`. // +kubebuilder:validation:Optional Lock *bool `json:"lock,omitempty" tf:"lock,omitempty"` // The alerting profile's name. // +kubebuilder:validation:Required Name *string `json:"name" tf:"name,omitempty"` // The ID of the organization which owns the profile. // +crossplane:generate:reference:type=github.com/nivraph/provider-jet-taikun/apis/organization/v1alpha1.Organization // +kubebuilder:validation:Optional OrganizationID *string `json:"organizationId,omitempty" tf:"organization_id,omitempty"` // +kubebuilder:validation:Optional OrganizationIDRef *v1.Reference `json:"organizationIdRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional OrganizationIDSelector *v1.Selector `json:"organizationIdSelector,omitempty" tf:"-"` // The frequency of notifications: `HalfHour`, `Hourly`, `Daily` or `None`. // +kubebuilder:validation:Required Reminder *string `json:"reminder" tf:"reminder,omitempty"` // The ID of the Slack configuration to notify. Defaults to `0`. // +crossplane:generate:reference:type=github.com/nivraph/provider-jet-taikun/apis/slackconfiguration/v1alpha1.Configuration // +kubebuilder:validation:Optional SlackConfigurationID *string `json:"slackConfigurationId,omitempty" tf:"slack_configuration_id,omitempty"` // +kubebuilder:validation:Optional SlackConfigurationIDRef *v1.Reference `json:"slackConfigurationIdRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional SlackConfigurationIDSelector *v1.Selector `json:"slackConfigurationIdSelector,omitempty" tf:"-"` // The list of webhooks to notify. // +kubebuilder:validation:Optional Webhook []WebhookParameters `json:"webhook,omitempty" tf:"webhook,omitempty"` }
func (*ProfileParameters) DeepCopy ¶
func (in *ProfileParameters) DeepCopy() *ProfileParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileParameters.
func (*ProfileParameters) DeepCopyInto ¶
func (in *ProfileParameters) DeepCopyInto(out *ProfileParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProfileSpec ¶
type ProfileSpec struct { v1.ResourceSpec `json:",inline"` ForProvider ProfileParameters `json:"forProvider"` }
ProfileSpec defines the desired state of Profile
func (*ProfileSpec) DeepCopy ¶
func (in *ProfileSpec) DeepCopy() *ProfileSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileSpec.
func (*ProfileSpec) DeepCopyInto ¶
func (in *ProfileSpec) DeepCopyInto(out *ProfileSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProfileStatus ¶
type ProfileStatus struct { v1.ResourceStatus `json:",inline"` AtProvider ProfileObservation `json:"atProvider,omitempty"` }
ProfileStatus defines the observed state of Profile.
func (*ProfileStatus) DeepCopy ¶
func (in *ProfileStatus) DeepCopy() *ProfileStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileStatus.
func (*ProfileStatus) DeepCopyInto ¶
func (in *ProfileStatus) DeepCopyInto(out *ProfileStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookObservation ¶
type WebhookObservation struct { }
func (*WebhookObservation) DeepCopy ¶
func (in *WebhookObservation) DeepCopy() *WebhookObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookObservation.
func (*WebhookObservation) DeepCopyInto ¶
func (in *WebhookObservation) DeepCopyInto(out *WebhookObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookParameters ¶
type WebhookParameters struct { // The list of headers. // +kubebuilder:validation:Optional Header []HeaderParameters `json:"header,omitempty" tf:"header,omitempty"` // The webhook URL. // +kubebuilder:validation:Required URL *string `json:"url" tf:"url,omitempty"` }
func (*WebhookParameters) DeepCopy ¶
func (in *WebhookParameters) DeepCopy() *WebhookParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookParameters.
func (*WebhookParameters) DeepCopyInto ¶
func (in *WebhookParameters) DeepCopyInto(out *WebhookParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.