Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the newrelic v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=newrelic.shanestarcher.com
Package v1alpha1 contains API Schema definitions for the newrelic v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=newrelic.shanestarcher.com
Index ¶
- Variables
- func DoReconcile(log logr.Logger, instance CRD) reconcile.Result
- func GetLogger(ctx context.Context) logr.Logger
- func WithLogger(ctx context.Context, logger *logr.Logger) context.Context
- type AlertChannel
- func (s *AlertChannel) Create(ctx context.Context) bool
- func (in *AlertChannel) DeepCopy() *AlertChannel
- func (in *AlertChannel) DeepCopyInto(out *AlertChannel)
- func (in *AlertChannel) DeepCopyObject() runtime.Object
- func (s *AlertChannel) Delete(ctx context.Context) bool
- func (s *AlertChannel) IsCreated() bool
- func (s *AlertChannel) Update(ctx context.Context) bool
- type AlertChannelList
- type AlertChannelSpec
- type AlertPolicy
- func (s *AlertPolicy) Create(ctx context.Context) bool
- func (in *AlertPolicy) DeepCopy() *AlertPolicy
- func (in *AlertPolicy) DeepCopyInto(out *AlertPolicy)
- func (in *AlertPolicy) DeepCopyObject() runtime.Object
- func (s *AlertPolicy) Delete(ctx context.Context) bool
- func (s *AlertPolicy) IsCreated() bool
- func (s *AlertPolicy) Update(ctx context.Context) bool
- type AlertPolicyList
- type AlertPolicySpec
- type CRD
- type Conditions
- type Dashboard
- func (s *Dashboard) Create(ctx context.Context) bool
- func (in *Dashboard) DeepCopy() *Dashboard
- func (in *Dashboard) DeepCopyInto(out *Dashboard)
- func (in *Dashboard) DeepCopyObject() runtime.Object
- func (s *Dashboard) Delete(ctx context.Context) bool
- func (s *Dashboard) IsCreated() bool
- func (s *Dashboard) Update(ctx context.Context) bool
- type DashboardList
- type DashboardSpec
- type Data
- type Monitor
- func (s *Monitor) Create(ctx context.Context) bool
- func (in *Monitor) DeepCopy() *Monitor
- func (in *Monitor) DeepCopyInto(out *Monitor)
- func (in *Monitor) DeepCopyObject() runtime.Object
- func (s *Monitor) Delete(ctx context.Context) bool
- func (s *Monitor) IsCreated() bool
- func (s *Monitor) Update(ctx context.Context) bool
- type MonitorList
- type MonitorOptions
- type MonitorSpec
- type MonitorStatusString
- type MonitorType
- type Script
- type Spec
- type SpecInterface
- type Status
- func (in *Status) DeepCopy() *Status
- func (in *Status) DeepCopyInto(out *Status)
- func (s *Status) GetID() *int
- func (s *Status) HandleOnError(ctx context.Context, err error) bool
- func (s *Status) HandleOnErrorMessage(ctx context.Context, err error, msg string) bool
- func (s *Status) IsCreated() bool
- func (s *Status) SetID(id int)
- type StatusInterface
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "newrelic.shanestarcher.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
DefaultRequeue is the timing we by default to requeue
var ( // L is an alias for the the standard logger. L = logf.Log.Logger )
Functions ¶
func DoReconcile ¶
DoReconcile generic processing loop
Types ¶
type AlertChannel ¶
type AlertChannel struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec AlertChannelSpec `json:"spec"` Status Status `json:"status,omitempty"` }
AlertChannel is the Schema for the alertchannels API +kubebuilder:subresource:status +kubebuilder:resource:path=alertchannels,scope=Namespaced
func (*AlertChannel) Create ¶
func (s *AlertChannel) Create(ctx context.Context) bool
Create in newrelic
func (*AlertChannel) DeepCopy ¶
func (in *AlertChannel) DeepCopy() *AlertChannel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertChannel.
func (*AlertChannel) DeepCopyInto ¶
func (in *AlertChannel) DeepCopyInto(out *AlertChannel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertChannel) DeepCopyObject ¶
func (in *AlertChannel) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AlertChannel) Delete ¶
func (s *AlertChannel) Delete(ctx context.Context) bool
Delete in newrelic
func (*AlertChannel) IsCreated ¶
func (s *AlertChannel) IsCreated() bool
IsCreated specifies if the object has been created in new relic yet
type AlertChannelList ¶
type AlertChannelList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AlertChannel `json:"items"` }
AlertChannelList contains a list of AlertChannel
func (*AlertChannelList) DeepCopy ¶
func (in *AlertChannelList) DeepCopy() *AlertChannelList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertChannelList.
func (*AlertChannelList) DeepCopyInto ¶
func (in *AlertChannelList) DeepCopyInto(out *AlertChannelList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertChannelList) DeepCopyObject ¶
func (in *AlertChannelList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlertChannelSpec ¶
type AlertChannelSpec struct { // TODO don't require setting of the type Type string `json:"type,omitempty"` Configuration data `json:"configuration,omitempty"` Policies []string `json:"policies,omitempty"` }
AlertChannelSpec defines the desired state of AlertChannel
func (*AlertChannelSpec) DeepCopy ¶
func (in *AlertChannelSpec) DeepCopy() *AlertChannelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertChannelSpec.
func (*AlertChannelSpec) DeepCopyInto ¶
func (in *AlertChannelSpec) DeepCopyInto(out *AlertChannelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertPolicy ¶
type AlertPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec AlertPolicySpec `json:"spec"` Status Status `json:"status,omitempty"` }
AlertPolicy is the Schema for the alertpolicies API +kubebuilder:subresource:status +kubebuilder:resource:path=alertpolicies,scope=Namespaced
func (*AlertPolicy) Create ¶
func (s *AlertPolicy) Create(ctx context.Context) bool
Create in newrelic
func (*AlertPolicy) DeepCopy ¶
func (in *AlertPolicy) DeepCopy() *AlertPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertPolicy.
func (*AlertPolicy) DeepCopyInto ¶
func (in *AlertPolicy) DeepCopyInto(out *AlertPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertPolicy) DeepCopyObject ¶
func (in *AlertPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AlertPolicy) Delete ¶
func (s *AlertPolicy) Delete(ctx context.Context) bool
Delete in newrelic
func (*AlertPolicy) IsCreated ¶
func (s *AlertPolicy) IsCreated() bool
IsCreated specifies if the object has been created in new relic yet
type AlertPolicyList ¶
type AlertPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AlertPolicy `json:"items"` }
AlertPolicyList contains a list of AlertPolicy
func (*AlertPolicyList) DeepCopy ¶
func (in *AlertPolicyList) DeepCopy() *AlertPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertPolicyList.
func (*AlertPolicyList) DeepCopyInto ¶
func (in *AlertPolicyList) DeepCopyInto(out *AlertPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertPolicyList) DeepCopyObject ¶
func (in *AlertPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlertPolicySpec ¶
type AlertPolicySpec struct { IncidentPreference string `json:"incident_preference,omitempty"` Channels []string `json:"channels,omitempty"` }
AlertPolicySpec defines the desired state of AlertPolicy
func (*AlertPolicySpec) DeepCopy ¶
func (in *AlertPolicySpec) DeepCopy() *AlertPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertPolicySpec.
func (*AlertPolicySpec) DeepCopyInto ¶
func (in *AlertPolicySpec) DeepCopyInto(out *AlertPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Conditions ¶
type Conditions struct { PolicyName string `json:"policyName,omitempty"` RunbookURL *string `json:"runbookURL,omitempty"` }
func (*Conditions) DeepCopy ¶
func (in *Conditions) DeepCopy() *Conditions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Conditions.
func (*Conditions) DeepCopyInto ¶
func (in *Conditions) DeepCopyInto(out *Conditions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Dashboard ¶
type Dashboard struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec DashboardSpec `json:"spec"` Status Status `json:"status,omitempty"` }
Dashboard is the Schema for the dashboards API +kubebuilder:subresource:status +kubebuilder:resource:path=dashboards,scope=Namespaced
func (*Dashboard) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Dashboard.
func (*Dashboard) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Dashboard) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DashboardList ¶
type DashboardList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Dashboard `json:"items"` }
DashboardList contains a list of Dashboard
func (*DashboardList) DeepCopy ¶
func (in *DashboardList) DeepCopy() *DashboardList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DashboardList.
func (*DashboardList) DeepCopyInto ¶
func (in *DashboardList) DeepCopyInto(out *DashboardList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DashboardList) DeepCopyObject ¶
func (in *DashboardList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DashboardSpec ¶
type DashboardSpec struct { Icon string `json:"icon,omitempty"` // TODO // Widgets []dashboards.DashboardWidget `json:"widgets,omitempty"` Visibility string `json:"visibility,omitempty"` Editable string `json:"editable,omitempty"` }
DashboardSpec defines the structure of the dashboard for new relic
func (*DashboardSpec) DeepCopy ¶
func (in *DashboardSpec) DeepCopy() *DashboardSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DashboardSpec.
func (*DashboardSpec) DeepCopyInto ¶
func (in *DashboardSpec) DeepCopyInto(out *DashboardSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Data ¶
type Data struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec Spec `json:"spec"` Status Status `json:"status,omitempty"` }
func (*Data) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Data.
func (*Data) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Monitor ¶
type Monitor struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec MonitorSpec `json:"spec"` Status Status `json:"status,omitempty"` }
Monitor is the Schema for the monitors API +kubebuilder:subresource:status +kubebuilder:resource:path=monitors,scope=Namespaced
func (*Monitor) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Monitor.
func (*Monitor) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Monitor) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MonitorList ¶
type MonitorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Monitor `json:"items"` }
MonitorList contains a list of Monitor
func (*MonitorList) DeepCopy ¶
func (in *MonitorList) DeepCopy() *MonitorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorList.
func (*MonitorList) DeepCopyInto ¶
func (in *MonitorList) DeepCopyInto(out *MonitorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MonitorList) DeepCopyObject ¶
func (in *MonitorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MonitorOptions ¶
type MonitorOptions struct { ValidationString *string `json:"validationString,omitempty"` VerifySSL bool `json:"verifySSL,omitempty"` BypassHEADRequest bool `json:"bypassHEADRequest,omitempty"` TreatRedirectAsFailure bool `json:"treatRedirectAsFailure,omitempty"` }
func (*MonitorOptions) DeepCopy ¶
func (in *MonitorOptions) DeepCopy() *MonitorOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorOptions.
func (*MonitorOptions) DeepCopyInto ¶
func (in *MonitorOptions) DeepCopyInto(out *MonitorOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MonitorSpec ¶
type MonitorSpec struct { Type *string `json:"type,omitempty"` Frequency *int64 `json:"frequency,omitempty"` URI *string `json:"uri,omitempty"` Locations []*string `json:"locations,omitempty"` Status *MonitorStatusString `json:"status,omitempty"` SLAThreshold *float64 `json:"slaThreshold,omitempty"` ManageUpdates *bool `json:"manageUpdates,omitempty"` Options MonitorOptions `json:"options,omitempty"` Script *Script `json:"script,omitempty"` Conditions []Conditions `json:"conditions,omitempty"` }
MonitorSpec defines the desired state of Monitor
func (*MonitorSpec) DeepCopy ¶
func (in *MonitorSpec) DeepCopy() *MonitorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorSpec.
func (*MonitorSpec) DeepCopyInto ¶
func (in *MonitorSpec) DeepCopyInto(out *MonitorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MonitorStatusString ¶
type MonitorStatusString string
const ( Enabled MonitorStatusString = "enabled" Disabled MonitorStatusString = "disabled" Muted MonitorStatusString = "muted" )
func (MonitorStatusString) String ¶
func (s MonitorStatusString) String() string
type Script ¶
type Script struct {
ScriptText *string `json:"scriptText,omitempty"`
}
TODO flatten this structure out
func (*Script) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Script.
func (*Script) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Spec ¶
type Spec struct {
Data string `json:"data,omitempty"`
}
func (*Spec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Spec.
func (*Spec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SpecInterface ¶
type SpecInterface interface { }
type Status ¶
type Status struct { ID *string `json:"id,omitempty"` Info string `json:"info,omitempty"` Hash []byte `json:"hash,omitempty"` }
func (*Status) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Status) HandleOnError ¶
HandleOnError returns true if an error had occured
func (*Status) HandleOnErrorMessage ¶
HandleOnErrorMessage returns true if an error had occured